
S-MOS Systems, Inc. 2460 North First Street San Jose, CA 95131 Tel: (408) 922-0200 Fax: (408) 922-0238
268-0.4
99
6.2 – 6.3
6.0 Character Generator
Table 22. Character mapping
Item
Parameter
Remarks
Internal/external character generator selection
M0
M2 = 0
M2 = 1
Graphics mode (8 bits
×
1 line)
1 to 8 pixels
9 to 16 pixels
Greater than 16 pixels
Character field height
Internal CG ROM/RAM select
External CG ROM/RAM select
CG RAM bit 6 correction
Automatic
Determined by the
character code
M1
Specified with CG RAM ADR
command
Other than the area of Figure 58
CG RAM data storage address
Can be moved anywhere in the
display memory address space
192 characters or less
More than 192 charactersSet SAG to F000H and overly
SAG and the CG ROM table.
External CG ROM
address
6.3 Setting the Character Generator Address
The CG RAM addresses in the VRAM address space
are not mapped directly from the address in the SAG
register. The data to be displayed is at a CG RAM
address calculated from SAG + character code +
ROW select address. This mapping is shown in Tables
23 and 24.
Table 23. Character fonts, number of lines
≤
8 (M2 = 0, M1 = 0)
SAG
Character code
+ROW select address
CG RAM address
A15 A14 A13 A12 A11 A10
0
0
0
0
0
0
A9
D6
0
A8
D5
0
A7
D4
0
A6
D3
0
A5
D2
0
A4
D1
0
A3
D0
0
A2
0
R2
A1
0
R1
A0
0
R0
0
0
0
0
D7
0
VA15 VA14 VA13 VA12 VA11 VA10 VA9 VA8 VA7 VA6 VA5 VA4 VA3 VA2 VA1 VA0
Table 24. Character fonts, 9
≤
number of lines
≤
16 (M2 = 1, M1 = 0)
SAG
Character code
+ROW select address
CG RAM address
A15 A14 A13 A12 A11 A10
0
0
0
0
0
0
A9
D5
0
A8
D4
0
A7
D3
0
A6
D2
0
A5
D1
0
A4
D0
0
A3
0
R3
A2
0
R2
A1
0
R1
A0
0
R0
0
0
D7
0
D6
0
VA15 VA14 VA13 VA12 VA11 VA10 VA9 VA8 VA7 VA6 VA5 VA4 VA3 VA2 VA1 VA0