added interruptor support

This commit is contained in:
mrdudz
2015-09-19 15:55:43 +02:00
parent 859604407b
commit 296489ba6c
8 changed files with 80 additions and 41 deletions

18
libsrc/pce/ticktock.s Normal file
View File

@@ -0,0 +1,18 @@
.interruptor ticktock, 24
.include "pce.inc"
.include "extzp.inc"
ticktock:
bbr5 vdc_flags,@s1 ; not vertical-blank interrupt
; Increment the system tick counter.
inc tickcount
bne @s1
inc tickcount+1
bne @s1
inc tickcount+2
bne @s1
inc tickcount+3
@s1: rts