Why the hoop jumping?

Discussion of hardware and software development for Super NES and Super Famicom.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
Oziphantom
Posts: 1163
Joined: Tue Feb 07, 2017 2:03 am

Re: Why the hoop jumping?

Post by Oziphantom »

Back to my original post for a second...
Having looked at a couple of more cases where they use the above "system".. the penny dropped.

The 65816 unlike every other CPU/System that lets me move the Z/B/DP and the SP is byte aligned. The others are Page aligned. Hence the TSC TCD part was confusing me, as in why would you set the DP to be the same page as the SP?? It doesn't, it sets it to be the current location of the bottom of the stack so LDA $04 reads the 4th thing on the stack... I mean I also assumed if one was to do such a thing on a 65816 you would use lda ($04,s ).. to have stack relative and to not use it is criminal... So now it is senseless but makes sense :D
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: Why the hoop jumping?

Post by tepples »

Use of D as a frame pointer would allow direct page addressing modes other than dd and (dd),Y. Consider it like BP on x86.
Oziphantom
Posts: 1163
Joined: Tue Feb 07, 2017 2:03 am

Re: Why the hoop jumping?

Post by Oziphantom »

Ah there is no [d,s] only (d,s)...
Post Reply