I am mildlyinfuriatedBecause I can't figure out how to:1. How to change the palettes (mainly the background)2. How to make graphicsAnd 3. How to adjust the nametablesif anybody could help me I appreciate it!

PS: I am trying to program in pure ASM because I don't know any languages. (I found the opcodes of all of the intructions)

The PPU can only be written to with rendering OFF (write zero to 2001)...or during v-blank.

To write to the PPU you must first set an address (2 writes to 2006), then write data to 2007.

When that is done. Set the scroll registers (2005 twice). And turn the screen on (1e to 2001).

The palette is PPU addresses 3f00-3f1f.

The main screen (nametable #0) is ppu addresses 2000-23ff.

The graphics can be made separately, and imported into the .nes file. With a tile editor.

There is a lot more to it...init code. ines header. learn 6502 asm. Which is why I recommend a tutorial.

As Einstein used to say. "Do not worry about your difficulties in Mathematics. I can assure you mine are still greater." I am currently reading through a 2000 line source code that I didn't write, trying to fix a bug that I don't understand (involving NES music). we all get frustrated.

_________________nesdoug.com -- blog/tutorial on programming for the NES

Who is online

Users browsing this forum: No registered users and 3 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum