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