move font data out of LC2

This commit is contained in:
4am 2021-10-27 20:17:35 -04:00
parent 6ffc9c7aac
commit d234aa0bcd
3 changed files with 5 additions and 6 deletions

View File

@ -184,15 +184,12 @@ COPYSRC = *
!if LCRAM2_END >= DisableAccelerator {
!error "code is too large: ends at ", LCRAM2_END
}
FONTDST = (LCRAM2_END + 255) and -256
FONTDST = $E000
}
EvenLasterMover
FONTSRC = *
!pseudopc FONTDST {
!source "src/ui.font.data.lc2.a"
!if * > $E000 {
!error "code is too large: ends at ", *
}
}
!if RELBASE = $2000 {
!ifdef PASS2 {

View File

@ -181,7 +181,7 @@
ldy #4
@ELM lda FONTSRC,x
; relocate font data to RAM bank 2
; relocate font data to $E000
sta FONTDST,x
inx
bne @ELM

View File

@ -8,6 +8,8 @@
; LC RAM BANK 1
; D000..DFDE - persistent data structures (gGlobalPrefsStore, gGamesListStore)
; ...unused...
; E000..E3FF - HGR font data
; ...unused...
; EA23..FFEE - main program code
; FFEF..FFF9 - API functions and global constants available for main program
; code, prelaunchers, transition effects, &c.
@ -21,7 +23,7 @@
; DB92..DB98 - backup of stack (during gameplay and self-running demos)
; ...unused...
; DBB4..DBFF - (de)acceleration function
; DC00..DFFF - HGR font data
; DC00..DFFF - unused
;------------------------------------------------------------------------------
!ifndef _CONSTANTS_ {