AMOSi:Lib Call

From Amiga Coding
Jump to: navigation, search

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)