dos33fsprogs/music/zero_wing/wait.s

19 lines
215 B
ArmAsm
Raw Permalink Normal View History

2023-01-17 05:44:24 +00:00
; copy of ROM wait
; because we might disable ROM
wait:
sec
wait2:
pha
wait3:
sbc #$01
bne wait3
pla
sbc #$01
bne wait2
rts
wait_end:
.assert (>wait_end - >wait) < 1 , error, "wait crosses page boundary"