AMOSi:Doscall
Revision as of 02:45, 17 November 2007 by Spellcoder (talk | contribs) (Extracted from the AMOSPro V2.00 helpfile)
an example can be found on AMOSPro_Examples:Examples/H-7/Help_70.AMOS
Calls a routine from the DOS library.
As with LIB CALL, you'll first need to set up the control registers into D0-D7 and A0-A3 using the AREG() and DREG() functions.
After the command has been executed, the return value will be available from D0 as the result.
result=Doscall(function_offset)
function_offset enters the offset to the relevant library function. The offset can be either a simple number, or a named function (using the LVO command).