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.
|
; --- 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.
|
; note: a more accurate way to wait for vsync is to set up a vsync irq handler instead.
|
||||||
%asm {{
|
%asm {{
|
||||||
- lda c64.RASTER
|
- bit c64.SCROLY
|
||||||
beq -
|
bpl -
|
||||||
- lda c64.RASTER
|
- bit c64.SCROLY
|
||||||
bne -
|
|
||||||
bit c64.SCROLY
|
|
||||||
bmi -
|
bmi -
|
||||||
rts
|
rts
|
||||||
}}
|
}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user