I was just wondering something. I was looking at someone's code who had based their reset routine off the sample code in the wiki:
http://nesdevwiki.org./wiki/index.php/Init_code
If you look on the wiki it sets the stack pointer to FF but then the clear mem routine runs which (I believe) clears it to zero.
In my code, I always set the stack pointer "after" I clear the memory.
Is the wiki wrong, or does it not really matter? I had thought that the person's code I was looking at was getting its stack hsoed (in FCEU's memory viewer), but I'm still pretty new to this so I'm not really sure.
Al
http://nesdevwiki.org./wiki/index.php/Init_code
If you look on the wiki it sets the stack pointer to FF but then the clear mem routine runs which (I believe) clears it to zero.
In my code, I always set the stack pointer "after" I clear the memory.
Is the wiki wrong, or does it not really matter? I had thought that the person's code I was looking at was getting its stack hsoed (in FCEU's memory viewer), but I'm still pretty new to this so I'm not really sure.
Al