Changes

Jump to: navigation, search

MGSDRV MML 11

1,541 bytes added, 06:54, 6 March 2018
no edit summary
===#disenable_mgsrc===
Sets protection attribute not to be discompiled with mgsrc.com. It is not recommend to use this thoughtlessly ...
 
==Macro definition==
 
MGSC can define macro. Macro can be called with "*" MML command. Contents of macros are not retrieved when macro is defined and error occurs in the line which calls it.
 
Define macro at the top of the line like below.
 
*<macro_number> = {strings}
 
The range of macro number are 0-255 (offset can be set). Lines can be multiple, if the end of the lines have "}". Redefinition (define same macro number more than twice) can not be allowed. The length of macros should be within 4k bytes.
 
===Definition of program control strings===
 
Define strings which are passed to external programs. This function can be used, for example, synchronizing external programs with playing musics etc. (by passing addresses to work area(MIB)). MGSEL shows strings on the screen with @m MML command.
 
Define it at the top of the line like below.
 
@m<define_number> = {"strings"}
 
Strings should be with quotations. The range of definition number are 0-127. If number is omitted, previous number(default 0) +1 is used. Control codes can be used with escape sign(¥) 40H added to character code you want. (¥C means ^C and ¥Z means ^Z).
 
Other examples are below.
 
¥¥ means¥
 
¥" means"
 
¥x?? character specified with hexadecimal number(2 digits).
 
Characters written after escape code are capitalized. ¥@ cannot be used because it is internal code for terminating strings.
Strings are written to track 0. If you want define many strings, allocate track buffers previously with #alloc or others. Refer to manuals for control strings.

Navigation menu