mirror of https://github.com/wwarthen/RomWBW.git
Browse Source
The FONTS_INLINE equate controls whether the fonts are included in the HBIOS area as per existing behaviour or whether they are placed in the currently unused ROM bank 3. In the case where we use bank 3 for font storage, the HBIOS is built with the font data located at 0x8000 onwards. The build process splits this off for relocation to the correct image position. Unlzsa, the TMS and VGA driver have been updated to access the font data from either location, whether compressed or not. Moving the font data to bank 3 results in significant savings in HBIOS space. If you are happy with this approach, I will continue developing and roll changes into other display drivers and do some hardware testing. Further on, as mentioned, I would like to look see if i can get the decompressor to decompress one byte at a time and move the CCP cache to bank 3 as well. Regards Philpull/486/head
12 changed files with 292 additions and 129 deletions
@ -0,0 +1,70 @@ |
|||
; |
|||
;================================================================================================== |
|||
; FONTS |
|||
;================================================================================================== |
|||
; |
|||
HB_FONTS_BEG .EQU $ |
|||
; |
|||
ORG_FONTS .EQU $ |
|||
; |
|||
MEMECHO "FONTS" |
|||
; |
|||
#IFDEF USEFONT8X8 |
|||
FONT8X8: |
|||
|
|||
; WE NEVER COMPRESS THE 8X8 FONT AS THERE IS NOT ENOUGH SPACE TO DECOMPRESS THEM AT WARM BOOT |
|||
|
|||
#IF USELZSA2 & FALSE |
|||
#INCLUDE "font8x8c.asm" |
|||
#ELSE |
|||
#INCLUDE "font8x8u.asm" |
|||
#ENDIF |
|||
MEMECHO " 8X8" |
|||
#ENDIF |
|||
; |
|||
#IFDEF USEFONT8X11 |
|||
FONT8X11: |
|||
#IF USELZSA2 |
|||
#INCLUDE "font8x11c.asm" |
|||
#ELSE |
|||
#INCLUDE "font8x11u.asm" |
|||
#ENDIF |
|||
MEMECHO " 8X11" |
|||
#ENDIF |
|||
; |
|||
#IFDEF USEFONT8X16 |
|||
FONT8X16: |
|||
#IF USELZSA2 |
|||
#INCLUDE "font8x16c.asm" |
|||
#ELSE |
|||
#INCLUDE "font8x16u.asm" |
|||
#ENDIF |
|||
MEMECHO " 8X16" |
|||
#ENDIF |
|||
; |
|||
#IFDEF USEFONTCGA |
|||
FONTCGA: |
|||
#IF USELZSA2 |
|||
#INCLUDE "fontcgac.asm" |
|||
#ELSE |
|||
#INCLUDE "fontcgau.asm" |
|||
#ENDIF |
|||
MEMECHO " CGA" |
|||
#ENDIF |
|||
; |
|||
#IFDEF USEFONTVGARC |
|||
FONTVGARC: |
|||
#IF USELZSA2 |
|||
#INCLUDE "fontvgarcc.asm" |
|||
#ELSE |
|||
#INCLUDE "fontvgarcu.asm" |
|||
#ENDIF |
|||
MEMECHO " VGARC" |
|||
#ENDIF |
|||
; |
|||
SIZ_FONTS .EQU $ - ORG_FONTS |
|||
MEMECHO " occupy " |
|||
MEMECHO SIZ_FONTS |
|||
MEMECHO " bytes.\n" |
|||
; |
|||
HB_FONTS_END .EQU $ |
|||
Loading…
Reference in new issue