donato-zits- wrote: ↑Mon Aug 01, 2022 7:28 pm
the
horizontal arrow direction is the order of the data thata is trying to be reading by the PPU, it's is arranged like $0000, $0001, $0003, $0004 in where the red arrow is indicating, the questions are: how can I generate a .nam archive in the order that green arrow is directionating(the
vertical arrangemente? is NESst capable to generate a data like this?
Hmmm… I’m not certain, but I don’t believe a .nam file can be included inside a NES ROM, or game. It seems that .nam files are just there to allow you to build a screen in a visual sense. My sister spent days converting each .nam into data,
.db statements. (We use metatiles.) Then, it just depends on a.) how you read and then write that data to $2007 and b.) how your PPU has been set to either increment the VRAM address, by 1 or by 32, after each $2007 write.
Quietust’s post above explains this VRAM address.
[EDITS] Furthermore, is isn’t possible to save a nametable written vertically, bc the horizontal nametable can be written horizontally (set bit2 of $2000 to
0 in a vblank, before you write to $2007 i.e.
sets PPU in a manner for vblank, *don’t ever make bit6 a 1*, 8x8 sprites, Background and Sprite tiles are both drawn with the first pattern table, VRAM address is incremented by 1 after each $2007 write, drawing on nametable1).
And, sure, if your screen data is presented in a vertical manner AND you write to $2007 in a vertical manner AND your PPU has been set to increment the VRAM address by 32 after each $2007 write, then that’s cool too.
https://www.nesdev.org/wiki/PPU_registers#PPUCTRL [/EDITS]
donato-zits- wrote: ↑Mon Aug 01, 2022 7:28 pmand finally...this nametables data maybe will proced to a correct/expected roll effect?
edit:right now I find a spanish language doc of "the shinny of nes scrolling"(from loppy) that should be one of the translations of hydesprojects made by hyde, aparently seems to help but tell no new info or give concrete example, anyway is a RARE doc because is in latin language
By “roll effect”, do you mean scrolling? Maybe tomorrow I can post you some specific pages to read in my
long thread; tokumaru, tepples, and others did present super helpful excellent scrolling advice to me in that thread of mine. Though, scrolling is definitely NOT just copying an algorithm. It requires a deeper understanding of some parts of the NES.
Note: I’ve been taught that Horizontal scrolling is
much easier than Horizontal
and Vertical scrolling.