mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 00:29:31 +00:00
Merge pull request #2510 from polluks/better_waitvsync
Faster waitvsync
This commit is contained in:
commit
e6ff8d9301
@ -23,8 +23,8 @@ _waitvsync:
|
|||||||
|
|
||||||
@c80:
|
@c80:
|
||||||
;FIXME: do we have to switch banks?
|
;FIXME: do we have to switch banks?
|
||||||
|
lda #$20
|
||||||
@l3:
|
@l3:
|
||||||
lda VDC_INDEX
|
and VDC_INDEX
|
||||||
and #$20
|
|
||||||
beq @l3
|
beq @l3
|
||||||
rts
|
rts
|
||||||
|
@ -9,8 +9,7 @@
|
|||||||
.include "pet.inc"
|
.include "pet.inc"
|
||||||
|
|
||||||
_waitvsync:
|
_waitvsync:
|
||||||
@l1:
|
lda #%00100000
|
||||||
lda VIA_PB
|
: and VIA_PB
|
||||||
and #%00100000
|
bne :-
|
||||||
bne @l1
|
|
||||||
rts
|
rts
|
||||||
|
Loading…
Reference in New Issue
Block a user