mirror of
https://github.com/cc65/cc65.git
synced 2025-01-11 11:30:13 +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"
|
.include "c128.inc"
|
||||||
|
|
||||||
_waitvblank:
|
_waitvblank:
|
||||||
|
|
||||||
|
lda MODE
|
||||||
|
bmi @c80
|
||||||
|
|
||||||
@l1:
|
@l1:
|
||||||
lda VIC_CTRL1
|
bit VIC_CTRL1
|
||||||
bpl @l1
|
bpl @l1
|
||||||
@l2:
|
@l2:
|
||||||
lda VIC_CTRL1
|
bit VIC_CTRL1
|
||||||
bmi @l2
|
bmi @l2
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
@c80:
|
||||||
|
;FIXME: do we have to switch banks?
|
||||||
|
@l3:
|
||||||
|
lda VDC_INDEX
|
||||||
|
and #$20
|
||||||
|
beq @l3
|
||||||
|
rts
|
||||||
|
@ -5,9 +5,9 @@
|
|||||||
|
|
||||||
_waitvblank:
|
_waitvblank:
|
||||||
@l1:
|
@l1:
|
||||||
lda VIC_CTRL1
|
bit VIC_CTRL1
|
||||||
bpl @l1
|
bpl @l1
|
||||||
@l2:
|
@l2:
|
||||||
lda VIC_CTRL1
|
bit VIC_CTRL1
|
||||||
bmi @l2
|
bmi @l2
|
||||||
rts
|
rts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user