AMOSi:User Instruction

From Amiga Coding
Jump to: navigation, search

Defines a brand new Interface instruction for use with your program.


UI XX,number of parameters;[instruction definition]


XX = the name of your command using two UPPERCASE characters. The new name must be unique. You can't use the name of any of the original Interface instructions.


number of parameters = a number from 1 to 9 which tells Interface how many values will be entered into the instruction. These values can be read from your UI routine using the functions P1 to P9.


[instruction definition] = a list of Interface commands which will be used to define your new instruction. This list can be as long as you like.