firther work on char delete
This commit is contained in:
1 parent
37dbe00ec2
commit
d48cea82be
2 files changed
+11
-7
No files matched your search
@@ -40,13 +40,16 @@ chrout_screen_del_column_0:
|
|||||||
chrout_screen_del_column_non_0:
|
chrout_screen_del_column_non_0:
|
||||||
|
|
||||||
// We need to scroll back the rest of the logical line
|
// We need to scroll back the rest of the logical line
|
||||||
// YYY this part scrolls back too much!
|
|
||||||
|
// YYY does not work properly when cursor crosses physical line boundary
|
||||||
|
// YYY possibly it should remove the 'continuaed line' mark in some cases, test on original ROMs
|
||||||
|
|
||||||
jsr screen_get_logical_line_end_ptr
|
jsr screen_get_logical_line_end_ptr
|
||||||
|
tya
|
||||||
|
tax
|
||||||
|
ldy PNTR
|
||||||
|
dey
|
||||||
!:
|
!:
|
||||||
cpy PNTR
|
|
||||||
beq !+
|
|
||||||
|
|
||||||
iny
|
iny
|
||||||
lda (PNT),y
|
lda (PNT),y
|
||||||
dey
|
dey
|
||||||
@@ -57,12 +60,13 @@ chrout_screen_del_column_non_0:
|
|||||||
sta (USER),y
|
sta (USER),y
|
||||||
iny
|
iny
|
||||||
|
|
||||||
bne !- // branch always
|
dex
|
||||||
|
cpx PNTR
|
||||||
|
bne !-
|
||||||
!:
|
!:
|
||||||
// Clear char at end of line (just the character - not color!)
|
// Clear char at end of line (just the character - not color!)
|
||||||
|
|
||||||
jsr screen_get_logical_line_end_ptr
|
jsr screen_get_logical_line_end_ptr
|
||||||
tay
|
|
||||||
lda #$20
|
lda #$20
|
||||||
sta (PNT),y
|
sta (PNT),y
|
||||||
dec PNTR
|
dec PNTR
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
screen_calculate_LNMX: // YYY review all the code, mayybe some optimizations are possible using this value
|
screen_calculate_LNMX:
|
||||||
|
|
||||||
ldy TBLX
|
ldy TBLX
|
||||||
lda LDTBL, y
|
lda LDTBL, y
|
||||||
|
|||||||
Reference in new issue
Block a user