1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-17 09:07:32 +00:00
cc65/libsrc/pce/ticktock.s

18 lines
381 B
ArmAsm
Raw Normal View History

.interruptor ticktock
2015-09-19 13:55:43 +00:00
.include "extzp.inc"
ticktock:
bbr5 vdc_flags,@s1 ; skip if not vertical-blank interrupt
2015-09-19 13:55:43 +00:00
; Increment the system tick counter.
inc tickcount
bne @s1
inc tickcount+1
bne @s1
inc tickcount+2
bne @s1
inc tickcount+3
@s1: rts