AMOSi:Doscall

From Amiga Coding
Jump to: navigation, search

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).