call
Index
Description:
Call a subroutine by pushing the current program counter onto the VM stack and assigning a new address to the program counter.
Data (2 bytes):
short
: 2-byte value for new PC
Pseudo Code:
stack[sp]=pch
stack[sp+1]=pcl
pch=program[pc+1]; pcl=program[pc+2]
sp=sp+2
Flags Affected:
D
H
C
Z
N
Possible Errors:
tvmStackOverflow
-
There is no more room on the
stack
to push the PC.
aVMExitAddressRange
-
The address specified is invalid.
version: 1.0, build 80903
© Copyright 1994-2008 Acroname, Inc., Boulder, Colorado. All rights reserved.