1
0
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:
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: @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

View File

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