Date : Sat, 04 Oct 2008 21:38:53 +0100
From : afra@... (Phill Harvey-Smith)
Subject: Save location for temp variables.
Hi again,
Firstly thanks for all those who replied to my request for a PC
assembler, finally settled on BeebAsm, as it seemed to fit what I needed
most.
Ok, so next question is this, the ROM code I'm working on will need to
store a couple of temp variables, I could request a page of private
storage, but as at the moment I only need a few bytes, this seems like a
complete waste of 200+ bytes.
Next thought was to store them on the stack, but again with the 6502's
limited stack I don't really want to put too much on there and also
accessing them will get messy.
So is there a convenient place I can save a few bytes whilst in my ROM
code ? This is mainly for parsing the command line passed to my
commands, and the binary parameters for my code, e.g. I'm working on a
command thus
*SRZAP <id> (<id>)
The command will blank the specified ram banks, but I need a place to
store the bank numbers whilst reading them in and actually executing the
command.
Cheers.
Phill.
--
Phill Harvey-Smith, Programmer, Hardware hacker, and general eccentric !
"You can twist perceptions, but reality won't budge" -- Rush.