saved few more bytes in CHROUT
This commit is contained in:
1 parent
d3ef25c441
commit
e24a6f344d
1 file changed
+6
-7
@@ -74,10 +74,9 @@ chrout_try_CRSR_LEFT:
|
|||||||
|
|
||||||
lda TBLX
|
lda TBLX
|
||||||
ora PNTR
|
ora PNTR
|
||||||
bne position_not_top_left
|
beq crsr_l1 // recalculating pointer is not really necessary, but this is a very rare case nevertheless
|
||||||
jmp chrout_screen_done
|
|
||||||
position_not_top_left:
|
|
||||||
dec PNTR
|
dec PNTR
|
||||||
|
crsr_l1:
|
||||||
jmp chrout_screen_calc_lptr_done
|
jmp chrout_screen_calc_lptr_done
|
||||||
!:
|
!:
|
||||||
chrout_try_CRSR_RIGHT:
|
chrout_try_CRSR_RIGHT:
|
||||||
@@ -88,14 +87,13 @@ chrout_try_CRSR_RIGHT:
|
|||||||
inc PNTR
|
inc PNTR
|
||||||
jmp chrout_screen_calc_lptr_done
|
jmp chrout_screen_calc_lptr_done
|
||||||
!:
|
!:
|
||||||
chrout_try_RVS_ON: // XXX deduplicate with RVS_OFF
|
chrout_try_RVS_ON:
|
||||||
|
|
||||||
cmp #$12
|
cmp #$12
|
||||||
bne !+
|
bne !+
|
||||||
|
|
||||||
lda #$80
|
lda #$80
|
||||||
sta RVS
|
bne rvs_l1
|
||||||
jmp chrout_screen_done
|
|
||||||
!:
|
!:
|
||||||
chrout_try_RVS_OFF:
|
chrout_try_RVS_OFF:
|
||||||
|
|
||||||
@@ -103,6 +101,7 @@ chrout_try_RVS_OFF:
|
|||||||
bne !+
|
bne !+
|
||||||
|
|
||||||
lda #$00
|
lda #$00
|
||||||
|
rvs_l1:
|
||||||
sta RVS
|
sta RVS
|
||||||
jmp chrout_screen_done
|
jmp chrout_screen_done
|
||||||
!:
|
!:
|
||||||
@@ -195,6 +194,6 @@ chrout_try_FKEY:
|
|||||||
|
|
||||||
// FALLTROUGH
|
// FALLTROUGH
|
||||||
|
|
||||||
!: // unknown, LF, or no more actions required // XXX to !csc_done
|
!: // unknown, LF, or no more actions required
|
||||||
|
|
||||||
jmp chrout_screen_done
|
jmp chrout_screen_done
|
||||||
Reference in new issue
Block a user