mirror of
https://github.com/cc65/cc65.git
synced 2024-09-27 19:55:09 +00:00
Moved the font into a separate module in the library.
The font can be replaced, at link-time, by a custom file.
This commit is contained in:
parent
a02bec11e9
commit
ba0ef5938d
@ -3,6 +3,7 @@
|
|||||||
.import vdc_init
|
.import vdc_init
|
||||||
.import psg_init
|
.import psg_init
|
||||||
.import colors
|
.import colors
|
||||||
|
.import _pce_font
|
||||||
.importzp ptr1, tmp1
|
.importzp ptr1, tmp1
|
||||||
|
|
||||||
.include "pce.inc"
|
.include "pce.inc"
|
||||||
@ -53,8 +54,8 @@ load_font:
|
|||||||
; rts ; (fall through)
|
; rts ; (fall through)
|
||||||
|
|
||||||
; Point to the font data.
|
; Point to the font data.
|
||||||
copy: lda #<font
|
copy: lda #<_pce_font
|
||||||
ldx #>font
|
ldx #>_pce_font
|
||||||
sta ptr1
|
sta ptr1
|
||||||
stx ptr1+1
|
stx ptr1+1
|
||||||
|
|
||||||
@ -84,6 +85,3 @@ fillloop:
|
|||||||
bne charloop ; next character
|
bne charloop ; next character
|
||||||
|
|
||||||
rts
|
rts
|
||||||
|
|
||||||
.rodata
|
|
||||||
font: .include "vga.inc"
|
|
||||||
|
@ -1,10 +1,15 @@
|
|||||||
;----------------------------------------------------------------------------
|
;----------------------------------------------------------------------------
|
||||||
; VGA font for the PC-Engine conio implementation
|
; VGA font for the PC-Engine conio implementation
|
||||||
|
|
||||||
|
.export _pce_font
|
||||||
|
|
||||||
; The character tiles use only two colors from each pallette. Color zero
|
; The character tiles use only two colors from each pallette. Color zero
|
||||||
; comes from pallette zero; color one is different in each pallette. The
|
; comes from pallette zero; color one is different in each pallette. The
|
||||||
; color of a character is set by choosing one of the 16 pallettes.
|
; color of a character is set by choosing one of the 16 pallettes.
|
||||||
|
|
||||||
|
.rodata
|
||||||
|
|
||||||
|
_pce_font:
|
||||||
.byte $00, $00, $00, $00, $00, $00, $00, $00
|
.byte $00, $00, $00, $00, $00, $00, $00, $00
|
||||||
|
|
||||||
.byte %00000000
|
.byte %00000000
|
Loading…
Reference in New Issue
Block a user