; --------------------------------------------------------------- ; 5x7 font, one glyph = 8 bytes (7 rows + 1 pad byte). ; Stored bottom row first because the text kernel walks Y from ; FONTH-1 down to 0. The GLYPH macro accepts rows in visual ; (top to bottom) order and reverses them. ; ; FontData MUST stay page aligned: the pointer math in ; TextBlock derives the high byte from code/32. ; ; Char codes: 0-9 = digits (hex friendly), 10-35 = A-Z, ; 36 = space, 37 = '-', 38 = '=', 39-42 = arrows up/down/left/right ; --------------------------------------------------------------- ; Each visual row is stored TWICE (double height): the 48px kernel ; must rewrite GRP0/GRP1 on every scanline, so the doubling lives in ; the font data, not in the kernel. 14 data rows + 2 pad = 16 bytes ; per glyph (power of two keeps the pointer math cheap). MAC GLYPH .byte {7},{7},{6},{6},{5},{5},{4},{4},{3},{3},{2},{2},{1},{1},0,0 ENDM ; character code symbols _0 = 0 _1 = 1 _2 = 2 _3 = 3 _4 = 4 _5 = 5 _6 = 6 _7 = 7 _8 = 8 _9 = 9 _A = 10 _B = 11 _C = 12 _D = 13 _E = 14 _F = 15 _G = 16 _H = 17 _I = 18 _J = 19 _K = 20 _L = 21 _M = 22 _N = 23 _O = 24 _P = 25 _Q = 26 _R = 27 _S = 28 _T = 29 _U = 30 _V = 31 _W = 32 _X = 33 _Y = 34 _Z = 35 _SP = 36 _DASH = 37 _EQ = 38 _UP = 39 _DN = 40 _LT = 41 _RT = 42 ALIGN 256 FontData GLYPH %01110000,%10001000,%10011000,%10101000,%11001000,%10001000,%01110000 ; 0 GLYPH %00100000,%01100000,%00100000,%00100000,%00100000,%00100000,%01110000 ; 1 GLYPH %01110000,%10001000,%00001000,%00110000,%01000000,%10000000,%11111000 ; 2 GLYPH %11111000,%00010000,%00100000,%00010000,%00001000,%10001000,%01110000 ; 3 GLYPH %00010000,%00110000,%01010000,%10010000,%11111000,%00010000,%00010000 ; 4 GLYPH %11111000,%10000000,%11110000,%00001000,%00001000,%10001000,%01110000 ; 5 GLYPH %00110000,%01000000,%10000000,%11110000,%10001000,%10001000,%01110000 ; 6 GLYPH %11111000,%00001000,%00010000,%00100000,%01000000,%01000000,%01000000 ; 7 GLYPH %01110000,%10001000,%10001000,%01110000,%10001000,%10001000,%01110000 ; 8 GLYPH %01110000,%10001000,%10001000,%01111000,%00001000,%00010000,%01100000 ; 9 GLYPH %01110000,%10001000,%10001000,%11111000,%10001000,%10001000,%10001000 ; A GLYPH %11110000,%10001000,%10001000,%11110000,%10001000,%10001000,%11110000 ; B GLYPH %01110000,%10001000,%10000000,%10000000,%10000000,%10001000,%01110000 ; C GLYPH %11110000,%10001000,%10001000,%10001000,%10001000,%10001000,%11110000 ; D GLYPH %11111000,%10000000,%10000000,%11110000,%10000000,%10000000,%11111000 ; E GLYPH %11111000,%10000000,%10000000,%11110000,%10000000,%10000000,%10000000 ; F GLYPH %01110000,%10001000,%10000000,%10111000,%10001000,%10001000,%01111000 ; G GLYPH %10001000,%10001000,%10001000,%11111000,%10001000,%10001000,%10001000 ; H GLYPH %01110000,%00100000,%00100000,%00100000,%00100000,%00100000,%01110000 ; I GLYPH %00111000,%00010000,%00010000,%00010000,%00010000,%10010000,%01100000 ; J GLYPH %10001000,%10010000,%10100000,%11000000,%10100000,%10010000,%10001000 ; K GLYPH %10000000,%10000000,%10000000,%10000000,%10000000,%10000000,%11111000 ; L GLYPH %10001000,%11011000,%10101000,%10101000,%10001000,%10001000,%10001000 ; M GLYPH %10001000,%11001000,%10101000,%10011000,%10001000,%10001000,%10001000 ; N GLYPH %01110000,%10001000,%10001000,%10001000,%10001000,%10001000,%01110000 ; O GLYPH %11110000,%10001000,%10001000,%11110000,%10000000,%10000000,%10000000 ; P GLYPH %01110000,%10001000,%10001000,%10001000,%10101000,%10010000,%01101000 ; Q GLYPH %11110000,%10001000,%10001000,%11110000,%10100000,%10010000,%10001000 ; R GLYPH %01111000,%10000000,%10000000,%01110000,%00001000,%00001000,%11110000 ; S GLYPH %11111000,%00100000,%00100000,%00100000,%00100000,%00100000,%00100000 ; T GLYPH %10001000,%10001000,%10001000,%10001000,%10001000,%10001000,%01110000 ; U GLYPH %10001000,%10001000,%10001000,%10001000,%10001000,%01010000,%00100000 ; V GLYPH %10001000,%10001000,%10001000,%10101000,%10101000,%11011000,%10001000 ; W GLYPH %10001000,%10001000,%01010000,%00100000,%01010000,%10001000,%10001000 ; X GLYPH %10001000,%10001000,%01010000,%00100000,%00100000,%00100000,%00100000 ; Y GLYPH %11111000,%00001000,%00010000,%00100000,%01000000,%10000000,%11111000 ; Z GLYPH %00000000,%00000000,%00000000,%00000000,%00000000,%00000000,%00000000 ; space GLYPH %00000000,%00000000,%00000000,%11111000,%00000000,%00000000,%00000000 ; - GLYPH %00000000,%00000000,%11111000,%00000000,%11111000,%00000000,%00000000 ; = GLYPH %00100000,%01110000,%10101000,%00100000,%00100000,%00100000,%00100000 ; arrow up GLYPH %00100000,%00100000,%00100000,%00100000,%10101000,%01110000,%00100000 ; arrow down GLYPH %00000000,%00100000,%01000000,%11111000,%01000000,%00100000,%00000000 ; arrow left GLYPH %00000000,%00100000,%00010000,%11111000,%00010000,%00100000,%00000000 ; arrow right