AMOSi:End Proc

From Amiga Coding
Jump to: navigation, search

an example can be found on AMOSPro_Tutorial:Tutorials/Procedures_1.AMOS


Marks the END of a PROCedure. Like PROCEDURE, it must occupy its own separate line in your program.


Procedure NAME
: : :   Amos instructions go here
End Proc

You can also return a value from the procedure like so:


Endproc[number]
Endproc[real#]
Endproc[s$]

These values can be subsequently read by your program with PARAM, PARAM#, and PARAM$ respectively.