Skip to navigation

Elite on the BBC Micro

Version analysis of FONT%

This code appears in the following versions (click to see it in the source code):

Code variations between these versions are shown below.

Name: FONT% Type: Variable Category: Text Summary: A copy of the character definition bitmap table from the MOS ROM
This is used by the TT26 routine to save time looking up the character bitmaps from the ROM. Note that FONT% contains just the high byte (i.e. the page number) of the address of this table, rather than the full address. The contents of the P.FONT.bin file included here are taken straight from the following three pages in the BBC Micro OS 1.20 ROM: ASCII 32-63 are defined in &C000-&C0FF (page 0) ASCII 64-95 are defined in &C100-&C1FF (page 1) ASCII 96-126 are defined in &C200-&C2F0 (page 2) The code could look these values up each time (as the cassette version does), but it's quicker to use a lookup table, at the expense of three pages of memory.

Code variation 1 of 3A variation in the comments only

This variation is blank in the Master version.

6502SP

The Executive version uses a different font to the standard OS, which is included in the P.FONTEX.bin file. This means all in-game text uses this new font, which is based on the 1960s Westminster font. Ths font style is similar to the machine-readable font on cheques, and is in a style that we would now call "retro-futuristic" (though presumably it was just "futuristic" back in 1984).

Code variation 2 of 3Specific to an individual platform

This variation is blank in the Master version.

6502SP

ORG CODE%
FONT% = P% DIV 256

Code variation 3 of 3Related to the 6502SP version

The Executive version uses a unique font, which is based on the 1960s Westminster font (it's similar to the machine-readable font on cheques - "retro-futuristic" is probably what we'd call it these days).

Tap on a version to expand it, and tap it again to show to all variations.

Master

6502SP

INCBIN "versions/master/1-source-files/fonts/P.FONT.bin"
IF _SNG45 OR _SOURCE_DISC INCBIN "versions/6502sp/1-source-files/fonts/P.FONT.bin" ELIF _EXECUTIVE INCBIN "versions/6502sp/1-source-files/fonts/P.FONTEX.bin" ENDIF
RSS Feed