Neo TeAm Forum

The 9th. NEO Project for SNES => The 9th. NEO Project for SNES Dev kit. => SNES development section => Topic started by: ma2 on April 18, 2013, 11:42:40 PM

Title: [SNES] "Mode 0" Form of the data is not known
Post by: ma2 on April 18, 2013, 11:42:40 PM
I the shape of the data do not know, want to make a demonstration in the SNES in Japanese.
I use a snes-sdk to develop,
is included with the snes-sdk, of snesc

format of tiles1, tiles that are passed to this settiles that is used in main () is not known.
Title: Re: [SNES] "Mode 0" Form of the data is not known
Post by: mic_ on April 22, 2013, 05:26:44 PM
In mode 0 all BG layers uses 4-color tiles (see http://nocash.emubase.de/fullsnes.htm#snesppucontrol (http://nocash.emubase.de/fullsnes.htm#snesppucontrol)).

If I remember correctly the tiles are formatted thus:

Code: [Select]
hgfedcba
... repeats for all 8 rows
HGFEDCBA
... repeats for all 8 rows

Where "a" is bit0 of the left-most pixel on row N, "h" is bit0 of the right-most pixel on row N, and "A" is bit1 of the left-most pixel on row N.