Pallete affects scroll value
Page 7 of 7

Author:  IMAGICA [ Tue Dec 12, 2017 8:23 pm ]
Post subject:  Re: Pallete affects scroll value

1. Later... When the 2nd problem is gone.
2. Moving the controller routine makes the jittering stop. Still having rendering problems though.
3. There is a block that keeps rewriting the background Improperly.
4. The "Take Full Advantage of NMI" part of ... er_Formats is giving me info but the info given by Kasumi has around the same effect as it is
5. It seems that my Attributes are being written into the column data somehow. Fixing that is the main priority. My "hint" (or blatant truth) is that " [Vblank has a] notification [that] comes in the form of an NMI, or "non-maskable interrupt". ... " [When] the PPU starts VBlank again, the PPU will attempt to notify you that this has happened. It does this by sending an NMI to your program."

Edit: It seems regulation of the attribute table is the answer

KitsuneTales.nes [48.02 KiB]
Downloaded 16 times

Author:  dougeff [ Wed Dec 13, 2017 5:53 am ]
Post subject:  Re: Pallete affects scroll value

One thing I do, when I'm working on new code (when I'm not sure of PPU behavior)... is make a very minimal test case. So, basically an empty program with just initial code, and a mostly empty nmi, and my test code.

If you are having trouble with attribute tables, perhaps it's because you are writing tiles top to bottom. It's very tricky to write attributes top to bottom.

The attribute table (nametable #0) goes like this...

23d0,...etc on through 23ff

23c8 below it
23d0 below that

So, writing top to bottom adds 32 ($20 hex) but that would skip from 23c0 to 23e0 and miss all the bytes between. You could set a new address for each write to the attribute table.

That is slow, and will probably put you past v-blank. Maybe you could draw the column on 1 frame and draw the attribute on the next frame.

Author:  IMAGICA [ Thu Jan 04, 2018 4:55 pm ]
Post subject:  Re: Pallete affects scroll value

Ok... Got a question.
I've gotten one of my scrolling bugs fixed (The columnNumber byte was incrementing without the scroll being correct) and the scrolling goes both left and right.
The problem with my system is that if I tap the scrolling, the scroll wont update correctly.
Try it.
P.S. I've labled the needed functions

Kitsunetales.asm [22.15 KiB]
Downloaded 3 times
KitsuneTales.nes [48.02 KiB]
Downloaded 3 times

Page 7 of 7 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group