Date : Fri, 26 Dec 2008 12:45:08 +0000
From : afra@... (Phill Harvey-Smith)
Subject: Using stack page for temp vars
Hi there,
Still developing my sram utils to be romable and replace the Acorn ones,
without taking up extra ram. I have been using the area from &A8-&AF for
tempory storage during execution of the commands, however I find that I
need some more storage, perhaps another 5-10 bytes just for tempory byte
counts end addresses etc.
I have thought of using the bottom of the stack page starting at &100,
for such a purpose, as tracing my code in the mess debugger the stack
pointer always seems to be pretty near the top in the &1Ex area, so as
long as I don't use too much stack they should never get overwritten.
Does this seem reasonable, I do note however that the Acorn SRAM utils
seem to use the space &C0-&CF for some of it's storage, however since it
is part of the 1770 DFS rom, this may be considdered the currently
active filesystem, which is whast the Advanced user guide lists them as.
Final point, is there anywhere I could make the source available, as
these utils are getting to the point where they may actually be usefull
to someone other than me :)
Cheers.
Phill.
--
Phill Harvey-Smith, Programmer, Hardware hacker, and general eccentric !
"You can twist perceptions, but reality won't budge" -- Rush.