Okay, I finished the support for the generic stack. We can now:
*) save and restore registers (using the save and restore opcodes)
*) return from subs using the address on the top of the stack (using
the ret opcode)
*) Branch to a label using the bsr opcode, and remember where we were
for later returning
At the moment we've only got relative sub calls using the bsr (well, bsr_i
and bsr_ic opcodes, but close enough...) opcode. jsr will come as soon as
we can reasonably get absolute addresses. Soon, I think.
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
[EMAIL PROTECTED] have teddy bears and even
teddy bears get drunk