Hi,
Just an update, the last couple of days I have discovered a few more things.
I have worked out the syntax settings used by AMOS in the extension code.
dc.w L_COMMAND1,-1
dc.b "comman","d"+$80,"I0,0t0,0,0",-1
"I0,0t0,0" - First Character
I represents command doesn't return a result. Also adds a space between the last
letter of the command name and any variables (if any) that follow.
0 represents command returns numeric result to variable
1 represents command returns floating-point numeric result
2 represents command returns a string. Any variables (if any) that follow are
contained in brackets.
"I0,0t0,0" - Additional Characters
*********************
0 represents a numeric variable
1 represents floating point numeric variable
2 represents a string variable
, represents "," (as in Command 3,5) and separates variables
t represents "to" (as in Command 3,5 to 3,3)
V reserved variable. Must state type (int, float or string) afterwards
This has been confirmed by writing commands into my own extension. Now I just need to work on the real commands and make sure my assembly code doesn't crash AMOS!
Regards,
Lonewolf10
PS. Back in hospital tomorrow (Monday) to have more treatment to hopefully get rid of my kidneystone.