The patch I'm working with is the Powerups Hijack Patch by ICB. I have almost absolutely no idea what I'm doing, so bare with me.
This is the code:
LDA $0491E0 ;I'm pretty sure that's where the amount of coins are stored, not completely sure
CLC
ADC #$25 ;Whenever I add something, it either goes to J9 or K7
STA $0DBF ;I don't know where it is storing it too.
BRA RETURN
I don't know what I'm doing wrong here, but I have a clue - I either have the wrong address(es), or I'm storing it to the wrong place.
I've already tried just making the coin count 25, and that worked, but I want to add 25 to the current total. The main thing I don't understand is the absolute address up there, or absolute addresses at all. Can someone tell me what's up with the code?
waiting for SMWC2 to come out since 1995
This is the code:
LDA $0491E0 ;I'm pretty sure that's where the amount of coins are stored, not completely sure
CLC
ADC #$25 ;Whenever I add something, it either goes to J9 or K7
STA $0DBF ;I don't know where it is storing it too.
BRA RETURN
I don't know what I'm doing wrong here, but I have a clue - I either have the wrong address(es), or I'm storing it to the wrong place.
I've already tried just making the coin count 25, and that worked, but I want to add 25 to the current total. The main thing I don't understand is the absolute address up there, or absolute addresses at all. Can someone tell me what's up with the code?
waiting for SMWC2 to come out since 1995