Language…
18 users online:  AmperSam,  Anorakun, Beed28, DanMario24YT, gizmo_321, Golden Yoshi, Gorry, Green, h.carrell, Hammerer, JezJitzu, OrangeBronzeDaisy, Papangu, recam, Serge, signature_steve, SMW Magic, Spedinja - Guests: 279 - Bots: 395
Users: 64,795 (2,370 active)
Latest user: mathew

Saving Dragon Coins with BW Ram Plus

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

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.