Mercurial > public > mk2
comparison code_part1/OSTC_code_asm_part1/aa_fonts.asm @ 120:5c7f98fad01a
aa_wordprocessor too fast ?
author | JeanDo |
---|---|
date | Sat, 11 Dec 2010 16:23:43 +0100 |
parents | 3bcccb697bce |
children | 14a074e1a375 |
comparison
equal
deleted
inserted
replaced
93:6ee3a42fd006 | 120:5c7f98fad01a |
---|---|
1 ;============================================================================= | 1 ;============================================================================= |
2 ; | 2 ; |
3 ; file aa_fonts.asm | 3 ; File aa_fonts.asm |
4 ; brief Font-data for the (futurly anti-aliased) word processor | |
5 ; author JD Gascuel. | |
6 ; | 4 ; |
7 ; copyright (c) 2010, JD Gascuel. All rights reserved. | 5 ; Font-data for the anti-aliased word processor |
8 ; $Id$ | 6 ; |
7 ; This program is free software: you can redistribute it and/or modify | |
8 ; it under the terms of the GNU General Public License as published by | |
9 ; the Free Software Foundation, either version 3 of the License, or | |
10 ; (at your option) any later version. | |
11 ; | |
12 ; This program is distributed in the hope that it will be useful, | |
13 ; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 ; GNU General Public License for more details. | |
16 ; | |
17 ; You should have received a copy of the GNU General Public License | |
18 ; along with this program. If not, see <http://www.gnu.org/licenses/>. | |
19 ; | |
20 ; Copyright (c) 2010, JD Gascuel. | |
9 ;============================================================================= | 21 ;============================================================================= |
10 ; HISTORY | 22 ; HISTORY |
11 ; 2010-11-23 : [jDG] Creation with the original 1.72 fonts repacked. | 23 ; 2010-11-23 : [jDG] Creation with the original 1.72 fonts repacked. |
12 ; | 24 ; 2010-12-01 : [jDG] Adding 3bits antialiased fonts. |
13 ; BUGS: | 25 ;============================================================================= |
14 ; | |
15 | 26 |
16 ; Original fonts where byte swapped in PROM memory, but the repacked don't... | 27 ; Original fonts where byte swapped in PROM memory, but the repacked don't... |
17 ; AA_BYTE_SWAP EQU 1 | 28 ; AA_BYTE_SWAP EQU 1 |
18 | 29 |
19 ;---- SMALL font description and data ---------------------------------------- | 30 ;---- SMALL font description and data ---------------------------------------- |
21 aa_font28_block: | 32 aa_font28_block: |
22 DB ' ', 0x80 ; Translate space | 33 DB ' ', 0x80 ; Translate space |
23 DB '²', 0x81 | 34 DB '²', 0x81 |
24 DB '°', 0x82 | 35 DB '°', 0x82 |
25 DB '¤', 0x83 | 36 DB '¤', 0x83 |
26 DB 0xB7,0x7F ; Cursor... | 37 DB 0xB7,0x7F ; Cursor |
27 DB 0xB8,0x84 ; Cursor... | 38 DB 0xB8,0x84 ; Dimmed cursor. |
28 DB 0 ; End of translation table | 39 DB 0 ; End of translation table |
29 DB aa_font28_firstChar ; To be substracted | 40 DB aa_font28_firstChar ; To be substracted |
30 DB aa_font28_chars ; Max value | 41 DB aa_font28_chars ; Max value |
31 DB 0x83-aa_font28_firstChar ; replace by ? when out. | 42 DB 0x83-aa_font28_firstChar; replace by ¤ when unknown. |
32 DB aa_font28_height + 0x80 | 43 DB aa_font28_height + 0x80 |
33 ; | 44 ; |
34 #include "aa_font28_idx.inc" ; SHOULD FOLLOW ! | 45 #include "aa_font28_idx.inc" ; SHOULD FOLLOW ! |
35 #include "aa_font28.inc" | 46 #include "aa_font28.inc" |
47 aa_font28_end: | |
36 ; Make sure this is coherent... | 48 ; Make sure this is coherent... |
37 if aa_font28_nbbits != 3 | 49 if aa_font28_nbbits != 3 |
38 error SMALL fount should be encoded with anti-aliasing... | 50 error SMALL fount should be encoded with anti-aliasing... |
39 endif | 51 endif |
40 | 52 |
51 DB 0x3E-aa_font48_firstChar | 63 DB 0x3E-aa_font48_firstChar |
52 DB aa_font48_height + 0x80 ; AA flag. | 64 DB aa_font48_height + 0x80 ; AA flag. |
53 ; | 65 ; |
54 #include "aa_font48_idx.inc" | 66 #include "aa_font48_idx.inc" |
55 #include "aa_font48.inc" | 67 #include "aa_font48.inc" |
68 aa_font48_end: | |
56 ; Make sure this is coherent... | 69 ; Make sure this is coherent... |
57 if aa_font48_nbbits != 3 | 70 if aa_font48_nbbits != 3 |
58 error MEDIUM fount should be encoded with 3bits anti-aliasing... | 71 error MEDIUM fount should be encoded with 3bits anti-aliasing... |
59 endif | 72 endif |
60 | 73 |
68 DB 0x2F-aa_font90_firstChar | 81 DB 0x2F-aa_font90_firstChar |
69 DB aa_font90_height + 0x80 ; AA flag. | 82 DB aa_font90_height + 0x80 ; AA flag. |
70 ; | 83 ; |
71 #include "aa_font90_idx.inc" | 84 #include "aa_font90_idx.inc" |
72 #include "aa_font90.inc" | 85 #include "aa_font90.inc" |
73 | 86 aa_font90_end: |
74 ;============================================================================= | |
75 ; Make sure this is coherent... | 87 ; Make sure this is coherent... |
76 if aa_font90_nbbits != 3 | 88 if aa_font90_nbbits != 3 |
77 error SMALL fount should be encoded with 3bits anti-aliasing... | 89 error SMALL fount should be encoded with 3bits anti-aliasing... |
78 endif | 90 endif |
91 | |
92 ;============================================================================= |