This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's z80 & ez80 Assembly subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. Z80 & 68k Assembly => z80 & ez80 Assembly
Author Message
anduril66
Anduril is the Flame of the West!


Member


Joined: 25 May 2003
Posts: 129

Posted: 21 Nov 2003 05:34:40 pm    Post subject:

What is stack_ptr (as in the hex bytes for its address)? I couldn't find it in the TI 83 Plus include file or the ISS (it wouldn't be there, but I looked anyway).

Also, if in hex I use jp, do I count from 9D95h up x bytes, where x is the number of bytes between the prog start and "label". Is AsmPrgm considered a byte in the program? Is it removed during compiling?
Back to top
sgm


Calc Guru


Joined: 04 Sep 2003
Posts: 1265

Posted: 21 Nov 2003 06:18:54 pm    Post subject:

The stack pointer isn't a memory location, it's that SP register that the Z80 uses to maintain its hardware stack.

If you hand code JP the encoding is "C3 <low> <high>" where <low> is the low order byte of the address you want to go to, and <high> is the high order byte.
Back to top
JacobdeHaan


Member


Joined: 10 Jul 2003
Posts: 165

Posted: 22 Nov 2003 12:27:07 am    Post subject:

Also, AsmPrgm is not removed during compilitation, because it is needed to keep the calculator's Basic interpreter from trying to run it.
The "ret" in MirageOS and Ion do the same thing to trying to run ION programs as nostub.
Back to top
sgm


Calc Guru


Joined: 04 Sep 2003
Posts: 1265

Posted: 24 Nov 2003 03:07:50 pm    Post subject:

But if you mean that you saw (stack_ptr) somewhere it would mean that you have to define it yourself.

stack_ptr =AppBackupScreen

And when you do JP, you count up from address $0000. So yes, you count up x bytes from $9D95.
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement