added waitvblank and fixed get_tv
This commit is contained in:
18
libsrc/pce/waitvblank.s
Normal file
18
libsrc/pce/waitvblank.s
Normal file
@@ -0,0 +1,18 @@
|
||||
;
|
||||
; void waitvblank (void);
|
||||
;
|
||||
|
||||
.include "pce.inc"
|
||||
|
||||
.export _waitvblank
|
||||
;; .importzp tickcount
|
||||
|
||||
.proc _waitvblank
|
||||
|
||||
lda tickcount
|
||||
@lp: cmp tickcount
|
||||
beq @lp
|
||||
rts
|
||||
|
||||
.endproc
|
||||
|
||||
Reference in New Issue
Block a user