mirror of
https://github.com/irmen/prog8.git
synced 2025-02-26 11:29:24 +00:00
slightly improve sys.waitvsync() on c64
This commit is contained in:
parent
fbef63e150
commit
06b3bf27b5
@ -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
|
||||
}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user