BASIC-226 CALL Statement to execute a machine code or assembly language subroutine. Syntax ------ CALL expression [,variable...] Arguments --------- expression is the address of the routine to be called. The parameter variables, if present, may be of any type, and must exist when the CALL statement is executed. They are accessed through a parameter block which BASIC sets up. The format of this parameter block and of the variables accessed through it is described in the BASIC manual on page 226. Purpose ------- CALL can be used to enter a machine code program from BASIC. Before the routine is called, the ARM's registers are set up as follows: R0 A% R1 B% R2 C% R3 D% R4 E% R5 F% R6 G% R7 H% R8 Pointer to BASIC's workspace (ARGP) R9 Pointer to list of l-values of the parameters R10 Number of parameters R11 Pointer to BASIC's string accumulator (STRACC) R12 BASIC's LINE pointer (points to the current statement) R13 Pointer to BASIC's full, descending stack R14 Link back to BASIC and environment information pointer.