diff options
Diffstat (limited to 'home/window.asm')
-rw-r--r-- | home/window.asm | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/home/window.asm b/home/window.asm index f86e39c6..8ccb9de9 100644 --- a/home/window.asm +++ b/home/window.asm @@ -50,6 +50,8 @@ HandleMenuInput_:: ld [wCheckFor180DegreeTurn], a ldh a, [hJoy5] ld b, a + bit 0, a ; pressed A key? + jr nz, .checkOtherKeys bit 6, a ; pressed Up key? jr z, .checkIfDownPressed .upPressed @@ -135,15 +137,13 @@ PlaceMenuCursor:: ld a, [wLastMenuItem] and a ; was the previous menu id 0? jr z, .checkForArrow1 + ld bc, 40 push af - ldh a, [hFlagsFFF6] + ldh a, [hFlagsFFFA] bit 1, a ; is the menu double spaced? jr z, .doubleSpaced1 ld bc, 20 - jr .getOldMenuItemScreenPosition .doubleSpaced1 - ld bc, 40 -.getOldMenuItemScreenPosition pop af .oldMenuItemLoop add hl, bc @@ -161,15 +161,13 @@ PlaceMenuCursor:: ld a, [wCurrentMenuItem] and a jr z, .checkForArrow2 + ld bc, 40 push af - ldh a, [hFlagsFFF6] + ldh a, [hFlagsFFFA] bit 1, a ; is the menu double spaced? jr z, .doubleSpaced2 ld bc, 20 - jr .getCurrentMenuItemScreenPosition .doubleSpaced2 - ld bc, 40 -.getCurrentMenuItemScreenPosition pop af .currentMenuItemLoop add hl, bc |