BASIC-Kun/XBASIC - wait for VBLANK

By 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

By acet

Supporter (12)

Аватар пользователя acet

16-01-2023, 03:31

10 'HALT
20 '#I &H76

By skumlerud

Resident (58)

Аватар пользователя skumlerud

17-01-2023, 22:09

Thanks, this works fine Smile