mirror of
https://github.com/cc65/cc65.git
synced 2024-12-26 08:32:00 +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:
|
||||
;FIXME: do we have to switch banks?
|
||||
lda #$20
|
||||
@l3:
|
||||
lda VDC_INDEX
|
||||
and #$20
|
||||
and VDC_INDEX
|
||||
beq @l3
|
||||
rts
|
||||
|
@ -9,8 +9,7 @@
|
||||
.include "pet.inc"
|
||||
|
||||
_waitvsync:
|
||||
@l1:
|
||||
lda VIA_PB
|
||||
and #%00100000
|
||||
bne @l1
|
||||
lda #%00100000
|
||||
: and VIA_PB
|
||||
bne :-
|
||||
rts
|
||||
|
Loading…
Reference in New Issue
Block a user