User blog comment:ヌヌハラ/alice-tools v0.2.0/@comment-45214281-20200313112813/@comment-44256294-20200315055451

The MSG instruction will implicitly call a particular function which is normally named "message". The function prototype is "void message(int nMsgNum, int nNumOfMsg, string szText)". I think the message function is used to queue up a message and then the A and R functions are what cause the message to actually be displayed.

I will look into adding some macro psuedo-instructions in a future release of alice-tools to make this kind of thing easier. Like maybe a ".SPRINTF" op which generates the code for putting a formatted string on the stack. So you could do something like,

.SPRINTF "mvVar is %d" myVar CALLSYS system.MsgBox S_POP