Added sample tests for publishing
This commit is contained in:
parent
025b756e24
commit
e4a67924e3
Binary file not shown.
|
@ -0,0 +1,52 @@
|
|||
# Currently valid assemblers: mac65 and cc65
|
||||
ASSEMBLER = "mac65"
|
||||
|
||||
TARGETS = TEST1A.BIN TEST1B.BIN TEST1C.BIN TEST1D.BIN TEST2.BIN test3--transposed_font.s TEST3.BIN
|
||||
|
||||
all: $(TARGETS)
|
||||
|
||||
asmgen_font_compare.dsk:
|
||||
atrcopy asmsgen_font_compare.dsk create dos33.dsk -f
|
||||
atrcopy asmsgen_font_compare.dsk add HELLO -t A -f
|
||||
|
||||
TEST1A.BIN: driver.s test1a--no_optimization.s
|
||||
rm -f $@
|
||||
cat $^ > temp.s
|
||||
atrcopy . assemble -f -d fatfont128.dat@0x6000 -s temp.s -r 0x5000 -o $@
|
||||
atrcopy asmsgen_font_compare.dsk add $@ -f
|
||||
|
||||
TEST1B.BIN: driver.s test1b--incrementing_font_pointers.s
|
||||
rm -f $@
|
||||
cat $^ > temp.s
|
||||
atrcopy . assemble -f -d fatfont128.dat@0x6000 -s temp.s -r 0x5000 -o $@
|
||||
atrcopy asmsgen_font_compare.dsk add $@ -f
|
||||
|
||||
TEST1C.BIN: driver.s test1c--assembly_lines_ch31.s
|
||||
rm -f $@
|
||||
cat $^ > temp.s
|
||||
atrcopy . assemble -f -d fatfont128.dat@0x6000 -s temp.s -r 0x5000 -o $@
|
||||
atrcopy asmsgen_font_compare.dsk add $@ -f
|
||||
|
||||
TEST1D.BIN: driver.s test1d--self_modifying_code.s
|
||||
rm -f $@
|
||||
cat $^ > temp.s
|
||||
atrcopy . assemble -f -d fatfont128.dat@0x6000 -s temp.s -r 0x5000 -o $@
|
||||
atrcopy asmsgen_font_compare.dsk add $@ -f
|
||||
|
||||
TEST2.BIN: driver.s test2--compiled_font.s
|
||||
rm -f $@
|
||||
cat $^ > temp.s
|
||||
atrcopy . assemble -f -s temp.s -r 0x5000 -o $@
|
||||
atrcopy asmsgen_font_compare.dsk add $@ -f
|
||||
|
||||
test3--transposed_font.s:
|
||||
python ../asmgen.py -a $(ASSEMBLER) -f fatfont128.dat > test3--transposed_font.s
|
||||
|
||||
TEST3.BIN: driver.s test3--transposed_font.s
|
||||
rm -f $@
|
||||
cat $^ > temp.s
|
||||
atrcopy . assemble -f -s temp.s -r 0x5000 -o $@
|
||||
atrcopy asmsgen_font_compare.dsk add $@ -f
|
||||
|
||||
clean:
|
||||
rm -f asmsgen_font_compare.dsk $(TARGETS) temp.s temp.s.lst temp.s.err
|
|
@ -0,0 +1,107 @@
|
|||
*= $0006
|
||||
|
||||
FIRST_CHAR_OF_SCREEN .ds 1
|
||||
FIRST_CHAR_OF_LINE .ds 1
|
||||
CURRENT_CHAR .ds 1
|
||||
FRAME_COUNT .ds 1
|
||||
|
||||
*= $00eb
|
||||
hgr_ptr .ds 2
|
||||
font_ptr .ds 2
|
||||
|
||||
*= $00fa
|
||||
scratch_0 .ds 1
|
||||
scratch_x .ds 1
|
||||
scratch_y .ds 1
|
||||
|
||||
|
||||
*= $5000
|
||||
|
||||
start_set
|
||||
jsr set_hires
|
||||
jsr clrscr
|
||||
jsr driver
|
||||
jsr set_text
|
||||
rts
|
||||
brk
|
||||
|
||||
driver
|
||||
lda #$00
|
||||
sta FIRST_CHAR_OF_SCREEN
|
||||
lda #64
|
||||
sta FRAME_COUNT
|
||||
page_loop
|
||||
jsr page
|
||||
dec FRAME_COUNT
|
||||
bne page_loop
|
||||
rts
|
||||
|
||||
; os memory map
|
||||
KEYBOARD = $c000
|
||||
KBDSTROBE = $c010
|
||||
CLRTEXT = $c050
|
||||
SETTEXT = $c051
|
||||
CLRMIXED = $c052
|
||||
SETMIXED = $c053
|
||||
TXTPAGE1 = $c054
|
||||
TXTPAGE2 = $c055
|
||||
CLRHIRES = $c056
|
||||
SETHIRES = $c057
|
||||
|
||||
|
||||
set_hires bit CLRTEXT ; start with HGR page 1, full screen
|
||||
bit CLRMIXED
|
||||
bit TXTPAGE1
|
||||
bit SETHIRES
|
||||
rts
|
||||
|
||||
set_text bit SETTEXT
|
||||
bit CLRMIXED
|
||||
bit TXTPAGE1
|
||||
bit CLRHIRES
|
||||
rts
|
||||
|
||||
; clear hires page 1 only
|
||||
clrscr lda #$20
|
||||
sta clrscr_smc+2
|
||||
lda #0
|
||||
ldy #0
|
||||
clrscr_smc sta $ff00,y
|
||||
iny
|
||||
bne clrscr_smc
|
||||
inc clrscr_smc+2
|
||||
ldx clrscr_smc+2
|
||||
cpx #$40
|
||||
bcc clrscr_smc
|
||||
rts
|
||||
|
||||
*= $5074
|
||||
|
||||
page
|
||||
inc FIRST_CHAR_OF_SCREEN
|
||||
lda FIRST_CHAR_OF_SCREEN
|
||||
sta FIRST_CHAR_OF_LINE
|
||||
|
||||
ldy #$00
|
||||
line_loop
|
||||
ldx #$00
|
||||
lda FIRST_CHAR_OF_LINE
|
||||
sta CURRENT_CHAR
|
||||
char_loop
|
||||
lda CURRENT_CHAR
|
||||
jsr font_test
|
||||
inc CURRENT_CHAR
|
||||
inx
|
||||
cpx #40
|
||||
bcc char_loop
|
||||
|
||||
inc FIRST_CHAR_OF_LINE
|
||||
iny
|
||||
cpy #24
|
||||
bcc line_loop
|
||||
|
||||
rts
|
||||
|
||||
|
||||
|
||||
font_test
|
Binary file not shown.
|
@ -0,0 +1,63 @@
|
|||
|
||||
FATFONT = $6000
|
||||
|
||||
; A = character, X = column, Y = row; A is clobbered, X&Y are not
|
||||
|
||||
stx SCRATCH_X
|
||||
sty SCRATCH_Y
|
||||
|
||||
; find address of glyph
|
||||
sta font_ptr
|
||||
lda #0
|
||||
sta font_ptr + 1
|
||||
asl font_ptr ; multiply by 8
|
||||
rol font_ptr + 1
|
||||
asl font_ptr
|
||||
rol font_ptr + 1
|
||||
asl font_ptr
|
||||
rol font_ptr + 1
|
||||
|
||||
clc ; add font table address to get pointer inside font table
|
||||
lda #<fatfont ; would be slightly faster if page aligned because you
|
||||
adc font_ptr ; could just store the low byte
|
||||
sta font_ptr
|
||||
lda #>fatfont
|
||||
adc font_ptr+1
|
||||
sta font_ptr+1
|
||||
|
||||
lda hgrtextrow_l,y ; load address of first line of hgr text
|
||||
sta hgr_ptr
|
||||
lda hgrtextrow_h,y
|
||||
sta hgr_ptr+1
|
||||
|
||||
ldx #0
|
||||
slowfont_loop
|
||||
txa
|
||||
tay
|
||||
lda (font_ptr),y
|
||||
ldy SCRATCH_X ; col goes in y
|
||||
sta (hgr_ptr),y
|
||||
clc
|
||||
lda #4
|
||||
adc hgr_ptr+1
|
||||
sta hgr_ptr+1
|
||||
inx
|
||||
cpx #8
|
||||
bcc slowfont_loop
|
||||
|
||||
done
|
||||
ldx SCRATCH_X
|
||||
ldy SCRATCH_Y
|
||||
rts
|
||||
|
||||
|
||||
|
||||
|
||||
hgrtextrow_l
|
||||
.byte $00,$80,$00,$80,$00,$80,$00,$80
|
||||
.byte $28,$A8,$28,$A8,$28,$A8,$28,$A8
|
||||
.byte $50,$D0,$50,$D0,$50,$D0,$50,$D0
|
||||
hgrtextrow_h
|
||||
.byte $20,$20,$21,$21,$22,$22,$23,$23
|
||||
.byte $20,$20,$21,$21,$22,$22,$23,$23
|
||||
.byte $20,$20,$21,$21,$22,$22,$23,$23
|
|
@ -0,0 +1,66 @@
|
|||
|
||||
FATFONT = $6000
|
||||
|
||||
; A = character, X = column, Y = row; A is clobbered, X&Y are not
|
||||
|
||||
stx SCRATCH_X
|
||||
sty SCRATCH_Y
|
||||
|
||||
; find address of glyph
|
||||
sta font_ptr
|
||||
lda #0
|
||||
sta font_ptr + 1
|
||||
asl font_ptr ; multiply by 8
|
||||
rol font_ptr + 1
|
||||
asl font_ptr
|
||||
rol font_ptr + 1
|
||||
asl font_ptr
|
||||
rol font_ptr + 1
|
||||
|
||||
clc ; add font table address to get pointer inside font table
|
||||
lda #<fatfont ; would be slightly faster if page aligned because you
|
||||
adc font_ptr ; could just store the low byte
|
||||
sta font_ptr
|
||||
lda #>fatfont
|
||||
adc font_ptr+1
|
||||
sta font_ptr+1
|
||||
|
||||
lda hgrtextrow_l,y ; load address of first line of hgr text
|
||||
sta hgr_ptr
|
||||
lda hgrtextrow_h,y
|
||||
sta hgr_ptr+1
|
||||
|
||||
ldx #0
|
||||
slowfont_loop
|
||||
ldy #0
|
||||
lda (font_ptr),y
|
||||
ldy SCRATCH_X ; col goes in y
|
||||
sta (hgr_ptr),y
|
||||
clc
|
||||
lda #4
|
||||
adc hgr_ptr+1
|
||||
sta hgr_ptr+1
|
||||
clc
|
||||
inc font_ptr
|
||||
bcc ?1
|
||||
inc font_ptr+1
|
||||
?1 inx
|
||||
cpx #8
|
||||
bcc slowfont_loop
|
||||
|
||||
done
|
||||
ldx SCRATCH_X
|
||||
ldy SCRATCH_Y
|
||||
rts
|
||||
|
||||
|
||||
|
||||
|
||||
hgrtextrow_l
|
||||
.byte $00,$80,$00,$80,$00,$80,$00,$80
|
||||
.byte $28,$A8,$28,$A8,$28,$A8,$28,$A8
|
||||
.byte $50,$D0,$50,$D0,$50,$D0,$50,$D0
|
||||
hgrtextrow_h
|
||||
.byte $20,$20,$21,$21,$22,$22,$23,$23
|
||||
.byte $20,$20,$21,$21,$22,$22,$23,$23
|
||||
.byte $20,$20,$21,$21,$22,$22,$23,$23
|
|
@ -0,0 +1,66 @@
|
|||
|
||||
FATFONT = $6000
|
||||
|
||||
; A = character, X = column, Y = row; A is clobbered, X&Y are not
|
||||
|
||||
stx SCRATCH_X
|
||||
sty SCRATCH_Y
|
||||
|
||||
; find address of glyph
|
||||
sta font_ptr
|
||||
lda #0
|
||||
sta font_ptr + 1
|
||||
asl font_ptr ; multiply by 8
|
||||
rol font_ptr + 1
|
||||
asl font_ptr
|
||||
rol font_ptr + 1
|
||||
asl font_ptr
|
||||
rol font_ptr + 1
|
||||
|
||||
clc ; add font table address to get pointer inside font table
|
||||
lda #<fatfont ; would be slightly faster if page aligned because you
|
||||
adc font_ptr ; could just store the low byte
|
||||
sta font_ptr
|
||||
lda #>fatfont
|
||||
adc font_ptr+1
|
||||
sta font_ptr+1
|
||||
|
||||
clc
|
||||
lda hgrtextrow_l,y ; load address of first line of hgr text
|
||||
adc SCRATCH_X
|
||||
sta hgr_ptr
|
||||
lda hgrtextrow_h,y
|
||||
adc #0
|
||||
sta hgr_ptr+1
|
||||
|
||||
ldy #0
|
||||
slowfont_loop
|
||||
lda (font_ptr),y
|
||||
sta (hgr_ptr),y
|
||||
clc
|
||||
lda hgr_ptr
|
||||
adc #$ff
|
||||
sta hgr_ptr
|
||||
lda #3
|
||||
adc hgr_ptr+1
|
||||
sta hgr_ptr+1
|
||||
iny
|
||||
cpy #8
|
||||
bcc slowfont_loop
|
||||
|
||||
done
|
||||
ldx SCRATCH_X
|
||||
ldy SCRATCH_Y
|
||||
rts
|
||||
|
||||
|
||||
|
||||
|
||||
hgrtextrow_l
|
||||
.byte $00,$80,$00,$80,$00,$80,$00,$80
|
||||
.byte $28,$A8,$28,$A8,$28,$A8,$28,$A8
|
||||
.byte $50,$D0,$50,$D0,$50,$D0,$50,$D0
|
||||
hgrtextrow_h
|
||||
.byte $20,$20,$21,$21,$22,$22,$23,$23
|
||||
.byte $20,$20,$21,$21,$22,$22,$23,$23
|
||||
.byte $20,$20,$21,$21,$22,$22,$23,$23
|
|
@ -0,0 +1,61 @@
|
|||
|
||||
FATFONT = $6000
|
||||
|
||||
; A = character, X = column, Y = row; A is clobbered, X&Y are not
|
||||
|
||||
stx SCRATCH_X
|
||||
sty SCRATCH_Y
|
||||
|
||||
; find address of glyph
|
||||
sta font_ptr
|
||||
lda #0
|
||||
sta font_ptr + 1
|
||||
asl font_ptr ; multiply by 8
|
||||
rol font_ptr + 1
|
||||
asl font_ptr
|
||||
rol font_ptr + 1
|
||||
asl font_ptr
|
||||
rol font_ptr + 1
|
||||
|
||||
clc ; add font table address to get pointer inside font table
|
||||
lda #<fatfont ; would be slightly faster if page aligned because you
|
||||
adc font_ptr ; could just store the low byte
|
||||
sta slowfont_loop_smc+1
|
||||
lda #>fatfont
|
||||
adc font_ptr+1
|
||||
sta slowfont_loop_smc+2
|
||||
|
||||
lda hgrtextrow_l,y ; load address of first line of hgr text
|
||||
sta hgr_ptr
|
||||
lda hgrtextrow_h,y
|
||||
sta hgr_ptr+1
|
||||
|
||||
ldx #0
|
||||
ldy SCRATCH_X ; col goes in y
|
||||
slowfont_loop
|
||||
slowfont_loop_smc
|
||||
lda $ffff,x
|
||||
sta (hgr_ptr),y
|
||||
clc
|
||||
lda #4
|
||||
adc hgr_ptr+1
|
||||
sta hgr_ptr+1
|
||||
inx
|
||||
cpx #8
|
||||
bcc slowfont_loop
|
||||
|
||||
ldx SCRATCH_X
|
||||
ldy SCRATCH_Y
|
||||
rts
|
||||
|
||||
|
||||
|
||||
|
||||
hgrtextrow_l
|
||||
.byte $00,$80,$00,$80,$00,$80,$00,$80
|
||||
.byte $28,$A8,$28,$A8,$28,$A8,$28,$A8
|
||||
.byte $50,$D0,$50,$D0,$50,$D0,$50,$D0
|
||||
hgrtextrow_h
|
||||
.byte $20,$20,$21,$21,$22,$22,$23,$23
|
||||
.byte $20,$20,$21,$21,$22,$22,$23,$23
|
||||
.byte $20,$20,$21,$21,$22,$22,$23,$23
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,605 @@
|
|||
; AUTOGENERATED FILE; DO NOT EDIT!
|
||||
;
|
||||
; This file was generated by asmgen.py, a 6502 code generator sponsored by
|
||||
; the Player/Missile Podcast. (The sprite compiler is based on HiSprite by
|
||||
; Quinn Dunki).
|
||||
;
|
||||
; The code produced by asmgen is licensed under the Creative Commons
|
||||
; Attribution 4.0 International (CC BY 4.0), so you are free to use the code in
|
||||
; this file for any purpose. (The code generator itself is licensed under the
|
||||
; GPLv3.)
|
||||
|
||||
FASTFONT_H1 ; A = character, X = column, Y = row; A is clobbered, X&Y are not
|
||||
pha
|
||||
lda FASTFONT_H1_JMP_HI,y
|
||||
sta FASTFONT_H1_JMP+2
|
||||
lda FASTFONT_H1_JMP_LO,y
|
||||
sta FASTFONT_H1_JMP+1
|
||||
sty scratch_0
|
||||
pla
|
||||
tay
|
||||
FASTFONT_H1_JMP
|
||||
jmp $ffff
|
||||
|
||||
|
||||
FASTFONT_H1_JMP_HI
|
||||
.byte >FASTFONT_H1_0
|
||||
.byte >FASTFONT_H1_1
|
||||
.byte >FASTFONT_H1_2
|
||||
.byte >FASTFONT_H1_3
|
||||
.byte >FASTFONT_H1_4
|
||||
.byte >FASTFONT_H1_5
|
||||
.byte >FASTFONT_H1_6
|
||||
.byte >FASTFONT_H1_7
|
||||
.byte >FASTFONT_H1_8
|
||||
.byte >FASTFONT_H1_9
|
||||
.byte >FASTFONT_H1_10
|
||||
.byte >FASTFONT_H1_11
|
||||
.byte >FASTFONT_H1_12
|
||||
.byte >FASTFONT_H1_13
|
||||
.byte >FASTFONT_H1_14
|
||||
.byte >FASTFONT_H1_15
|
||||
.byte >FASTFONT_H1_16
|
||||
.byte >FASTFONT_H1_17
|
||||
.byte >FASTFONT_H1_18
|
||||
.byte >FASTFONT_H1_19
|
||||
.byte >FASTFONT_H1_20
|
||||
.byte >FASTFONT_H1_21
|
||||
.byte >FASTFONT_H1_22
|
||||
.byte >FASTFONT_H1_23
|
||||
FASTFONT_H1_JMP_LO
|
||||
.byte <FASTFONT_H1_0
|
||||
.byte <FASTFONT_H1_1
|
||||
.byte <FASTFONT_H1_2
|
||||
.byte <FASTFONT_H1_3
|
||||
.byte <FASTFONT_H1_4
|
||||
.byte <FASTFONT_H1_5
|
||||
.byte <FASTFONT_H1_6
|
||||
.byte <FASTFONT_H1_7
|
||||
.byte <FASTFONT_H1_8
|
||||
.byte <FASTFONT_H1_9
|
||||
.byte <FASTFONT_H1_10
|
||||
.byte <FASTFONT_H1_11
|
||||
.byte <FASTFONT_H1_12
|
||||
.byte <FASTFONT_H1_13
|
||||
.byte <FASTFONT_H1_14
|
||||
.byte <FASTFONT_H1_15
|
||||
.byte <FASTFONT_H1_16
|
||||
.byte <FASTFONT_H1_17
|
||||
.byte <FASTFONT_H1_18
|
||||
.byte <FASTFONT_H1_19
|
||||
.byte <FASTFONT_H1_20
|
||||
.byte <FASTFONT_H1_21
|
||||
.byte <FASTFONT_H1_22
|
||||
.byte <FASTFONT_H1_23
|
||||
|
||||
FASTFONT_H1_0
|
||||
lda TransposedFontRow0,y
|
||||
sta $2000,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $2400,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2800,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2c00,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $3000,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $3400,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3800,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3c00,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_1
|
||||
lda TransposedFontRow0,y
|
||||
sta $2080,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $2480,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2880,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2c80,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $3080,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $3480,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3880,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3c80,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_2
|
||||
lda TransposedFontRow0,y
|
||||
sta $2100,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $2500,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2900,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2d00,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $3100,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $3500,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3900,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3d00,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_3
|
||||
lda TransposedFontRow0,y
|
||||
sta $2180,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $2580,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2980,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2d80,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $3180,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $3580,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3980,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3d80,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_4
|
||||
lda TransposedFontRow0,y
|
||||
sta $2200,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $2600,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2a00,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2e00,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $3200,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $3600,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3a00,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3e00,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_5
|
||||
lda TransposedFontRow0,y
|
||||
sta $2280,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $2680,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2a80,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2e80,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $3280,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $3680,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3a80,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3e80,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_6
|
||||
lda TransposedFontRow0,y
|
||||
sta $2300,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $2700,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2b00,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2f00,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $3300,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $3700,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3b00,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3f00,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_7
|
||||
lda TransposedFontRow0,y
|
||||
sta $2380,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $2780,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2b80,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2f80,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $3380,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $3780,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3b80,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3f80,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_8
|
||||
lda TransposedFontRow0,y
|
||||
sta $2028,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $2428,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2828,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2c28,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $3028,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $3428,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3828,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3c28,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_9
|
||||
lda TransposedFontRow0,y
|
||||
sta $20a8,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $24a8,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $28a8,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2ca8,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $30a8,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $34a8,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $38a8,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3ca8,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_10
|
||||
lda TransposedFontRow0,y
|
||||
sta $2128,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $2528,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2928,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2d28,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $3128,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $3528,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3928,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3d28,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_11
|
||||
lda TransposedFontRow0,y
|
||||
sta $21a8,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $25a8,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $29a8,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2da8,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $31a8,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $35a8,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $39a8,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3da8,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_12
|
||||
lda TransposedFontRow0,y
|
||||
sta $2228,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $2628,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2a28,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2e28,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $3228,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $3628,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3a28,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3e28,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_13
|
||||
lda TransposedFontRow0,y
|
||||
sta $22a8,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $26a8,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2aa8,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2ea8,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $32a8,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $36a8,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3aa8,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3ea8,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_14
|
||||
lda TransposedFontRow0,y
|
||||
sta $2328,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $2728,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2b28,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2f28,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $3328,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $3728,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3b28,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3f28,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_15
|
||||
lda TransposedFontRow0,y
|
||||
sta $23a8,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $27a8,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2ba8,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2fa8,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $33a8,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $37a8,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3ba8,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3fa8,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_16
|
||||
lda TransposedFontRow0,y
|
||||
sta $2050,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $2450,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2850,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2c50,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $3050,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $3450,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3850,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3c50,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_17
|
||||
lda TransposedFontRow0,y
|
||||
sta $20d0,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $24d0,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $28d0,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2cd0,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $30d0,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $34d0,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $38d0,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3cd0,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_18
|
||||
lda TransposedFontRow0,y
|
||||
sta $2150,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $2550,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2950,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2d50,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $3150,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $3550,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3950,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3d50,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_19
|
||||
lda TransposedFontRow0,y
|
||||
sta $21d0,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $25d0,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $29d0,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2dd0,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $31d0,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $35d0,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $39d0,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3dd0,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_20
|
||||
lda TransposedFontRow0,y
|
||||
sta $2250,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $2650,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2a50,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2e50,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $3250,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $3650,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3a50,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3e50,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_21
|
||||
lda TransposedFontRow0,y
|
||||
sta $22d0,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $26d0,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2ad0,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2ed0,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $32d0,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $36d0,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3ad0,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3ed0,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_22
|
||||
lda TransposedFontRow0,y
|
||||
sta $2350,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $2750,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2b50,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2f50,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $3350,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $3750,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3b50,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3f50,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
FASTFONT_H1_23
|
||||
lda TransposedFontRow0,y
|
||||
sta $23d0,x
|
||||
lda TransposedFontRow1,y
|
||||
sta $27d0,x
|
||||
lda TransposedFontRow2,y
|
||||
sta $2bd0,x
|
||||
lda TransposedFontRow3,y
|
||||
sta $2fd0,x
|
||||
lda TransposedFontRow4,y
|
||||
sta $33d0,x
|
||||
lda TransposedFontRow5,y
|
||||
sta $37d0,x
|
||||
lda TransposedFontRow6,y
|
||||
sta $3bd0,x
|
||||
lda TransposedFontRow7,y
|
||||
sta $3fd0,x
|
||||
ldy scratch_0
|
||||
rts
|
||||
|
||||
TransposedFontRow0
|
||||
.byte $00, $00, $00, $14, $00, $00, $14, $14, $00, $00, $14, $14, $00, $00, $14, $00
|
||||
.byte $00, $00, $00, $1c, $00, $00, $1c, $1c, $00, $00, $1c, $1c, $00, $00, $1c, $00
|
||||
.byte $80, $87, $b6, $aa, $d5, $b7, $86, $8c, $b8, $87, $98, $8c, $80, $80, $80, $e0
|
||||
.byte $9e, $8c, $9e, $9e, $b8, $bf, $9e, $bf, $9e, $9e, $80, $80, $f0, $80, $87, $9e
|
||||
.byte $9e, $9e, $9f, $9e, $9f, $bf, $bf, $9e, $b3, $bf, $b0, $b3, $83, $b3, $b3, $9e
|
||||
.byte $9f, $9e, $9f, $9e, $bf, $b3, $b3, $b3, $33, $b3, $bf, $bc, $83, $8f, $8c, $80
|
||||
.byte $86, $80, $83, $80, $b0, $80, $9c, $80, $83, $80, $b0, $83, $8e, $80, $80, $80
|
||||
.byte $80, $80, $80, $80, $86, $80, $80, $80, $80, $80, $80, $9c, $8c, $8e, $86, $00
|
||||
TransposedFontRow1
|
||||
.byte $00, $00, $00, $14, $00, $00, $14, $14, $00, $00, $14, $14, $00, $00, $14, $00
|
||||
.byte $00, $00, $00, $1c, $00, $00, $1c, $1c, $00, $00, $1c, $1c, $00, $00, $1c, $00
|
||||
.byte $80, $87, $b6, $aa, $d5, $b7, $8f, $8c, $9c, $8e, $8e, $8c, $80, $80, $80, $f0
|
||||
.byte $bf, $8e, $bf, $bf, $bc, $bf, $bf, $bf, $bf, $bf, $9c, $87, $b8, $80, $8e, $bf
|
||||
.byte $b3, $bf, $bf, $bf, $bf, $bf, $bf, $bf, $b3, $bf, $b0, $bb, $83, $bf, $b3, $bf
|
||||
.byte $bf, $bf, $bf, $bf, $bf, $b3, $b3, $b3, $9b, $b3, $bf, $bc, $87, $8f, $9e, $80
|
||||
.byte $8c, $80, $83, $80, $b0, $80, $b6, $80, $83, $8c, $80, $83, $8c, $80, $80, $80
|
||||
.byte $80, $80, $80, $80, $86, $80, $80, $80, $80, $80, $80, $9e, $8c, $9e, $bf, $00
|
||||
TransposedFontRow2
|
||||
.byte $00, $00, $00, $14, $00, $00, $14, $14, $00, $00, $14, $14, $00, $00, $14, $00
|
||||
.byte $00, $00, $00, $1c, $00, $00, $1c, $1c, $00, $00, $1c, $1c, $00, $00, $1c, $00
|
||||
.byte $80, $87, $a4, $aa, $d5, $98, $86, $88, $8e, $9c, $bf, $bf, $80, $be, $80, $b8
|
||||
.byte $b3, $8f, $b3, $b0, $b6, $83, $83, $b0, $b3, $b3, $9c, $87, $9c, $be, $9c, $b3
|
||||
.byte $b3, $b3, $b3, $b3, $b3, $83, $83, $83, $b3, $8c, $b0, $9f, $83, $b3, $b7, $b3
|
||||
.byte $b3, $a3, $b3, $87, $8c, $b3, $b3, $b3, $1e, $b3, $98, $8c, $8e, $8c, $bf, $80
|
||||
.byte $98, $9e, $9f, $9e, $be, $9e, $86, $9e, $9f, $80, $b0, $b3, $8c, $b3, $9f, $9e
|
||||
.byte $9f, $be, $9f, $9e, $9f, $b3, $b3, $b3, $b3, $b3, $bf, $86, $8c, $98, $98, $00
|
||||
TransposedFontRow3
|
||||
.byte $00, $00, $00, $14, $00, $54, $54, $54, $00, $15, $15, $15, $55, $55, $55, $2a
|
||||
.byte $00, $00, $00, $1c, $00, $7c, $7c, $7c, $00, $1f, $1f, $1f, $7f, $7f, $7f, $00
|
||||
.byte $80, $87, $b6, $aa, $d5, $8c, $8f, $8c, $8e, $9c, $9f, $bf, $80, $be, $80, $9c
|
||||
.byte $b3, $8c, $38, $be, $b3, $9f, $9f, $98, $9e, $be, $80, $80, $8e, $80, $b8, $98
|
||||
.byte $bb, $bf, $9f, $83, $b3, $9f, $9f, $bb, $bf, $8c, $b0, $8f, $83, $b3, $bf, $b3
|
||||
.byte $bf, $a3, $bf, $9e, $8c, $b3, $b3, $b3, $8e, $9e, $8c, $8c, $9c, $8c, $80, $80
|
||||
.byte $80, $b0, $b3, $b3, $b3, $b3, $9f, $b3, $b3, $8c, $b0, $9b, $8c, $bf, $b3, $b3
|
||||
.byte $b3, $b3, $b3, $83, $86, $b3, $b3, $b3, $9e, $b3, $98, $87, $8c, $b8, $80, $00
|
||||
TransposedFontRow4
|
||||
.byte $00, $00, $00, $14, $00, $54, $54, $54, $00, $15, $15, $15, $55, $55, $55, $2a
|
||||
.byte $00, $00, $00, $1c, $00, $7c, $7c, $7c, $00, $1f, $1f, $1f, $7f, $7f, $7f, $00
|
||||
.byte $80, $80, $80, $aa, $d5, $86, $bb, $80, $8e, $9c, $9f, $8c, $80, $80, $80, $8e
|
||||
.byte $b3, $8c, $8e, $b0, $bf, $b0, $b3, $8c, $b3, $b0, $80, $80, $9c, $be, $9c, $8c
|
||||
.byte $bb, $bf, $b3, $b3, $b3, $83, $9f, $b3, $bf, $8c, $b3, $9f, $83, $b3, $bb, $b3
|
||||
.byte $9f, $ab, $9f, $b8, $8c, $b3, $b3, $b3, $1e, $8c, $86, $8c, $b8, $8c, $80, $80
|
||||
.byte $80, $be, $b3, $83, $b3, $9f, $86, $b3, $b3, $8c, $b0, $8f, $8c, $b3, $b3, $b3
|
||||
.byte $b3, $b3, $83, $9e, $86, $b3, $b3, $b3, $8c, $b3, $8c, $86, $8c, $98, $80, $00
|
||||
TransposedFontRow5
|
||||
.byte $00, $00, $00, $14, $00, $14, $00, $14, $00, $14, $00, $14, $00, $14, $00, $00
|
||||
.byte $00, $00, $00, $1c, $00, $1c, $00, $1c, $00, $1c, $00, $1c, $00, $1c, $00, $00
|
||||
.byte $80, $87, $80, $aa, $d5, $bb, $9b, $80, $9c, $8e, $bf, $8c, $87, $80, $87, $87
|
||||
.byte $bf, $bf, $bf, $bf, $b0, $bf, $bf, $8c, $bf, $bf, $9c, $87, $b8, $80, $8e, $80
|
||||
.byte $83, $b3, $bf, $bf, $bf, $bf, $83, $bf, $b3, $bf, $bf, $bb, $bf, $b3, $b3, $bf
|
||||
.byte $83, $93, $bb, $bf, $8c, $bf, $9e, $bf, $9b, $8c, $bf, $bc, $f0, $8f, $80, $ff
|
||||
.byte $80, $b3, $b3, $b3, $b3, $83, $86, $be, $b3, $8c, $b3, $9b, $8c, $b3, $b3, $b3
|
||||
.byte $9f, $be, $83, $b0, $b6, $b3, $9e, $bf, $9e, $be, $86, $9e, $8c, $9e, $80, $00
|
||||
TransposedFontRow6
|
||||
.byte $00, $00, $00, $14, $00, $14, $00, $14, $00, $14, $00, $14, $00, $14, $00, $00
|
||||
.byte $00, $00, $00, $1c, $00, $1c, $00, $1c, $00, $1c, $00, $1c, $00, $1c, $00, $00
|
||||
.byte $80, $87, $80, $aa, $d5, $bb, $ae, $80, $b8, $87, $9e, $80, $86, $80, $87, $83
|
||||
.byte $9e, $bf, $bf, $9e, $b0, $9e, $9e, $8c, $9e, $9e, $9c, $86, $f0, $80, $87, $8c
|
||||
.byte $be, $b3, $9f, $9e, $9f, $bf, $83, $9e, $b3, $bf, $9e, $b3, $bf, $b3, $b3, $9e
|
||||
.byte $83, $ae, $b3, $9e, $8c, $9e, $8c, $b3, $33, $8c, $bf, $bc, $e0, $8f, $80, $ff
|
||||
.byte $80, $be, $9f, $9e, $be, $9e, $86, $b0, $b3, $8c, $b3, $b3, $9e, $b3, $b3, $9e
|
||||
.byte $83, $b0, $83, $9e, $9c, $be, $8c, $b3, $b3, $b0, $bf, $9c, $8c, $8e, $80, $00
|
||||
TransposedFontRow7
|
||||
.byte $00, $00, $00, $14, $00, $14, $00, $14, $00, $14, $00, $14, $00, $14, $00, $00
|
||||
.byte $00, $00, $00, $1c, $00, $1c, $00, $1c, $00, $1c, $00, $1c, $00, $1c, $00, $00
|
||||
.byte $80, $80, $80, $aa, $d5, $80, $80, $80, $80, $80, $80, $80, $83, $80, $80, $80
|
||||
.byte $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $83, $80, $80, $80, $80
|
||||
.byte $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80
|
||||
.byte $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80, $80
|
||||
.byte $80, $80, $80, $80, $80, $80, $80, $9e, $80, $80, $9e, $80, $80, $80, $80, $80
|
||||
.byte $83, $b0, $80, $80, $80, $80, $80, $80, $80, $9e, $80, $80, $8c, $80, $80, $00
|
||||
|
Loading…
Reference in New Issue