hello, I am new here although I have been looking at this board for a while now. I have been programing for a number of years and I consider myself to be ok at it. But I have decided to create a nes emulator to learn about hardware which I am alot less knowledgeable about.
I just have some simple questions about the 2A03, I am the first to admit I know little about CPUs so please don't facepalm yourself at some of my questions.
-From what I gather the program counter is the only thing that should be treated as 16 bit in the nes, am I correct?
-It seems the accumulator should be treated as a signed byte, and it looks like x and y are unsigned, so how do I handle commands like TAY? should I simply copy it bit for bit?
-is the portion of the cpu that code can be run from 0x8000 to 0xFFFF?(just making sure)
- how do you tell where the code on the rom starts (It is probably documented somewhere, but I could not see it)
- when is the status register changed (outside of opcodes that directly tweak its flags such as CLC)
I am sorry about my n00bness, but I am really trying to learn how to do this so thank you to anyone who can clear up any of my questions for me
I just have some simple questions about the 2A03, I am the first to admit I know little about CPUs so please don't facepalm yourself at some of my questions.
-From what I gather the program counter is the only thing that should be treated as 16 bit in the nes, am I correct?
-It seems the accumulator should be treated as a signed byte, and it looks like x and y are unsigned, so how do I handle commands like TAY? should I simply copy it bit for bit?
-is the portion of the cpu that code can be run from 0x8000 to 0xFFFF?(just making sure)
- how do you tell where the code on the rom starts (It is probably documented somewhere, but I could not see it)
- when is the status register changed (outside of opcodes that directly tweak its flags such as CLC)
I am sorry about my n00bness, but I am really trying to learn how to do this so thank you to anyone who can clear up any of my questions for me