Fix graphics format: Difference between revisions

From NeoGeo Development Wiki
Jump to navigation Jump to search
(Fixed image, added addressing details)
mNo edit summary
Line 3: Line 3:
The [[fix layer]] uses 8x8 pixels tiles, coded in a 4BPP linear format with mixed columns. Color indexes are coded by pairs and by columns from top to bottom. Note that the pixel positions are swapped in each byte (L/U) and that the first column is column A.
The [[fix layer]] uses 8x8 pixels tiles, coded in a 4BPP linear format with mixed columns. Color indexes are coded by pairs and by columns from top to bottom. Note that the pixel positions are swapped in each byte (L/U) and that the first column is column A.


One tile is 8 * 8 pixels / 2 pixels per byte = '''32 bytes'''.
==Size==
 
One tile is 8 * 8 pixels * 0.5 pixels per byte = '''32 bytes'''.


==Addressing==
==Addressing==
Line 13: Line 15:
H: Half, 0 = first (right), 1 = second (left)
H: Half, 0 = first (right), 1 = second (left)
C: Column in half, 0 = left, 1 = right
C: Column in half, 0 = left, 1 = right
L: Line in column
L: Line
</pre>
</pre>


{{Sig|2H1}} is "C".
{{Sig|2H1|2H1}} is "C".


[[Category:Video system]]
[[Category:Video system]]

Revision as of 05:28, 5 May 2016

The fix layer uses 8x8 pixels tiles, coded in a 4BPP linear format with mixed columns. Color indexes are coded by pairs and by columns from top to bottom. Note that the pixel positions are swapped in each byte (L/U) and that the first column is column A.

Size

One tile is 8 * 8 pixels * 0.5 pixels per byte = 32 bytes.

Addressing

n...nHCLLL

n: Tile number
H: Half, 0 = first (right), 1 = second (left)
C: Column in half, 0 = left, 1 = right
L: Line

2H1 is "C".