slightly improve sys.waitvsync() on c64

This commit is contained in:
Irmen de Jong 2021-10-03 21:35:12 +02:00
parent fbef63e150
commit 06b3bf27b5

View File

@ -502,11 +502,9 @@ sys {
; --- busy wait till the next vsync has occurred (approximately), without depending on custom irq handling.
; note: a more accurate way to wait for vsync is to set up a vsync irq handler instead.
%asm {{
- lda c64.RASTER
beq -
- lda c64.RASTER
bne -
bit c64.SCROLY
- bit c64.SCROLY
bpl -
- bit c64.SCROLY
bmi -
rts
}}