From 38f54875d053e62e3bab991facb8e13cdbc1e258 Mon Sep 17 00:00:00 2001 From: Stefan Date: Sat, 7 Sep 2024 17:06:45 +0200 Subject: [PATCH] Add files via upload --- libsrc/atmos/waitvsync.s | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libsrc/atmos/waitvsync.s diff --git a/libsrc/atmos/waitvsync.s b/libsrc/atmos/waitvsync.s new file mode 100644 index 000000000..6113f3da2 --- /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 + +wait: lda VIA::PRA2 + and #%00010000 ; CB1 + bne wait + rts + +.endproc