mirror of
https://github.com/cc65/cc65.git
synced 2024-11-19 06:31:31 +00:00
Optimizing (from Polluks tip)
This commit is contained in:
parent
18c94e123f
commit
195b5f0a07
@ -10,7 +10,7 @@
|
|||||||
.proc _cgetc
|
.proc _cgetc
|
||||||
; this routine could be quicker if we wrote in page 2 variables,
|
; this routine could be quicker if we wrote in page 2 variables,
|
||||||
; but it's better to use telemon routine in that case, because telemon can manage 4 I/O
|
; but it's better to use telemon routine in that case, because telemon can manage 4 I/O
|
||||||
lda cursor ; if cursor equal to 0, then switch off cursor
|
ldx cursor ; if cursor equal to 0, then switch off cursor
|
||||||
beq switchoff_cursor
|
beq switchoff_cursor
|
||||||
|
|
||||||
ldx #$00 ; x is the first screen
|
ldx #$00 ; x is the first screen
|
||||||
@ -18,7 +18,7 @@
|
|||||||
jmp loop ; could be replaced by a bne/beq but 'jmp' is cleaner than a bne/beq which could expect some matters
|
jmp loop ; could be replaced by a bne/beq but 'jmp' is cleaner than a bne/beq which could expect some matters
|
||||||
|
|
||||||
switchoff_cursor:
|
switchoff_cursor:
|
||||||
ldx #$00 ; x is the first screen
|
; at this step X is equal to $00, X must be set, because it's the id of the screen (telestrat can handle 4 virtuals screen)
|
||||||
BRK_TELEMON(XCOSCR) ; switch off cursor
|
BRK_TELEMON(XCOSCR) ; switch off cursor
|
||||||
|
|
||||||
loop:
|
loop:
|
||||||
|
Loading…
Reference in New Issue
Block a user