mirror of
https://github.com/robmcmullen/fujirun.git
synced 2025-01-16 13:31:13 +00:00
Added tile replacement for odd column left/right tiles
* tile 15 replaces tile 12 in odd columns to produce correct bit pattern for green
This commit is contained in:
parent
6e2e584ba7
commit
a3ab436e85
BIN
fatfont128.dat
BIN
fatfont128.dat
Binary file not shown.
24
screen.s
24
screen.s
@ -209,10 +209,10 @@ draw_to_page1 lda #$00
|
||||
|
||||
; copy addresses for functions that write to one page or the other
|
||||
lda #<FASTFONT_H1
|
||||
sta fastfont+1
|
||||
sta fastfont_smc+1
|
||||
sta copytexthgr_dest_smc+1
|
||||
lda #>FASTFONT_H1
|
||||
sta fastfont+2
|
||||
sta fastfont_smc+2
|
||||
sta copytexthgr_dest_smc+2
|
||||
rts
|
||||
|
||||
@ -239,17 +239,27 @@ draw_to_page2 lda #$60
|
||||
sta damagestart
|
||||
|
||||
lda #<FASTFONT_H2
|
||||
sta fastfont+1
|
||||
sta fastfont_smc+1
|
||||
sta copytexthgr_dest_smc+1
|
||||
lda #>FASTFONT_H2
|
||||
sta fastfont+2
|
||||
sta fastfont_smc+2
|
||||
sta copytexthgr_dest_smc+2
|
||||
rts
|
||||
|
||||
; pageflip jump tables. JSR to one of these jumps and it will jump to the
|
||||
; correct version for the page. The rts in there will return to the caller
|
||||
|
||||
fastfont jmp $ffff
|
||||
; tile for middle left/right (number 12) is a color tile and gets
|
||||
; the wrong bit pattern when it's in an odd column -- replace the
|
||||
; image with tile 15 when necessary
|
||||
fastfont nop
|
||||
cmp #12
|
||||
bne fastfont_smc
|
||||
txa
|
||||
and #1
|
||||
bne ?1
|
||||
lda #15
|
||||
bne fastfont_smc
|
||||
?1 lda #12
|
||||
fastfont_smc jmp $ffff
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user