Re: A85: FA70-FBFF?


[Prev][Next][Index][Thread]

Re: A85: FA70-FBFF?



-> Received: (from majordom@localhost) by 
-> towerguard.unix.edu.sollentuna.se (8.8.5/8.8.5) id AAA26235 for 
-> assembly-85-outgoing; Thu, 21 Aug 1997 00:39:08 +0200
-> Message-ID: <33FBEEB5.79F@algonet.se>
-> Date: Thu, 21 Aug 1997 00:31:01 -0700
-> From: Jimmy Mårdell <mja@algonet.se>
-> X-Mailer: Mozilla 3.02 (Win16; I)
-> MIME-Version: 1.0
-> To: assembly-85@lists.ticalc.org
-> Subject: Re: A85: FA70-FBFF?
-> References: <872116233@cedarcity.net>
-> Content-Type: text/plain; charset=iso-8859-1
-> Sender: owner-assembly-85@lists.ticalc.org
-> Precedence: list
-> Reply-To: assembly-85@lists.ticalc.org
-> Errors-To: assembly-85-errors@lists.ticalc.org
-> Content-Transfer-Encoding: quoted-printable
-> X-MIME-Autoconverted: from 8bit to quoted-printable by 
-> towerguard.unix.edu.sollentuna.se id AAB26235

-> Richardlewis wrote:
-> >
-> > What is in memory at FA70-FBFF?
-> > Is it just zeros, or is it actual data?
-> > TI-RAM11.TXT has no information on it.  If it is just zeros, it 
-> could be > used for an interrupt table (ROCK ON!!).  Then we wouldn't 
-> have to use a table > internal to the shell, or the graph mem.

-> It's the stack, which usually only uses 20-30 byte (starting at $FBFF
-> going down).
-> You could most likely use $FA70-$FB80 without worrying about colliding
-> with the
-> stack. You can't put an interrupt table there, since it would need to
-> start
-> at $FB00 and end at $FC00, ie one byte too much :(

Couldn't you move the stack, then change the stack pointer?
I even got an idea on how to load SP in to HL (there is no direct Z80
command to do that).

Here is the source to ld HL,SP:

ld HL,$0000     ;HL = 0
add HL,SP       ;HL = SP (0+SP)

easy enough!




Follow-Ups: