BASIC-Kun/XBASIC - wait for VBLANK

بواسطة skumlerud

Resident (58)

صورة skumlerud

15-01-2023, 21:58

What would be the correct way to wait for VBLANK in BASIC-Kun? I'm working on a simple game in BASIC-Kun, and need to update the screen ASAP when VBLANK occurs. Currently I'm doing it like this before updating the screen.

10 TIME=0
20 IF TIME=0 GOTO 20

This works so far, but I'm wondering if there is a better/faster/more correct way to do this?

Login أوregister لوضع تعليقاتك

بواسطة acet

Supporter (12)

صورة acet

16-01-2023, 03:31

10 'HALT
20 '#I &H76

بواسطة skumlerud

Resident (58)

صورة skumlerud

17-01-2023, 22:09

Thanks, this works fine Smile