rupee counter displays item collection count in ganon's room

This commit is contained in:
Karkat
2018-05-27 17:45:35 -04:00
parent 34328496ce
commit dd029fd0b0
2 changed files with 17 additions and 35 deletions

View File

@@ -2,39 +2,21 @@
; Four Digit Rupees
;--------------------------------------------------------------------------------
Draw4DigitRupees:
LDA $7EF362
JSL.l HexToDec
;REP #$30
LDA $7F5004 : AND.w #$00FF : ORA.w #$2400 : STA $7EC750
LDA $7F5005 : AND.w #$00FF : ORA.w #$2400 : STA $7EC752
LDA $7F5006 : AND.w #$00FF : ORA.w #$2400 : STA $7EC754
LDA $7F5007 : AND.w #$00FF : ORA.w #$2400 : STA $7EC756
;LDA.w #$247F ; clear other hud cells
;STA $7EC758
;STA $7EC75E
;STA $7EC764
;STA $7EC718 ; bombs
;STA $7EC71E ; arrows
;STA $7EC724 ; keys
;LDA.w #$2C88 : STA $7EC71A ; bomb icon
;LDA.w #$2C89 : STA $7EC71C
;LDA $7EF340 : AND.w #$00FF : CMP.w #$0003 : !BGE .silverArrows
;.woodArrows
;LDA.w #$20A7 : STA $7EC720 ; wood arrow icon
;LDA.w #$20A9 : STA $7EC722
;BRA +
;.silverArrows
;LDA.w #$2486 : STA $7EC720 ; silver arrow icon
;LDA.w #$2487 : STA $7EC722
;+
;LDA.w #$2871 : STA $7EC726 ; key icon
LDA $1B : AND.w #$00FF : BEQ .outdoors ; skip if outdoors
.indoors
LDA $A0 : BNE .normal ; skip except for ganon's room
;LDA #$246E : STA $7EC712
;LDA #$246F : STA $7EC714
LDA $7EF423
BRA .print
.outdoors
.normal
LDA $7EF362
.print
JSL.l HexToDec
LDA $7F5004 : AND.w #$00FF : ORA.w #$2400 : STA $7EC750
LDA $7F5005 : AND.w #$00FF : ORA.w #$2400 : STA $7EC752
LDA $7F5006 : AND.w #$00FF : ORA.w #$2400 : STA $7EC754
LDA $7F5007 : AND.w #$00FF : ORA.w #$2400 : STA $7EC756
RTL
;================================================================================