Fix graphics format: Difference between revisions

From NeoGeo Development Wiki
Jump to navigation Jump to search
No edit summary
(Fixed image, added addressing details)
Line 1: Line 1:
[[File:fixgfx.png|center]]
[[File:fixgfx.png|center]]


Left and right nibbles might be swapped !
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.


Column order: 4,5,6,7,0,1,2,3
One tile is 8 * 8 pixels / 2 pixels per byte = '''32 bytes'''.


The [[fix layer]] uses 8x8 pixels tiles, coded in a 4BPP linear format with mixed columns. The cart and CD systems use the same format.
==Addressing==


One tile is 32 bytes.
<pre>
n...nHCLLL
 
n: Tile number
H: Half, 0 = first (right), 1 = second (left)
C: Column in half, 0 = left, 1 = right
L: Line in column
</pre>
 
{{Sig|2H1}} is "C".


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

Revision as of 14:43, 11 April 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.

One tile is 8 * 8 pixels / 2 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 in column

[[Signal names#{{{2}}}|2H1]] is "C".