From 78864d2c56e095d41869c631f98d86cccb3824d3 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Mon, 25 Sep 2017 23:40:29 +0200 Subject: [PATCH] atrvt100.s: use ADRESS instead of xVector variable This was probably an artifact from early stages of porting to the Atari. Problem manifested itself e.g. when hitting DEL in the middle of a 'bash' input line. The change also includes some cleanups as suggested by Oliver. --- drivers/atrvt100.s | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/atrvt100.s b/drivers/atrvt100.s index b2b50d0..69a24c8 100644 --- a/drivers/atrvt100.s +++ b/drivers/atrvt100.s @@ -1253,10 +1253,8 @@ DEL2 ; first col jsr Plot ldy COLCRS -DELe ldx ROWCRS - jsr SLV - lda #$00 - sta (xVector),y ; clear char +DELe lda #$00 + sta (ADRESS),y ; clear char DELee jsr COn rts @@ -1448,10 +1446,9 @@ EL1 sta (xVector),y ; clear char ErEnLn jsr COff ; -- erase chars -- - ldx ROWCRS ldy COLCRS ; get crsr col lda #$00 ; load space -EEL1 sta (xVector),y ; clear char +EEL1 sta (ADRESS),y; clear char iny cpy #Cols ; pos 40? bne EEL1 ; next char @@ -1469,10 +1466,9 @@ EEL1 sta (xVector),y ; clear char ErBeLn jsr COff ; -- erase chars -- - ldx ROWCRS ldy COLCRS ; get crsr col lda #$00 ; load space -EBL1 sta (xVector),y ; clear char +EBL1 sta (ADRESS),y; clear char dey bpl EBL1 ; pos>=0 -> next