2013-07-20 19:34:40 -07:00
|
|
|
MovementPointers: ; 5075
|
2015-10-29 20:32:11 -07:00
|
|
|
dw Movement_turn_head_down ; 00
|
|
|
|
dw Movement_turn_head_up ; 01
|
|
|
|
dw Movement_turn_head_left ; 02
|
|
|
|
dw Movement_turn_head_right ; 03
|
|
|
|
dw Movement_half_step_down ; 04
|
|
|
|
dw Movement_half_step_up ; 05
|
|
|
|
dw Movement_half_step_left ; 06
|
|
|
|
dw Movement_half_step_right ; 07
|
|
|
|
dw Movement_slow_step_down ; 08
|
|
|
|
dw Movement_slow_step_up ; 09
|
|
|
|
dw Movement_slow_step_left ; 0a
|
|
|
|
dw Movement_slow_step_right ; 0b
|
|
|
|
dw Movement_step_down ; 0c
|
|
|
|
dw Movement_step_up ; 0d
|
|
|
|
dw Movement_step_left ; 0e
|
|
|
|
dw Movement_step_right ; 0f
|
|
|
|
dw Movement_big_step_down ; 10
|
|
|
|
dw Movement_big_step_up ; 11
|
|
|
|
dw Movement_big_step_left ; 12
|
|
|
|
dw Movement_big_step_right ; 13
|
|
|
|
dw Movement_slow_slide_step_down ; 14
|
|
|
|
dw Movement_slow_slide_step_up ; 15
|
|
|
|
dw Movement_slow_slide_step_left ; 16
|
|
|
|
dw Movement_slow_slide_step_right ; 17
|
|
|
|
dw Movement_slide_step_down ; 18
|
|
|
|
dw Movement_slide_step_up ; 19
|
|
|
|
dw Movement_slide_step_left ; 1a
|
|
|
|
dw Movement_slide_step_right ; 1b
|
|
|
|
dw Movement_fast_slide_step_down ; 1c
|
|
|
|
dw Movement_fast_slide_step_up ; 1d
|
|
|
|
dw Movement_fast_slide_step_left ; 1e
|
|
|
|
dw Movement_fast_slide_step_right ; 1f
|
|
|
|
dw Movement_turn_away_down ; 20
|
|
|
|
dw Movement_turn_away_up ; 21
|
|
|
|
dw Movement_turn_away_left ; 22
|
|
|
|
dw Movement_turn_away_right ; 23
|
|
|
|
dw Movement_turn_in_down ; 24
|
|
|
|
dw Movement_turn_in_up ; 25
|
|
|
|
dw Movement_turn_in_left ; 26
|
|
|
|
dw Movement_turn_in_right ; 27
|
|
|
|
dw Movement_turn_waterfall_down ; 28
|
|
|
|
dw Movement_turn_waterfall_up ; 29
|
|
|
|
dw Movement_turn_waterfall_left ; 2a
|
|
|
|
dw Movement_turn_waterfall_right ; 2b
|
|
|
|
dw Movement_slow_jump_step_down ; 2c
|
|
|
|
dw Movement_slow_jump_step_up ; 2d
|
|
|
|
dw Movement_slow_jump_step_left ; 2e
|
|
|
|
dw Movement_slow_jump_step_right ; 2f
|
|
|
|
dw Movement_jump_step_down ; 30
|
|
|
|
dw Movement_jump_step_up ; 31
|
|
|
|
dw Movement_jump_step_left ; 32
|
|
|
|
dw Movement_jump_step_right ; 33
|
|
|
|
dw Movement_fast_jump_step_down ; 34
|
|
|
|
dw Movement_fast_jump_step_up ; 35
|
|
|
|
dw Movement_fast_jump_step_left ; 36
|
|
|
|
dw Movement_fast_jump_step_right ; 37
|
|
|
|
dw Movement_38 ; 38
|
|
|
|
dw Movement_39 ; 39
|
|
|
|
dw Movement_remove_fixed_facing ; 3a
|
|
|
|
dw Movement_fix_facing ; 3b
|
|
|
|
dw Movement_3c ; 3c
|
|
|
|
dw Movement_hide_person ; 3d
|
|
|
|
dw Movement_show_person ; 3e
|
|
|
|
dw Movement_3f ; 3f
|
|
|
|
dw Movement_40 ; 40
|
|
|
|
dw Movement_41 ; 41
|
|
|
|
dw Movement_42 ; 42
|
|
|
|
dw Movement_43 ; 43
|
|
|
|
dw Movement_44 ; 44
|
|
|
|
dw Movement_accelerate_last ; 45
|
|
|
|
dw Movement_step_sleep ; 46
|
|
|
|
dw Movement_step_end ; 47
|
|
|
|
dw Movement_48 ; 48
|
|
|
|
dw Movement_remove_person ; 49
|
|
|
|
dw Movement_4a ; 4a
|
|
|
|
dw Movement_4b ; 4b
|
|
|
|
dw Movement_teleport_from ; 4c
|
|
|
|
dw Movement_teleport_to ; 4d
|
|
|
|
dw Movement_skyfall ; 4e
|
|
|
|
dw Movement_step_wait5 ; 4f
|
|
|
|
dw Movement_50 ; 50
|
|
|
|
dw Movement_51 ; 51
|
|
|
|
dw Movement_52 ; 52
|
|
|
|
dw Movement_hide_emote ; 53
|
|
|
|
dw Movement_show_emote ; 54
|
|
|
|
dw Movement_step_shake ; 55
|
|
|
|
dw Movement_56 ; 56
|
|
|
|
dw Movement_57 ; 57
|
|
|
|
dw Movement_58 ; 58
|
|
|
|
dw Movement_59 ; 59
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5129
|
|
|
|
|
|
|
|
|
|
|
|
Movement_teleport_from: ; 5129
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $c
|
|
|
|
ret
|
|
|
|
; 5130
|
|
|
|
|
|
|
|
Movement_teleport_to: ; 5130
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $d
|
|
|
|
ret
|
|
|
|
; 5137
|
|
|
|
|
|
|
|
Movement_skyfall: ; 5137
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $e
|
|
|
|
ret
|
|
|
|
; 513e
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_59: ; 513e
|
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $19
|
|
|
|
ret
|
|
|
|
; 5145
|
|
|
|
|
|
|
|
Movement_step_wait5: ; 5145
|
|
|
|
call GetSpriteDirection
|
|
|
|
rlca
|
|
|
|
rlca
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_12
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_11
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $4
|
2015-07-18 20:45:39 -07:00
|
|
|
call GetMovementByte
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_STEP_DURATION
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $3
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_DIRECTION_WALKING
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $ff
|
|
|
|
ret
|
|
|
|
; 516a
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_58: ; 516a
|
2013-07-20 19:34:40 -07:00
|
|
|
call GetSpriteDirection
|
|
|
|
rlca
|
|
|
|
rlca
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_12
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-07-18 20:45:39 -07:00
|
|
|
call GetMovementByte
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_STEP_DURATION
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_DIRECTION_WALKING
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $ff
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $12
|
|
|
|
ret
|
|
|
|
; 5189
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_51: ; 5189
|
|
|
|
ld hl, OBJECT_11
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $6
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $10
|
|
|
|
ret
|
|
|
|
; 5196
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_57: ; 5196
|
2015-07-18 20:45:39 -07:00
|
|
|
call GetMovementByte
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_STEP_DURATION
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_11
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $1
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $11
|
|
|
|
ret
|
|
|
|
; 51ab
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_52: ; 51ab
|
|
|
|
ld hl, OBJECT_11
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $6
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $1
|
|
|
|
ret
|
|
|
|
; 51b8
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_4a: ; 51b8
|
|
|
|
ld hl, OBJECT_27
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $0
|
|
|
|
jp Function5065
|
|
|
|
; 51c1
|
|
|
|
|
|
|
|
Movement_step_end: ; 51c1
|
2015-11-02 08:15:32 -08:00
|
|
|
call RestoreDefaultMovement
|
|
|
|
ld hl, OBJECT_MOVEMENTTYPE
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_27
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $0
|
|
|
|
ld hl, VramState
|
|
|
|
res 7, [hl]
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $1
|
|
|
|
ret
|
|
|
|
; 51db
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_48: ; 51db
|
2015-11-02 08:15:32 -08:00
|
|
|
call RestoreDefaultMovement
|
|
|
|
ld hl, OBJECT_MOVEMENTTYPE
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_27
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $0
|
2015-07-18 20:45:39 -07:00
|
|
|
call GetMovementByte
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_STEP_DURATION
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $3
|
|
|
|
ld hl, VramState
|
|
|
|
res 7, [hl]
|
|
|
|
ret
|
|
|
|
; 51fd
|
|
|
|
|
|
|
|
Movement_remove_person: ; 51fd
|
2013-12-23 01:39:26 -08:00
|
|
|
call Function4357
|
2015-11-02 08:15:32 -08:00
|
|
|
ld hl, wObjectFollow_Leader
|
|
|
|
ld a, [hMapObjectIndexBuffer]
|
2013-07-20 19:34:40 -07:00
|
|
|
cp [hl]
|
|
|
|
jr nz, .asm_520a
|
|
|
|
ld [hl], $ff
|
|
|
|
|
|
|
|
.asm_520a
|
|
|
|
ld hl, VramState
|
|
|
|
res 7, [hl]
|
|
|
|
ret
|
|
|
|
; 5210
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_4b: ; 5210
|
|
|
|
ld hl, OBJECT_11
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $1
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $4
|
|
|
|
ld hl, VramState
|
|
|
|
res 7, [hl]
|
|
|
|
ret
|
|
|
|
; 5222
|
|
|
|
|
|
|
|
Movement_show_person: ; 5222
|
|
|
|
ld a, $1
|
|
|
|
jr Function5247
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_3f: ; 5226
|
2013-07-20 19:34:40 -07:00
|
|
|
ld a, $2
|
|
|
|
jr Function5247
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_40: ; 522a
|
2013-07-20 19:34:40 -07:00
|
|
|
ld a, $3
|
|
|
|
jr Function5247
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_41: ; 522e
|
2013-07-20 19:34:40 -07:00
|
|
|
ld a, $4
|
|
|
|
jr Function5247
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_42: ; 5232
|
2013-07-20 19:34:40 -07:00
|
|
|
ld a, $5
|
|
|
|
jr Function5247
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_43: ; 5236
|
2013-07-20 19:34:40 -07:00
|
|
|
ld a, $6
|
|
|
|
jr Function5247
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_44: ; 523a
|
2013-07-20 19:34:40 -07:00
|
|
|
ld a, $7
|
|
|
|
jr Function5247
|
|
|
|
|
|
|
|
Movement_accelerate_last: ; 523e
|
|
|
|
ld a, $8
|
|
|
|
jr Function5247
|
|
|
|
|
|
|
|
Movement_step_sleep: ; 5242
|
|
|
|
; parameters:
|
|
|
|
; duration (DecimalParam)
|
|
|
|
|
2015-07-18 20:45:39 -07:00
|
|
|
call GetMovementByte
|
2013-07-20 19:34:40 -07:00
|
|
|
jr Function5247
|
|
|
|
|
|
|
|
Function5247: ; 5247
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_STEP_DURATION
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $3
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_11
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $1
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_DIRECTION_WALKING
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $ff
|
|
|
|
ret
|
|
|
|
; 525f
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_50: ; 525f
|
2013-07-20 19:34:40 -07:00
|
|
|
ld a, $1
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_STEP_DURATION
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $b
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_11
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $3
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_DIRECTION_WALKING
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $ff
|
|
|
|
ret
|
|
|
|
; 5279
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_56: ; 5279
|
2013-07-20 19:34:40 -07:00
|
|
|
ld a, $18
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_STEP_DURATION
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $3
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_11
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $b
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_DIRECTION_WALKING
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $ff
|
|
|
|
ret
|
|
|
|
; 5293
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_38: ; 5293
|
|
|
|
ld hl, OBJECT_FLAGS1
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
res 3, [hl]
|
|
|
|
jp Function5065
|
|
|
|
; 529c
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_39: ; 529c
|
|
|
|
ld hl, OBJECT_FLAGS1
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
set 3, [hl]
|
|
|
|
jp Function5065
|
|
|
|
; 52a5
|
|
|
|
|
|
|
|
Movement_remove_fixed_facing: ; 52a5
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_FLAGS1
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
res 2, [hl]
|
|
|
|
jp Function5065
|
|
|
|
; 52ae
|
|
|
|
|
|
|
|
Movement_fix_facing: ; 52ae
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_FLAGS1
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
set 2, [hl]
|
|
|
|
jp Function5065
|
|
|
|
; 52b7
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
Movement_3c: ; 52b7
|
|
|
|
ld hl, OBJECT_FLAGS1
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
res 0, [hl]
|
|
|
|
jp Function5065
|
|
|
|
; 52c0
|
|
|
|
|
|
|
|
Movement_hide_person: ; 52c0
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_FLAGS1
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
set 0, [hl]
|
|
|
|
jp Function5065
|
|
|
|
; 52c9
|
|
|
|
|
|
|
|
Movement_hide_emote: ; 52c9
|
2013-12-23 01:39:26 -08:00
|
|
|
call Function5579
|
2013-07-20 19:34:40 -07:00
|
|
|
jp Function5065
|
|
|
|
; 52cf
|
|
|
|
|
|
|
|
Movement_show_emote: ; 52cf
|
2013-12-23 01:39:26 -08:00
|
|
|
call Function5547
|
2013-07-20 19:34:40 -07:00
|
|
|
jp Function5065
|
|
|
|
; 52d5
|
|
|
|
|
|
|
|
Movement_step_shake: ; 52d5
|
|
|
|
; parameters:
|
|
|
|
; displacement (DecimalParam)
|
|
|
|
|
2015-07-18 20:45:39 -07:00
|
|
|
call GetMovementByte
|
2013-12-23 01:39:26 -08:00
|
|
|
call Function5565
|
2013-07-20 19:34:40 -07:00
|
|
|
jp Function5065
|
|
|
|
; 52de
|
|
|
|
|
|
|
|
Movement_turn_head_down: ; 52de
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, OW_DOWN
|
|
|
|
jr TurnHead
|
2013-07-20 19:34:40 -07:00
|
|
|
|
|
|
|
Movement_turn_head_up: ; 52e2
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, OW_UP
|
|
|
|
jr TurnHead
|
2013-07-20 19:34:40 -07:00
|
|
|
|
|
|
|
Movement_turn_head_left: ; 52e6
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, OW_LEFT
|
|
|
|
jr TurnHead
|
2013-07-20 19:34:40 -07:00
|
|
|
|
|
|
|
Movement_turn_head_right: ; 52ea
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, OW_RIGHT
|
|
|
|
jr TurnHead
|
2013-07-20 19:34:40 -07:00
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
TurnHead: ; 52ee
|
|
|
|
ld hl, OBJECT_FACING
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_11
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $1
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_DIRECTION_WALKING
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $ff
|
|
|
|
ret
|
|
|
|
; 5300
|
|
|
|
|
|
|
|
Movement_slow_step_down: ; 5300
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_SLOW << 2 | DOWN
|
|
|
|
jp NormalStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5305
|
|
|
|
|
|
|
|
Movement_slow_step_up: ; 5305
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_SLOW << 2 | UP
|
|
|
|
jp NormalStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 530a
|
|
|
|
|
|
|
|
Movement_slow_step_left: ; 530a
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_SLOW << 2 | LEFT
|
|
|
|
jp NormalStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 530f
|
|
|
|
|
|
|
|
Movement_slow_step_right: ; 530f
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_SLOW << 2 | RIGHT
|
|
|
|
jp NormalStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5314
|
|
|
|
|
|
|
|
Movement_step_down: ; 5314
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_WALK << 2 | DOWN
|
|
|
|
jp NormalStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5319
|
|
|
|
|
|
|
|
Movement_step_up: ; 5319
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_WALK << 2 | UP
|
|
|
|
jp NormalStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 531e
|
|
|
|
|
|
|
|
Movement_step_left: ; 531e
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_WALK << 2 | LEFT
|
|
|
|
jp NormalStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5323
|
|
|
|
|
|
|
|
Movement_step_right: ; 5323
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_WALK << 2 | RIGHT
|
|
|
|
jp NormalStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5328
|
|
|
|
|
|
|
|
Movement_big_step_down: ; 5328
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_BIKE << 2 | DOWN
|
|
|
|
jp NormalStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 532d
|
|
|
|
|
|
|
|
Movement_big_step_up: ; 532d
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_BIKE << 2 | UP
|
|
|
|
jp NormalStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5332
|
|
|
|
|
|
|
|
Movement_big_step_left: ; 5332
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_BIKE << 2 | LEFT
|
|
|
|
jp NormalStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5337
|
|
|
|
|
|
|
|
Movement_big_step_right: ; 5337
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_BIKE << 2 | RIGHT
|
|
|
|
jp NormalStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 533c
|
|
|
|
|
|
|
|
|
|
|
|
Movement_turn_away_down: ; 533c
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_SLOW << 2 | DOWN
|
|
|
|
jp TurningStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5341
|
|
|
|
|
|
|
|
Movement_turn_away_up: ; 5341
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_SLOW << 2 | UP
|
|
|
|
jp TurningStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5346
|
|
|
|
|
|
|
|
Movement_turn_away_left: ; 5346
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_SLOW << 2 | LEFT
|
|
|
|
jp TurningStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 534b
|
|
|
|
|
|
|
|
Movement_turn_away_right: ; 534b
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_SLOW << 2 | RIGHT
|
|
|
|
jp TurningStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5350
|
|
|
|
|
|
|
|
Movement_turn_in_down: ; 5350
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_WALK << 2 | DOWN
|
|
|
|
jp TurningStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5355
|
|
|
|
|
|
|
|
Movement_turn_in_up: ; 5355
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_WALK << 2 | UP
|
|
|
|
jp TurningStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 535a
|
|
|
|
|
|
|
|
Movement_turn_in_left: ; 535a
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_WALK << 2 | LEFT
|
|
|
|
jp TurningStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 535f
|
|
|
|
|
|
|
|
Movement_turn_in_right: ; 535f
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_WALK << 2 | RIGHT
|
|
|
|
jp TurningStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5364
|
|
|
|
|
|
|
|
Movement_turn_waterfall_down: ; 5364
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_BIKE << 2 | DOWN
|
|
|
|
jp TurningStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5369
|
|
|
|
|
|
|
|
Movement_turn_waterfall_up: ; 5369
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_BIKE << 2 | UP
|
|
|
|
jp TurningStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 536e
|
|
|
|
|
|
|
|
Movement_turn_waterfall_left: ; 536e
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_BIKE << 2 | LEFT
|
|
|
|
jp TurningStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5373
|
|
|
|
|
|
|
|
Movement_turn_waterfall_right: ; 5373
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_BIKE << 2 | RIGHT
|
|
|
|
jp TurningStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5378
|
|
|
|
|
|
|
|
|
|
|
|
Movement_slow_slide_step_down: ; 5378
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_SLOW << 2 | DOWN
|
|
|
|
jp SlideStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 537d
|
|
|
|
|
|
|
|
Movement_slow_slide_step_up: ; 537d
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_SLOW << 2 | UP
|
|
|
|
jp SlideStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5382
|
|
|
|
|
|
|
|
Movement_slow_slide_step_left: ; 5382
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_SLOW << 2 | LEFT
|
|
|
|
jp SlideStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5387
|
|
|
|
|
|
|
|
Movement_slow_slide_step_right: ; 5387
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_SLOW << 2 | RIGHT
|
|
|
|
jp SlideStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 538c
|
|
|
|
|
|
|
|
Movement_slide_step_down: ; 538c
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_WALK << 2 | DOWN
|
|
|
|
jp SlideStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5391
|
|
|
|
|
|
|
|
Movement_slide_step_up: ; 5391
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_WALK << 2 | UP
|
|
|
|
jp SlideStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 5396
|
|
|
|
|
|
|
|
Movement_slide_step_left: ; 5396
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_WALK << 2 | LEFT
|
|
|
|
jp SlideStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 539b
|
|
|
|
|
|
|
|
Movement_slide_step_right: ; 539b
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_WALK << 2 | RIGHT
|
|
|
|
jp SlideStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53a0
|
|
|
|
|
|
|
|
Movement_fast_slide_step_down: ; 53a0
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_BIKE << 2 | DOWN
|
|
|
|
jp SlideStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53a5
|
|
|
|
|
|
|
|
Movement_fast_slide_step_up: ; 53a5
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_BIKE << 2 | UP
|
|
|
|
jp SlideStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53aa
|
|
|
|
|
|
|
|
Movement_fast_slide_step_left: ; 53aa
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_BIKE << 2 | LEFT
|
|
|
|
jp SlideStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53af
|
|
|
|
|
|
|
|
Movement_fast_slide_step_right: ; 53af
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_BIKE << 2 | RIGHT
|
|
|
|
jp SlideStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53b4
|
|
|
|
|
|
|
|
|
|
|
|
Movement_slow_jump_step_down: ; 53b4
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_SLOW << 2 | DOWN
|
|
|
|
jp JumpStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53b9
|
|
|
|
|
|
|
|
Movement_slow_jump_step_up: ; 53b9
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_SLOW << 2 | UP
|
|
|
|
jp JumpStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53be
|
|
|
|
|
|
|
|
Movement_slow_jump_step_left: ; 53be
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_SLOW << 2 | LEFT
|
|
|
|
jp JumpStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53c3
|
|
|
|
|
|
|
|
Movement_slow_jump_step_right: ; 53c3
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_SLOW << 2 | RIGHT
|
|
|
|
jp JumpStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53c8
|
|
|
|
|
|
|
|
Movement_jump_step_down: ; 53c8
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_WALK << 2 | DOWN
|
|
|
|
jp JumpStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53cd
|
|
|
|
|
|
|
|
Movement_jump_step_up: ; 53cd
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_WALK << 2 | UP
|
|
|
|
jp JumpStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53d2
|
|
|
|
|
|
|
|
Movement_jump_step_left: ; 53d2
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_WALK << 2 | LEFT
|
|
|
|
jp JumpStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53d7
|
|
|
|
|
|
|
|
Movement_jump_step_right: ; 53d7
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_WALK << 2 | RIGHT
|
|
|
|
jp JumpStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53dc
|
|
|
|
|
|
|
|
Movement_fast_jump_step_down: ; 53dc
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_BIKE << 2 | DOWN
|
|
|
|
jp JumpStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53e1
|
|
|
|
|
|
|
|
Movement_fast_jump_step_up: ; 53e1
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_BIKE << 2 | UP
|
|
|
|
jp JumpStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53e6
|
|
|
|
|
|
|
|
Movement_fast_jump_step_left: ; 53e6
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_BIKE << 2 | LEFT
|
|
|
|
jp JumpStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53eb
|
|
|
|
|
|
|
|
Movement_fast_jump_step_right: ; 53eb
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, STEP_BIKE << 2 | RIGHT
|
|
|
|
jp JumpStep
|
2013-07-20 19:34:40 -07:00
|
|
|
; 53f0
|
|
|
|
|
|
|
|
|
|
|
|
Movement_half_step_down: ; 53f0
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, OW_DOWN
|
|
|
|
jr HalfStep
|
2013-07-20 19:34:40 -07:00
|
|
|
|
|
|
|
Movement_half_step_up: ; 53f4
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, OW_UP
|
|
|
|
jr HalfStep
|
2013-07-20 19:34:40 -07:00
|
|
|
|
|
|
|
Movement_half_step_left: ; 53f8
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, OW_LEFT
|
|
|
|
jr HalfStep
|
2013-07-20 19:34:40 -07:00
|
|
|
|
|
|
|
Movement_half_step_right: ; 53fc
|
2015-10-29 20:32:11 -07:00
|
|
|
ld a, OW_RIGHT
|
|
|
|
jr HalfStep
|
2013-07-20 19:34:40 -07:00
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
HalfStep: ; 5400
|
|
|
|
ld hl, OBJECT_29
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_11
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $2
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $a
|
|
|
|
ret
|
|
|
|
; 5412
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
NormalStep: ; 5412
|
2013-12-23 01:39:26 -08:00
|
|
|
call Function4690
|
|
|
|
call Function463f
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_11
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $2
|
2013-12-23 01:39:26 -08:00
|
|
|
ld hl, OBJECT_STANDING_TILE
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld a, [hl]
|
2015-07-23 00:41:52 -07:00
|
|
|
call CheckSuperTallGrassTile
|
2013-07-20 19:34:40 -07:00
|
|
|
jr z, .asm_542d
|
2013-12-23 01:39:26 -08:00
|
|
|
|
|
|
|
call Function1875
|
2013-07-20 19:34:40 -07:00
|
|
|
jr c, .asm_5430
|
|
|
|
|
|
|
|
.asm_542d
|
2013-12-23 01:39:26 -08:00
|
|
|
call Function5556
|
2013-07-20 19:34:40 -07:00
|
|
|
|
|
|
|
.asm_5430
|
2015-02-10 14:16:31 -08:00
|
|
|
ld hl, wd4cf
|
2015-11-02 08:15:32 -08:00
|
|
|
ld a, [hMapObjectIndexBuffer]
|
2013-07-20 19:34:40 -07:00
|
|
|
cp [hl]
|
|
|
|
jr z, .asm_543f
|
2013-12-23 01:39:26 -08:00
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $2
|
|
|
|
ret
|
|
|
|
|
|
|
|
.asm_543f
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $6
|
|
|
|
ret
|
|
|
|
; 5446
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
TurningStep: ; 5446
|
2013-12-23 01:39:26 -08:00
|
|
|
call Function4690
|
|
|
|
call Function463f
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_11
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $4
|
2015-02-10 14:16:31 -08:00
|
|
|
ld hl, wd4cf
|
2015-11-02 08:15:32 -08:00
|
|
|
ld a, [hMapObjectIndexBuffer]
|
2013-07-20 19:34:40 -07:00
|
|
|
cp [hl]
|
|
|
|
jr z, .asm_5461
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $2
|
|
|
|
ret
|
|
|
|
|
|
|
|
.asm_5461
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $6
|
|
|
|
ret
|
|
|
|
; 5468
|
|
|
|
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
SlideStep: ; 5468
|
2013-12-23 01:39:26 -08:00
|
|
|
call Function4690
|
|
|
|
call Function463f
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_11
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $1
|
2015-02-10 14:16:31 -08:00
|
|
|
ld hl, wd4cf
|
2015-11-02 08:15:32 -08:00
|
|
|
ld a, [hMapObjectIndexBuffer]
|
2013-07-20 19:34:40 -07:00
|
|
|
cp [hl]
|
|
|
|
jr z, .asm_5483
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $2
|
|
|
|
ret
|
|
|
|
|
|
|
|
.asm_5483
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $6
|
|
|
|
ret
|
|
|
|
; 548a
|
|
|
|
|
|
|
|
|
2015-10-29 20:32:11 -07:00
|
|
|
JumpStep: ; 548a
|
2013-12-23 01:39:26 -08:00
|
|
|
call Function4690
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_31
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $0
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_FLAGS2
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
res 3, [hl]
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_11
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $2
|
2013-12-23 01:39:26 -08:00
|
|
|
call Function5529
|
2015-02-10 14:16:31 -08:00
|
|
|
ld hl, wd4cf
|
2015-11-02 08:15:32 -08:00
|
|
|
ld a, [hMapObjectIndexBuffer]
|
2013-07-20 19:34:40 -07:00
|
|
|
cp [hl]
|
|
|
|
jr z, .asm_54b1
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $8
|
|
|
|
ret
|
|
|
|
|
|
|
|
.asm_54b1
|
2015-10-29 20:32:11 -07:00
|
|
|
ld hl, OBJECT_09
|
2013-07-20 19:34:40 -07:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $9
|
|
|
|
ret
|
|
|
|
; 54b8
|