Add cane-only modes

This commit is contained in:
2021-12-20 16:10:11 -08:00
parent 0ab9095222
commit 53792aea25
12 changed files with 193 additions and 79 deletions

View File

@@ -76,9 +76,9 @@ JMP .done
PHA
TYA ; load bomb upgrade item
!SUB #$B0 ; convert to bomb level
CMP.l !BOMB_LEVEL : !BGE + ; skip if highest is lower (this is an upgrade)
LDA.l !BOMB_LEVEL : !ADD #$B0 ; convert to item id
TAY : PLA : LDA.l !BOMB_LEVEL ; put bomb level into the thing to write
CMP.l !WEAPON_LEVEL : !BGE + ; skip if highest is lower (this is an upgrade)
LDA.l !WEAPON_LEVEL : !ADD #$B0 ; convert to item id
TAY : PLA : LDA.l !WEAPON_LEVEL ; put bomb level into the thing to write
JMP .done
+
PLA