Moved the NES font into its own object module.
It can be replaced by a custom font when a program is built.
This commit is contained in:
parent
a08192b53e
commit
f2d2f3c193
2 changed files with 2068 additions and 2063 deletions
|
@ -1,5 +1,5 @@
|
|||
;
|
||||
; Startup code for cc65 (NES version)
|
||||
; Start-up code for cc65 (NES version)
|
||||
;
|
||||
; by Groepaz/Hitmen <groepaz@gmx.net>
|
||||
; based on code by Ullrich von Bassewitz <uz@cc65.org>
|
||||
|
@ -7,11 +7,12 @@
|
|||
|
||||
.export _exit
|
||||
.export __STARTUP__ : absolute = 1 ; Mark as startup
|
||||
|
||||
.import initlib, donelib, callmain
|
||||
.import push0, _main, zerobss, copydata
|
||||
.import ppubuf_flush
|
||||
|
||||
; Linker generated symbols
|
||||
; Linker-generated symbols
|
||||
.import __RAM_START__, __RAM_SIZE__
|
||||
.import __SRAM_START__, __SRAM_SIZE__
|
||||
.import __ROM0_START__, __ROM0_SIZE__
|
||||
|
@ -19,12 +20,17 @@
|
|||
.import __CODE_LOAD__,__CODE_RUN__, __CODE_SIZE__
|
||||
.import __RODATA_LOAD__,__RODATA_RUN__, __RODATA_SIZE__
|
||||
|
||||
; ------------------------------------------------------------------------
|
||||
; Character data
|
||||
; ------------------------------------------------------------------------
|
||||
.forceimport NESfont
|
||||
|
||||
.include "zeropage.inc"
|
||||
.include "nes.inc"
|
||||
|
||||
|
||||
; ------------------------------------------------------------------------
|
||||
; 16 bytes INES header
|
||||
; 16-byte INES header
|
||||
|
||||
.segment "HEADER"
|
||||
|
||||
|
@ -162,8 +168,9 @@ nmi: pha
|
|||
irq:
|
||||
rti
|
||||
|
||||
|
||||
; ------------------------------------------------------------------------
|
||||
; hardware vectors
|
||||
; Hardware vectors
|
||||
; ------------------------------------------------------------------------
|
||||
|
||||
.segment "VECTORS"
|
||||
|
@ -171,13 +178,3 @@ irq:
|
|||
.word nmi ; $fffa vblank nmi
|
||||
.word start ; $fffc reset
|
||||
.word irq ; $fffe irq / brk
|
||||
|
||||
; ------------------------------------------------------------------------
|
||||
; character data
|
||||
; ------------------------------------------------------------------------
|
||||
|
||||
.segment "CHARS"
|
||||
|
||||
.include "neschar.inc"
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,12 @@
|
|||
; ------------------------------------------------------------------------
|
||||
; Character data
|
||||
; ------------------------------------------------------------------------
|
||||
|
||||
.export NESfont
|
||||
|
||||
.segment "CHARS"
|
||||
|
||||
NESfont:
|
||||
.byte %00000000 ; 0000 1-00:
|
||||
.byte %00000000 ; 0001 1-00:
|
||||
.byte %00000000 ; 0002 1-00:
|
||||
|
@ -4605,4 +4614,3 @@
|
|||
.byte %11111111 ; 0FFD 2-ff: ********
|
||||
.byte %11111111 ; 0FFE 2-ff: ********
|
||||
.byte %11111111 ; 0FFF 2-ff: ********
|
||||
|
Loading…
Add table
Reference in a new issue