Purchase

by circlefriendo

Game: SMW

Description: Buy Big Status for 5 coins

!cost = #$05
!coins = $0dbf
!power = $19
!big = #$01

lda !power
bne end

cont:
lda !coins
cmp !cost
bcc end

sbc !cost
sta !coins

lda !big
sta !power

end:
rtl
back to listings