From 012a23ff919e03657c349b3b9e89d130f0961b5c Mon Sep 17 00:00:00 2001 From: Stefan Haubenthal Date: Sun, 18 Oct 2020 10:02:43 +0200 Subject: [PATCH] Use library function waitvsync --- src/macbootmake.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/macbootmake.c b/src/macbootmake.c index 44a2ccd..7ac5e83 100644 --- a/src/macbootmake.c +++ b/src/macbootmake.c @@ -129,13 +129,9 @@ static void __fastcall__ call_basic_rom(int address) // wait a number of vic frames static void __fastcall__ vsync_wait(uint8_t frames) { - uint8_t x; - do { // wait for interrupt - x = PEEK(0xa2); - while (PEEK(0xa2) == x) - ; + waitvsync(); } while (--frames); #if 0 // this code relies on cc65's argument stack handling...