So I have been wanting to save dragon coins found in my hack. I have it working for the most part but sometimes a level will register that the coins have been found without playing the level and sometimes it won't save until you have collected them twice. I know you have to save them in BWRAM plus if you are using SA1. I have it setup like this
Can someone help me figure out what I am doing wrong?
Trust the Fungus.
Code
bw_ram_table: ;Put save ram addresses here, not after .end. dl $400EF8 : dw $0001 ;Yoshi rescued flag dl $401F2F : dw $000C ;Yoshi Coin Collected .end bw_ram_defaults: db $00 db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00 ;Format: db $xx,$xx,$xx... ;^valid sizes: db (byte), dw (word, meaning 2 bytes: $xxxx), and dl ;(long, 3-bytes: $xxxxxx). The $ (dollar) symbol isn't mandatory, ;just represents hexadecimal type of value.
Can someone help me figure out what I am doing wrong?
Trust the Fungus.