Hmmmm..... pretty simple code actually...
OPEN THE ASM FILE, THEN EDIT THIS PART!
LDA $0DBF ; Load coins
CMP #50 ; If 50 are collected...
BCC Return ; Continue
STZ $0DBF ; Store zero to the coin counter
LDA #$FF ; \ End
STA $1493 ; / Level
LDA #$0C ; Passed level music, change to 0B for passed boss music
STA $1DFB ; Plays music
Deleted the top part with all of ";"
But see where is says "If 50 are collected"? By it, it says "CMP #50" I think you have to change that "50" to whatever, I suggest you do not do 100...