OPCALL - call to routine in Operator Segment.

Usage:

opcall  ROUTINE,return=>MODS

Where:

ROUTINE
is the name of the routine you want to call.
MODS
is a set of modifiers used in the EPPR instruction that loads the return address. The EPPR instruction has the form
eppr   p.ret,@MODS

(Recall that the @ operator expands a token sequence.) The default MODS value is "[2,ic]" so that the instruction is

eppr   p.ret,2,ic

Different values may be specified as token sequences. If you specify "return=>" without a MODS value, the EPPR instruction is not generated. This means that your function must fill in "p.ret" with an appropriate return value before using "opcall".

Description:

"opcall" calls a routine in the Operator Segment. An operator called by "opcall" should return with the "aretrn" macro.

Examples:

opcall   func
#generates
func:  .symref
       eppr   p.ret,2,ic
       tra    func,,p.oper

Copyright © 1996, Thinkage Ltd.