calling_20internal_20routines_20from_20assembler_20code
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
calling_20internal_20routines_20from_20assembler_20code [2018/03/31 13:19] – external edit 127.0.0.1 | calling_20internal_20routines_20from_20assembler_20code [2024/01/05 00:22] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====Calling internal routines from assembler code===== | =====Calling internal routines from assembler code===== | ||
- | //by Richard Russell, January 2016//\\ \\ A small selection of subroutines, | + | //by Richard Russell, January 2016//\\ \\ A small selection of subroutines, |
CALL " | CALL " | ||
CALL " | CALL " | ||
Line 22: | Line 22: | ||
CALL " | CALL " | ||
CALL " | CALL " | ||
- | \\ | + | |
+ | The second set is as follows (//BBC BASIC for Windows// v6.00a or later and //BBC BASIC for SDL 2.0// only): | ||
CALL @fn%(0) | CALL @fn%(0) | ||
CALL @fn%(1) | CALL @fn%(1) | ||
Line 41: | Line 43: | ||
CALL @fn%(16) ; EXP() function; calculate e raised to the power of (bx, | CALL @fn%(16) ; EXP() function; calculate e raised to the power of (bx, | ||
JMP @fn%(17) ; Return to BASIC (jmp rather than call), esi addresses statement | JMP @fn%(17) ; Return to BASIC (jmp rather than call), esi addresses statement | ||
- | | + | |
+ | |||
+ | Extensions in //BBC BASIC for SDL 2.0// only: | ||
+ | |||
+ | SYS @fn%(19) ; Return a pointer to the current bitmap font: SYS @fn%(19) TO font%% | ||
+ | SYS @fn%(20) | ||
+ | SYS @fn%(21) |
calling_20internal_20routines_20from_20assembler_20code.1522502347.txt.gz · Last modified: 2024/01/05 00:16 (external edit)