© 1985 ASCII CORP. / NIPPON GAKKI CO.
Page 30 of 108
© 2010-2015 Eugeny Brychkov
3.2.2. Pattern Generator Table
Organization of pattern generator table is the same as in TEXT1 mode. Register R#4
defines base address of the table.
3.2.3. Pattern layout table settings
The pattern layout table is a map of the screen (per screen image). Every location of
the screen contains code of the pattern displayed at respective location. This table has
80*27 (2160) locations where defined patterns can be displayed. Pattern layout table base
address is stored in register R#2 (see below), and corresponds to the cell (0, 0) with
address 0 in the picture below. Note that if LN bit of R#9 is set to 1, then 26 lines are
displayed, plus an upper half of 27
th
pattern line is displayed.
MSB
7 6 5 4 3 2 1 0
LSB
R#2
0 A16 A15 A14 A13 A12 1 1
Pattern layout
table
Screen mapping of pattern layout table is provided below.
Columns
0
1
2
3
79
←
X
0
0 1 2 3 … … 79
1
80 81 82 83 … … 159
…
…
… … … … …
… …
…
… … … …
25
2000
2001
2002 … … … 2079
26
2080
2081
2082 … … … 2159
Rows
↑
Y
3.2.4. Color table settings
Each position on the screen has separate bit for the blinking attribute, and if this bits
is set to 1, blinking will be applied to the pattern placed in this area in the pattern layout
table. Table start address is set in registers R#3 and R#10.
MSB
7 6 5 4 3 2 1 0
LSB
R#3
A13 A12 A11 A10 A9 1 1 1
R#10
0 0 0 0 0 A16
A15
A14
Color table base
address
registers