mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-06-20 17:29:28 +00:00
hgr_font: hook up font generation tools
This commit is contained in:
parent
56c40d3516
commit
f4fbed727d
|
@ -8,12 +8,13 @@ EMPTY_DISK = ../../../empty_disk
|
||||||
|
|
||||||
all: hgr_font4.dsk
|
all: hgr_font4.dsk
|
||||||
|
|
||||||
hgr_font4.dsk: HELLO BIOS_TEST FONT_4AM_TEST FONT_VMW_10_TEST
|
hgr_font4.dsk: HELLO BIOS_TEST FONT_4AM_TEST FONT_VMW_10_TEST FONT_VMW_8_TEST
|
||||||
cp $(EMPTY_DISK)/empty.dsk hgr_font4.dsk
|
cp $(EMPTY_DISK)/empty.dsk hgr_font4.dsk
|
||||||
$(DOS33) -y hgr_font4.dsk SAVE A HELLO
|
$(DOS33) -y hgr_font4.dsk SAVE A HELLO
|
||||||
$(DOS33) -y hgr_font4.dsk BSAVE -a 0x6000 BIOS_TEST
|
$(DOS33) -y hgr_font4.dsk BSAVE -a 0x6000 BIOS_TEST
|
||||||
$(DOS33) -y hgr_font4.dsk BSAVE -a 0x6000 FONT_4AM_TEST
|
$(DOS33) -y hgr_font4.dsk BSAVE -a 0x6000 FONT_4AM_TEST
|
||||||
$(DOS33) -y hgr_font4.dsk BSAVE -a 0x6000 FONT_VMW_10_TEST
|
$(DOS33) -y hgr_font4.dsk BSAVE -a 0x6000 FONT_VMW_10_TEST
|
||||||
|
$(DOS33) -y hgr_font4.dsk BSAVE -a 0x6000 FONT_VMW_8_TEST
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
|
@ -54,7 +55,8 @@ FONT_VMW_8_TEST: font_vmw_8_test.o
|
||||||
ld65 -o FONT_VMW_8_TEST font_vmw_8_test.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
|
ld65 -o FONT_VMW_8_TEST font_vmw_8_test.o -C $(LINKER_SCRIPTS)/apple2_6000.inc
|
||||||
|
|
||||||
font_vmw_8_test.o: font_vmw_8_test.s \
|
font_vmw_8_test.o: font_vmw_8_test.s \
|
||||||
font_4am_condensed.s font_4am_condensed_data.s
|
font_vmw_1x8.s \
|
||||||
|
fonts/a2_lowercase_font.inc
|
||||||
ca65 -o font_vmw_8_test.o font_vmw_8_test.s -l font_vmw_8_test.lst
|
ca65 -o font_vmw_8_test.o font_vmw_8_test.s -l font_vmw_8_test.lst
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,11 +1,9 @@
|
||||||
; Fake BIOS screen
|
; VMW 5x7 (well, 5x8) font test
|
||||||
; for another project
|
|
||||||
|
|
||||||
.include "zp.inc"
|
.include "zp.inc"
|
||||||
.include "hardware.inc"
|
.include "hardware.inc"
|
||||||
|
|
||||||
|
vmw_8_test:
|
||||||
bios_test:
|
|
||||||
;===================
|
;===================
|
||||||
; set graphics mode
|
; set graphics mode
|
||||||
;===================
|
;===================
|
||||||
|
@ -16,20 +14,10 @@ bios_test:
|
||||||
bit SET_GR
|
bit SET_GR
|
||||||
bit PAGE1
|
bit PAGE1
|
||||||
|
|
||||||
|
jsr HGR
|
||||||
|
|
||||||
jsr build_tables
|
jsr build_tables
|
||||||
|
|
||||||
;===================
|
|
||||||
; Load graphics
|
|
||||||
;===================
|
|
||||||
|
|
||||||
lda #<graphics_data
|
|
||||||
sta ZX0_src
|
|
||||||
lda #>graphics_data
|
|
||||||
sta ZX0_src+1
|
|
||||||
|
|
||||||
lda #$20 ; temporarily load to $2000
|
|
||||||
|
|
||||||
jsr full_decomp
|
|
||||||
|
|
||||||
; test 1
|
; test 1
|
||||||
|
|
||||||
|
@ -69,27 +57,20 @@ end:
|
||||||
|
|
||||||
test1:
|
test1:
|
||||||
; 0123456789012345678901234567890123456789
|
; 0123456789012345678901234567890123456789
|
||||||
.byte 0,100,"PACK MY BOX WITH FIVE DOZEN LIQUOR JUGS!",0
|
.byte 0,10,"PACK MY BOX WITH FIVE DOZEN LIQUOR JUGS!",0
|
||||||
test2:
|
test2:
|
||||||
.byte 0,150,"pack my box with five dozen liquor jugs?",0
|
.byte 0,30,"pack my box with five dozen liquor jugs?",0
|
||||||
test3:
|
test3:
|
||||||
.byte 9,80,"This is a HGR font test.",0
|
.byte 9,50,"This is a HGR font test.",0
|
||||||
test4:
|
test4:
|
||||||
.byte 0,170,"0123456789)(*&^%$#@!`~<>,./';:[]{}\|_+=",0
|
.byte 0,100,"0123456789)(*&^%$#@!`~<>,./';:[]{}\|_+=",0
|
||||||
test5:
|
test5:
|
||||||
.byte 0,180,"@/\/\/\/\______ |",0
|
.byte 0,120,"@/\/\/\/\______ |",0
|
||||||
|
|
||||||
.include "font_vmw_condensed.s"
|
.include "font_vmw_1x8.s"
|
||||||
.include "font_vmw_condensed_data.s"
|
.include "fonts/a2_lowercase_font.inc"
|
||||||
|
|
||||||
.include "zx02_optim.s"
|
|
||||||
|
|
||||||
graphics_data:
|
|
||||||
.incbin "graphics/a2_energy.hgr.zx02"
|
|
||||||
|
|
||||||
hposn_low = $1713 ; 0xC0 bytes (lifetime, used by DrawLargeCharacter)
|
hposn_low = $1713 ; 0xC0 bytes (lifetime, used by DrawLargeCharacter)
|
||||||
hposn_high = $1800 ; 0xC0 bytes (lifetime, used by DrawLargeCharacter)
|
hposn_high = $1800 ; 0xC0 bytes (lifetime, used by DrawLargeCharacter)
|
||||||
|
|
||||||
.include "hgr_table.s"
|
.include "hgr_table.s"
|
||||||
|
|
||||||
|
|
||||||
|
|
7
graphics/hgr/hgr_font_4am/fonts/Makefile
Normal file
7
graphics/hgr/hgr_font_4am/fonts/Makefile
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
PNG2FONT = ../../../../utils/hgr-utils/png2font
|
||||||
|
|
||||||
|
|
||||||
|
all: a2_lowercase_font.inc
|
||||||
|
|
||||||
|
a2_lowercase_font.inc: a2_lowercase.png
|
||||||
|
$(PNG2FONT) -i a2_lowercase.png > a2_lowercase_font.inc
|
Binary file not shown.
Before Width: | Height: | Size: 803 B After Width: | Height: | Size: 847 B |
Loading…
Reference in New Issue
Block a user