Changes

Technical information about Locomotive BASIC

19 bytes added, 15:42, 29 January 2019
/* Passing parameters to a RSX (Resident System Extension) command or binary function */
with the help of that assembly code is it possible to find the parameters:
<pre>
ROUT1: CP "x" ;test register A if "x" parameters were hand-overedgiven, e.g. "x" = 2 RET NZ ; if no > failure and returnnot exactly x parameters then do not execute RSX.
LD L,(IX+0)
LD H,(IX+1) ; HL = value of last parameter
With the help of the variable container "@" it is also possible to get a result from an invoked mc-code back to basic.
In this case the param parameter contains the address of the integer, floating point or string. You can modify these to give the result.
BASIC allocates the strings, so when you modify a string, do not write more characters than the original string.
2,541
edits