aboutsummaryrefslogtreecommitdiffstats
path: root/engine/learn_move.asm
diff options
context:
space:
mode:
authordannye <corrnondacqb@yahoo.com>2015-07-16 23:27:57 -0500
committerdannye <corrnondacqb@yahoo.com>2015-07-16 23:27:57 -0500
commit40ea6a5f757bbbfdb4296e5acf644f6679a03a14 (patch)
tree2f7957bfa877ce974ad185684f037ba5b6cdfccd /engine/learn_move.asm
parentSwap trade center and battle center (diff)
parentMerge pull request #101 from YamaArashi/master (diff)
downloadpokeyellow-40ea6a5f757bbbfdb4296e5acf644f6679a03a14.tar.gz
pokeyellow-40ea6a5f757bbbfdb4296e5acf644f6679a03a14.tar.xz
pokeyellow-40ea6a5f757bbbfdb4296e5acf644f6679a03a14.zip
Merge branch 'master' of https://github.com/iimarckus/pokered
Diffstat (limited to 'engine/learn_move.asm')
-rwxr-xr-xengine/learn_move.asm20
1 files changed, 10 insertions, 10 deletions
diff --git a/engine/learn_move.asm b/engine/learn_move.asm
index 3c7663b2..cb5bdbd7 100755
--- a/engine/learn_move.asm
+++ b/engine/learn_move.asm
@@ -134,18 +134,18 @@ TryingToLearn: ; 6f07 (1:6f07)
res 2, a
ld [hFlags_0xFFF6], a
ld hl, wTopMenuItemY
- ld a, $8
- ld [hli], a
- ld a, $5
- ld [hli], a
+ ld a, 8
+ ld [hli], a ; wTopMenuItemY
+ ld a, 5
+ ld [hli], a ; wTopMenuItemX
xor a
- ld [hli], a
+ ld [hli], a ; wCurrentMenuItem
inc hl
- ld a, [wcd6c]
- ld [hli], a
- ld a, $3
- ld [hli], a
- ld [hl], $0
+ ld a, [wNumMovesMinusOne]
+ ld [hli], a ; wMaxMenuItem
+ ld a, A_BUTTON | B_BUTTON
+ ld [hli], a ; wMenuWatchedKeys
+ ld [hl], 0 ; wLastMenuItem
ld hl, hFlags_0xFFF6
set 1, [hl]
call HandleMenuInput