soft80_bgcolor:
ldx soft80_internal_bgcolor ; get old value
- stx tmp2 ; save old value
sta soft80_internal_bgcolor ; set new value
jsr mkcharcolor
+ stx tmp2 ; save old value
+
.if SOFT80COLORVOODOO = 1
; if the old bg color is equal to color ram of that cell, then also
; update the color ram to the new value.
sta (CRAM_PTR),y ; vram
.endif
- ;lda CURS_X
- ;and #$01
lda soft80_internal_cursorxlsb
bne draw_spaceinvers_odd
.endif
;ldy #$00 ; is still $00
- ;lda CURS_X
- ;and #$01
lda soft80_internal_cursorxlsb
bne draw_space_odd
;and #$0f
sta tmp3 ; A contains colram
- ;lda CURS_X
- ;and #$01
lda soft80_internal_cursorxlsb
bne @sk3
; botch characters in the cell are used
- ;lda CURS_X
- ;and #$01
lda soft80_internal_cursorxlsb
bne @sk2 ; jump if odd xpos
jsr soft80_checkchar
bcs @sk1 ; char at current position => overwrite 1st
- ;lda CURS_X
- ;and #$01
lda soft80_internal_cursorxlsb
beq @sk3 ; jump if even xpos
@sk2:
;ldy #$00 ; is still $00
- ;lda CURS_X
- ;and #$01
lda soft80_internal_cursorxlsb
bne @l1a
lda (SCREEN_PTR),y
and #$f0
cmp #$f0
- bne @l2b
+ bne @ischar
.if (line < 7)
dey
.endif
;ldy #$00 ; is 0
clc
rts
-@l2b:
+@ischar:
ldy #$00
sec
rts
lda (SCREEN_PTR),y
and #$0f
cmp #$0f
- bne @l2b
+ bne @ischar
.if line < 7
dey
.endif
;ldy #$00 ; is 0
clc
rts
-;@l2bb:
-; ldy #$00
-; sec
-; rts
-
.endif