Reclaim 0x1000 Bytes of WRAM from a (nearly) static table originally stored compressed.

The nearly is due to the silly hack they used for stalfos bomb
vulnerability. For that I used one byte of WRAM to compensate.
This commit is contained in:
Kevin Cathcart
2018-07-12 23:02:52 -04:00
parent 14783a12e0
commit 702e1bee59
6 changed files with 42 additions and 2 deletions

View File

@@ -39,6 +39,16 @@ LoadSwordForDamage:
JSR.w LoadModifiedSwordLevel ; load normal sword value
RTL
;================================================================================
;!StalfosBombDamage = "$7F509D"
LookupDamageLevel:
CPX.w #$6918 : BNE +
LDA.l !StalfosBombDamage
BRA .done
+
LDA.l Damage_Table, X
.done
RTL
;================================================================================
; $7F50C0 - Sword Modifier
LoadModifiedSwordLevel: ; returns short
LDA $7F50C0 : BEQ +