Identify more sprite graphics and map object labels, and have consistent anonymous jumptable labels

This commit is contained in:
Rangi
2020-10-22 10:54:53 -04:00
parent ae4fe08084
commit b9a74ff777
6 changed files with 419 additions and 407 deletions

View File

@@ -134,7 +134,7 @@ HandleQueuedCommand:
dba CmdQueue_Type3
dba CmdQueue_Type4
CmdQueueAnonymousJumptable:
CmdQueues_AnonJumptable:
ld hl, CMDQUEUE_05
add hl, bc
ld a, [hl]
@@ -142,13 +142,13 @@ CmdQueueAnonymousJumptable:
rst JumpTable
ret
CmdQueueAnonJT_Increment:
CmdQueues_IncAnonJumptableIndex:
ld hl, CMDQUEUE_05
add hl, bc
inc [hl]
ret
CmdQueueAnonJT_Decrement:
CmdQueues_DecAnonJumptableIndex:
ld hl, CMDQUEUE_05
add hl, bc
dec [hl]
@@ -162,7 +162,7 @@ CmdQueue_Type1:
ret
CmdQueue_Type4:
call CmdQueueAnonymousJumptable
call CmdQueues_AnonJumptable
; anonymous dw
dw .zero
dw .one
@@ -172,7 +172,7 @@ CmdQueue_Type4:
ld hl, CMDQUEUE_04
add hl, bc
ld [hl], a
call CmdQueueAnonJT_Increment
call CmdQueues_IncAnonJumptableIndex
.one
ld hl, CMDQUEUE_ADDR
add hl, bc
@@ -206,7 +206,7 @@ CmdQueue_Type4:
ret
CmdQueue_Type3:
call CmdQueueAnonymousJumptable
call CmdQueues_AnonJumptable
; anonymous dw
dw .zero
dw .one
@@ -215,11 +215,11 @@ CmdQueue_Type3:
.zero
call .IsPlayerFacingDown
jr z, .PlayerNotFacingDown
call CmdQueueAnonJT_Increment
call CmdQueues_IncAnonJumptableIndex
.one
call .IsPlayerFacingDown
jr z, .PlayerNotFacingDown
call CmdQueueAnonJT_Increment
call CmdQueues_IncAnonJumptableIndex
ld hl, CMDQUEUE_02
add hl, bc
@@ -230,7 +230,7 @@ CmdQueue_Type3:
.two
call .IsPlayerFacingDown
jr z, .PlayerNotFacingDown
call CmdQueueAnonJT_Decrement
call CmdQueues_DecAnonJumptableIndex
ld hl, CMDQUEUE_03
add hl, bc