NES graphics (formatting)

Discuss technical or other issues relating to programming the Nintendo Entertainment System, Famicom, or compatible systems.

Moderator: Moderators

Post Reply
User avatar
jargon
B&: This is not your blog
Posts: 208
Joined: Fri Dec 07, 2007 11:40 pm
Location: 480/85260
Contact:

NES graphics (formatting)

Post by jargon »

What is the standard bit *layout* of 2bpp (2bit per plane) NES CHR sheets?

Please draw a diagram to illustrate or something. :/

Snowbro's "Tile Molester" program I downloaded off Zophar's Domain is being retarded.
Cheers,
Timothy Robert Keal alias jargon

Image
Miser's House Anthology Project
User avatar
Dwedit
Posts: 4470
Joined: Fri Nov 19, 2004 7:35 pm
Contact:

Post by Dwedit »

8 bytes for the low plane
then 8 bytes for the high plane

Most significant bit is in the left position
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

Here's half an example that might help.
User avatar
Zepper
Formerly Fx3
Posts: 3264
Joined: Fri Nov 12, 2004 4:59 pm
Location: Brazil
Contact:

Re: NES graphics (formatting)

Post by Zepper »

jargon wrote:What is the standard bit *layout* of 2bpp (2bit per plane) NES CHR sheets?

Please draw a diagram to illustrate or something. :/

Snowbro's "Tile Molester" program I downloaded off Zophar's Domain is being retarded.
Don't make me laugh, as this info is very easy to find. Do you know a site... err, better NO. ^_^;;
User avatar
jargon
B&: This is not your blog
Posts: 208
Joined: Fri Dec 07, 2007 11:40 pm
Location: 480/85260
Contact:

Post by jargon »

Dwedit wrote:8 bytes for the low plane
then 8 bytes for the high plane

Most significant bit is in the left position
Okay, so 8 scanlines for "Lo" plane, then 8 scanlines for "Hi" plane, for 256 8x8 tiles back to back; laid out in the sheet left to right, top to bottom; "intel" bit order of left-endian? each scanline per plane being 8bits?

(Right-endian is "motorola".)

Btw, this is how my original hexdump of my font for my MISHAP.NES I have yet to complete was laid out; I guess I just converted the raw bitmap to binary wrong.
Cheers,
Timothy Robert Keal alias jargon

Image
Miser's House Anthology Project
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Post by tepples »

jargon wrote:Okay, so 8 scanlines for "Lo" plane, then 8 scanlines for "Hi" plane, for 256 8x8 tiles back to back; laid out in the sheet left to right, top to bottom; "intel" bit order of left-endian? each scanline per plane being 8bits?
Correct.
(Right-endian is "motorola".)
How is right-pixel-in-MSB "motorola"? The old Macintosh computers that used a Motorola (now Freescale) 68K CPU were left-pixel-in-MSB, and the Sega Genesis that used a Motorola MC68000 CPU was also left-pixel-in-MSB.
Post Reply