1
0
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:
Bob Andrews 2024-09-08 16:09:23 +02:00 committed by GitHub
commit e6ff8d9301
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -9,8 +9,7 @@
.include "pet.inc"
_waitvsync:
@l1:
lda VIA_PB
and #%00100000
bne @l1
lda #%00100000
: and VIA_PB
bne :-
rts