PMAC Product Guide M{constant}-> Function : Report current M-variable definition(s) Scope : Global Syntax : M{constant}[..{constant}]-> where {constant} is an integer from 0 to 1023 representing the number of the M-Variable. the optional second {constant} must be at least as great as the first {constant} -- it represents the number of the end of the range. This command causes PMAC to report the definition (address) of the specified M-Variable or range of M- Variables. It does not cause PMAC to report the value of the M-Variables; that is done with the M{constant} command. When I9 is 0 or 2, only the definition itself (e.g. Y:$FFC2,0 ) is returned.
When I9 is 1or 3, the entire definition statement (e.g. M11->Y:$FFC2,0 ) is returned. Examples: M1-> ; Host requests definition Y:$FFC2,8 ; PMAC's response M101..103-> X:$C001,24,S Y:$C003,8,16,S X:$C003,24,S M{constant}->* Function : Self-referenced M-Variable definition Scope : Global Syntax : M{constant}[..{constant}]->* where {constant} is an integer from 0 to 1023 representing the number of the M-variable the optional second {constant} must be at least as great as the first {constant} -- it represents the number of the end of the range. This command causes PMAC to reference the specified M-Variable or range of M-Variables to its own definition word.
To use an M-Variable as a flag, status bit, counter, or other simple variable, there is no need to find an open area of memory, because it is possible to use some of the definition space to hold the value. Define this form of the M-Variable and it can be used the same as a P-variable, except it only takes integer values in the range -1,048,576 to +1,048,575 (-2 20 to +2 20 -1). When the definition is made, the value is set automatically to 0. This command is also useful to erase an existing M-Variable definition. Examples: M100->* M20..39->* M0..1023->* ; This erases all existing M-variable definitions ; It is a good idea to use this before loading new ones 178 Online Commands