BASIC FUNCTIONS
SECTION 5.4
5. 4.1
CALL
Function CALL allows a machine code subroutine or an existing
routine in HUNTER's housekeeping package to be called from
Basic and executed.
Syntax D=CALL(N)
where Dis a variable
N is a Call Address
Examples 10 A=CALL(O)
20 B=CALL(V) where Vis the address to be called
Switches execution to the program located at the location
specified. The call in line 10 causes a restart of the
HUNTER's software.
Remarl<s WARNING: Use CALL only as indicated in section 4,8, MACHINE
CODF. CALLS. Use of unspecified calls will crash HUNTF.R,
resulting in loss of data, etc.
When control has passed back to Basic from a machine code
program, then D = the final number stored in the Z80
accumulator when the program returns.
VER.V09F
PAGE 5 - 10