mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 19:29:45 +00:00
dont trash akku if possible, use VDC register when in 80column mode
This commit is contained in:
parent
035621aa95
commit
49aad01bf1
@ -4,10 +4,22 @@
|
||||
.include "c128.inc"
|
||||
|
||||
_waitvblank:
|
||||
|
||||
lda MODE
|
||||
bmi @c80
|
||||
|
||||
@l1:
|
||||
lda VIC_CTRL1
|
||||
bit VIC_CTRL1
|
||||
bpl @l1
|
||||
@l2:
|
||||
lda VIC_CTRL1
|
||||
bit VIC_CTRL1
|
||||
bmi @l2
|
||||
rts
|
||||
|
||||
@c80:
|
||||
;FIXME: do we have to switch banks?
|
||||
@l3:
|
||||
lda VDC_INDEX
|
||||
and #$20
|
||||
beq @l3
|
||||
rts
|
||||
|
@ -5,9 +5,9 @@
|
||||
|
||||
_waitvblank:
|
||||
@l1:
|
||||
lda VIC_CTRL1
|
||||
bit VIC_CTRL1
|
||||
bpl @l1
|
||||
@l2:
|
||||
lda VIC_CTRL1
|
||||
bit VIC_CTRL1
|
||||
bmi @l2
|
||||
rts
|
||||
|
Loading…
x
Reference in New Issue
Block a user