Difference between revisions of "AMOSi:Lib Call"

From Amiga Coding
Jump to: navigation, search
(Extracted from the AMOSPro V2.00 helpfile)
m (1 revision(s))
 
(No difference)

Latest revision as of 01:51, 17 November 2007

Calls your chosen library command, and returns the result to your Basic program.


function_offset holds the offset to the library function you want to execute. It can be entered by name using the LVO function.


Before calling this function, you'll need to load the appropriate parameter values into the Address and Data registers with AREG() and DREG(). Similarly, after the function has been successfully executed, any return values will be available immediately from the AREG and DREG variables.


result=Lib Call(channel,function_offset)