[z-machine] Multiple stacks?

David Kinder d.kinder@btinternet.com
Wed, 15 Sep 2004 21:55:41 +0100


>From Mose Wingert:
> And there doesn't seem to be a routine address in there anywhere.  At first
> I figured it must be the branch offset, but the spec says that branch offset
> is only used for instructions that test a condition...and it seems to
> support this by indicating in the chapter 14 opcode table by indicating that
> no CALL instructions take a branch offset.  But then how does the
> instruction know where the routine to call is?

The routine is the first operand of the CALL instruction.

David