1
CALLHLL
Nunuhara Cabbage edited this page 2019-11-06 21:51:23 -08:00

CALLHLL <libno> <fno>

Instruction Arguments

int32 libno - The index of the library containing the HLL function
int32 fno - The index of the HLL function

Stack Arguments

The arguments to the HLL function.

Description.

Call a library function. Behaves identically to CALLFUNC, except in the interpretation of its instruction arguments.

Example

Assuming the following function is defined in a library,

int print_numbers(int n)
{
    for (int i = 0; i <= n; i++) {
        printf("%d", i);
    }
    return n - 1;
}

And supposing the library is given index 0, and print_numbers is given index 3,

PUSH 0x2        ; stack: [2]
CALLHLL 0x0 0x3 ; stack: [1], and "012" is printed