1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-10 19:29:45 +00:00

Merge pull request #1716 from Fabrizio-Caruso/GamateConioFix

[Tentative: please review] Fix Gamate CONIO: non-solid characters bug
This commit is contained in:
Bob Andrews 2022-04-02 15:15:53 +02:00 committed by GitHub
commit d5cb3661f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,28 +89,32 @@ putchar:
adc #>(fontdata-$f8) adc #>(fontdata-$f8)
sta ptr3+1 sta ptr3+1
lda CHARCOLOR
and #1
beq @skip_plane1
lda #LCD_XPOS_PLANE1 lda #LCD_XPOS_PLANE1
clc clc
adc CURS_X adc CURS_X
sta LCD_X sta LCD_X
ldy #$f8 lda CHARCOLOR
and #1
beq @delete1
ldy #$F8
@copylp1: @copylp1:
lda (ptr3),y lda (ptr3),y
eor RVS eor RVS
sta LCD_DATA sta LCD_DATA
iny iny
bne @copylp1 bne @copylp1
beq @skip_delete1
@skip_plane1: @delete1:
lda #$00
sta LCD_DATA
iny
bne @delete1
lda CHARCOLOR @skip_delete1:
and #2
beq @skip_plane2
lda #LCD_XPOS_PLANE2 lda #LCD_XPOS_PLANE2
clc clc
@ -120,16 +124,29 @@ putchar:
ldx CURS_Y ldx CURS_Y
lda _plotlo,x lda _plotlo,x
sta LCD_Y sta LCD_Y
lda CHARCOLOR
and #2
beq @delete2
ldy #$F8
ldy #$f8
@copylp2: @copylp2:
lda (ptr3),y lda (ptr3),y
eor RVS eor RVS
sta LCD_DATA sta LCD_DATA
iny iny
bne @copylp2 bne @copylp2
beq @skip_delete2
@delete2:
lda #$00
sta LCD_DATA
iny
bne @delete2
@skip_plane2: @skip_delete2:
pla pla
tax tax
ldy CURS_X ldy CURS_X