BASIC-Kun/XBASIC - wait for VBLANK

Por skumlerud

Resident (58)

Imagen del 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 sesión o register para postear comentarios

Por acet

Supporter (12)

Imagen del acet

16-01-2023, 03:31

10 'HALT
20 '#I &H76

Por skumlerud

Resident (58)

Imagen del skumlerud

17-01-2023, 22:09

Thanks, this works fine Smile