aboutsummaryrefslogtreecommitdiff
path: root/buttons.gbasm
diff options
context:
space:
mode:
authorAstatin <[email protected]>2024-08-06 18:45:46 +0900
committerAstatin <astatin@redacted>2024-08-06 18:45:46 +0900
commita993a0f632dfddcd5bf55bd4219492a66f22d5d1 (patch)
tree778bc1a390e8c56ddede1467c047e5c8751f41ff /buttons.gbasm
parente20e0ce42d1c1fc65cea1a655d64f2c9b2efc17a (diff)
Bunny now change direction and F O L I A G E
Diffstat (limited to 'buttons.gbasm')
-rw-r--r--buttons.gbasm14
1 files changed, 7 insertions, 7 deletions
diff --git a/buttons.gbasm b/buttons.gbasm
index b2015de..b5e94ff 100644
--- a/buttons.gbasm
+++ b/buttons.gbasm
@@ -3,34 +3,34 @@ Pad_Button_Check:
PUSH BC
LD A, $20
- LD ($00), A
- LD A, ($00)
+ LD $reg_joypad, A
+ LD A, $reg_joypad
LD C, A
LD A, $00
Pad_Button_Check.Right:
BIT 0, C
JR NZ =Pad_Button_Check.Left
- LD A, $02
+ LD A, $enum_direction_right
Pad_Button_Check.Left:
BIT 1, C
JR NZ =Pad_Button_Check.Up
- LD A, $01
+ LD A, $enum_direction_left
Pad_Button_Check.Up:
BIT 2, C
JR NZ =Pad_Button_Check.Down
- LD A, $03
+ LD A, $enum_direction_up
Pad_Button_Check.Down:
BIT 3, C
JR NZ =Pad_Button_Check.End
- LD A, $04
+ LD A, $enum_direction_down
Pad_Button_Check.End:
- LD ($82), A
+ LD $mem_button_direction, A
POP BC
POP AF