Tip: If your level contains elements that temporarily change the music to a global song (such as a P-Switch or a Star), that music will not stop playing after the intended end time if the music bypass setting is set to 00.
This is the 100 Coin Prize patch, converted to UberASM. Instead of a 1‐up, Mario gets a star or a powerup when he gets 100 coins. You can configure what Mario is given upon collecting 100 coins, and you can optionally re‐enable the 1‐up reward in addition to the star/powerup prize.
can i make it so it beats the level with 100 coins?
Yes. Delete this code:
if !Star == 0
LDA $19 ; If powerup status...
CMP #$03 ; Is Fire Mario,
BEQ + ; Give star power.
INC $19 ; Increment powerup status.
BRA ++ ; Skip over star power.
JSL $01C580|!bank ; Jump to star power subroutine.
if !OneUp == 0
DEC $0DBE|!addr ; Decrement lives by one. Actually nullifies the 1-up given by collecting 100 coins.