Difference between revisions of "AMOSi:Doscall"
Spellcoder (talk | contribs) (Extracted from the AMOSPro V2.00 helpfile) |
Spellcoder (talk | contribs) m (1 revision(s)) |
(No difference)
|
Latest revision as of 01:51, 17 November 2007
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).