M prefix (full-screen mode)

The M prefix command, which you enter through the prefix area of the Source window, adds an operand or operands on that line to the Monitor window.

Read syntax diagramSkip visual syntax diagram
>>-M--+-+---------+----------+--;------------------------------><
      | '-integer-'          |      
      | .-,-------.          |      
      | V         |          |      
      +---integer-+----------+      
      '-integer-- - -integer-'      

integer
Identifies specific operands to be monitored. If you do not specify an integer, Debug Tool monitors all operands. If you enter a single number or the form 1,2,3, Debug Tool monitors the specified operand or operands. If you use the form 1-4, Debug Tool monitors operands 1 through 4.

For programs other than assembler and disassembly, integer identifies the position of a variable on a line, beginning from the left. The first variable on the line is position 1, the second variable on the line is position 2, and this pattern repeats until there are no more variables. If a variable is on the line more than once, only the first instance of the variable is assigned a position number. If no integer is specified, all the variables on the line are added to the Monitor window.

For assembler and disassembly programs, integer identifies operands of the machine instruction. Debug Tool numbers them from left to right with the first operand numbered operand 1, the second operand numbered operand 2, and repeating the pattern until there are no more operands. If you do not specify an integer, Debug Tool adds all operands referenced explicitly or implicitly by the instruction to the Monitor window. If you specify any form of integer, Debug Tool adds only the operands explicitly referenced by the specified operand or operands to the Monitor window.

Usage notes

Example

The following example uses the following lines of code:

...
             293     move 0 to c; move 0 to b; move 0 to IND; move  b  to a;
...
             319     if a + b < b + c
             320        then move ind to c;
             321     end-if;
...

To add the variable c on line 293 to the Monitor window, enter the M1 command in the prefix area of line 293.

The next set of examples use the following lines of assembler source code:
...
200          L    R6,=X'31BA4038'
201          STM  R1,R4,0(R6)
202          TM   X'01',FLAGS
203
...
  • Enter M on line 201. Debug Tool adds the following registers and memory locations to the Monitor window: R1, R2, R3, R4, R6, and the sixteen bytes of storage at location X'31BA4038'.
  • Enter M1-2 on line 201. Debug Tool adds R1 and R4 to the Monitor window.
  • Enter M1 on line 202. Debug Tool displays an error message because the M prefix command cannot access mask and immediate fields.

Refer to the following topics for more information related to the material discussed in this topic.