Created a target and a library for the Commander X16 prototype computer.
This commit is contained in:
17
libsrc/cx16/waitvsync.s
Normal file
17
libsrc/cx16/waitvsync.s
Normal file
@@ -0,0 +1,17 @@
|
||||
;
|
||||
; 2019-09-26, Greg King
|
||||
;
|
||||
; void waitvsync (void);
|
||||
;
|
||||
; VERA's vertical sync. causes IRQs which increment the jiffy clock.
|
||||
;
|
||||
|
||||
.export _waitvsync
|
||||
|
||||
.include "cx16.inc"
|
||||
|
||||
_waitvsync:
|
||||
lda TIME + 2
|
||||
: cmp TIME + 2
|
||||
beq :- ; Wait for next jiffy
|
||||
rts
|
||||
Reference in New Issue
Block a user