Add cane-only modes

This commit is contained in:
2021-12-20 16:10:11 -08:00
parent e50641db11
commit e210c85710
12 changed files with 193 additions and 83 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