Back

Figure 4.5 Cell data structure based on the number of character colors, part 1

For 4 bits / dot (32 bytes / cell)

Bits 15 12 11 8 7 4 3 0 
┌──────────┬──────────┬──────────┬──────────┐
+ 00H │ Dot 0-0 data │ Dot 0-1 data │ Dot 0-2 data │ Dot 0-3 data │
├──────────┼──────────┼──────────┼──────────┤
+ 02H │ Data of dots 0-4 │ Data of dots 0-5 │ Data of dots 0-6 │ Data of dots 0-7 │
├──────────┼──────────┼──────────┼──────────┤
: │ : │ : │ : │ : │
: │ : : : : : │
: │ : : : : : │
: │ : │ : │ : │ : │
├──────────┼──────────┼──────────┼──────────┤
+ 1EH │ Dot 7-4 data │ Dot 7-5 data │ Dot 7-6 data │ Dot 7-7 data │
└──────────┴──────────┴──────────┴──────────┘
Dot 0 1 2 3 4 5 6 7 
┏━━┯━━┳━━┯━━┳━━┯━━┳━━┯━━┓ 
Dot 0 ┃ +00 ┃ +01 ┃ +02 ┃ +03 ┃ 
┠──┼──╂──┼──╂──┼──╂──┼──┨ 
1 ┃ +04 ┃ +05 ┃ +06 ┃ +07 ┃ 
┣━━┿━━╋━━┿━━╋━━┿━━╋━━┿━━┫ 
2 ┃ +08 ┃ +09 ┃ + 0A ┃ + 0B ┃ 
┠──┼──╂──┼──╂──┼──╂──┼──┨ 
3 ┃ + 0C ┃ + 0D ┃ + 0E ┃ + 0F ┃ 
┣━━┿━━╋━━┿━━╋━━┿━━╋━━┿━━┫ Cell 4 ┃ +10 ┃ +11 ┃ +12 ┃ +13 ┃ 
┠──┼──╂──┼──╂──┼──╂──┼──┨ 
5 ┃ +14 ┃ +15 ┃ +16 ┃ +17 ┃ 
┣━━┿━━╋━━┿━━╋━━┿━━╋━━┿━━┫ 
6 ┃ +18 ┃ +19 ┃ + 1A ┃ + 1B ┃ 
┠──┼──╂──┼──╂──┼──╂──┼──┨ 
7 ┃ + 1C ┃ + 1D ┃ + 1E ┃ + 1F ┃ 
┗━━━━━┻━━━━━┻━━━━━┻━━━━━┛ 
[Note 1]
The upper left corner of the cell is dot 0-0, and from there to the right are dot 0-1, dot 0-2, dot 0-3, ....
[Note 2]
The number in the cell is the VRAM address (hexadecimal number) of each dot (2 dots) data based on the VRAM address of the data of dots 0-0 and 0-1.

return


Copyright SEGA ENTERPRISES, LTD., 1997