Well, I am a complete newbie at this stuff, but somehow I spewed out a weird nes program, but it doesn't seem to work well. Like when I play it in an emulator it starts up, but it does weird things. Like, I'll load it once and 2 of the 6 sprites show up, and then i close it and load it again and 4 of the 6 sprites show up. Sometimes when I load it it works like I want it to, but other times I load it and it doesn't work. And when i reset it, it messes up also.
So what I'm asking is how should I set up the beginning of the program (like what do I clear and stuff)? And why does it work sometimes an not otherrs? thx