diff --git a/doc/funcref.sgml b/doc/funcref.sgml index 130646538..ea2350aad 100644 --- a/doc/funcref.sgml +++ b/doc/funcref.sgml @@ -155,6 +155,7 @@ function. + @@ -8358,6 +8359,7 @@ only in the presence of a prototype. , , , , @@ -8365,6 +8367,7 @@ only in the presence of a prototype. diff --git a/include/atmos.h b/include/atmos.h index 38d423c46..460a0010f 100644 --- a/include/atmos.h +++ b/include/atmos.h @@ -169,6 +169,9 @@ void atmos_tock (void); void atmos_zap (void); /* Raygun sound effect */ +void waitvsync (void); +/* Wait for start of next frame */ + /* End of atmos.h */ diff --git a/libsrc/atmos/waitvsync.s b/libsrc/atmos/waitvsync.s new file mode 100644 index 000000000..85e50a795 --- /dev/null +++ b/libsrc/atmos/waitvsync.s @@ -0,0 +1,18 @@ +; +; Written by Stefan Haubenthal , requires VSync hack +; +; void waitvsync (void); +; + + .export _waitvsync + + .include "atmos.inc" + +.proc _waitvsync + + lda #%00010000 ; CB1 +wait: and VIA::PRA2 + bne wait + rts + +.endproc