Identify PLAYERMOVEMENT_* constants

This commit is contained in:
Rangi
2019-11-03 14:30:33 -05:00
parent d5e1b5a628
commit 717cf3f458
3 changed files with 40 additions and 28 deletions

View File

@@ -759,40 +759,41 @@ PlayerMovement:
ret
.pointers
dw .zero
dw .one
dw .two
dw .three
dw .four
dw .five
dw .six
dw .seven
; entries correspond to PLAYERMOVEMENT_* constants
dw .normal
dw .warp
dw .turn
dw .force_turn
dw .finish
dw .continue
dw .exit_water
dw .jump
.zero
.four
.normal:
.finish:
xor a
ld c, a
ret
.seven
.jump:
call ret_968d7 ; mobile
xor a
ld c, a
ret
.one
ld a, 5
.warp:
ld a, PLAYEREVENT_WARP
ld c, a
scf
ret
.two
ld a, 9
.turn:
ld a, PLAYEREVENT_JOYCHANGEFACING
ld c, a
scf
ret
.three
.force_turn:
; force the player to move in some direction
ld a, BANK(Script_ForcedMovement)
ld hl, Script_ForcedMovement
@@ -802,8 +803,8 @@ PlayerMovement:
scf
ret
.five
.six
.continue:
.exit_water:
ld a, -1
ld c, a
and a
@@ -923,13 +924,13 @@ CountStep:
ret
.hatch
ld a, 8
ld a, PLAYEREVENT_HATCH
scf
ret
; unused
.unreferenced
ld a, 7
ld a, PLAYEREVENT_WHITEOUT
scf
ret