PC or PRINTCODE (Print Mnemonic)

The PC or PRINTCODE command translates code words into their mnemonic equivalents and prints the results. This can be done for a specific sequence of code or for every code segment of a segment dictionary stack.

All display headings are suppressed from remote output but appear in the printer output. The example that follows indicates that part of the output that is suppressed from a remote display.

Syntax

──┬─ PC ────────┬─┬─<segment spec>─┬───────────────────────────────────┤
  └─ PRINTCODE ─┘ └─<stack id>─────┘

<segment spec>

──<simple address>─┬──────────┬─┬──────────────┬─┬──────────────────┬──┤
                   └─ :<PWI> ─┘ └─<until part>─┘ └─ LL <lex level> ─┘

Explanation

PC <segment spec>

Translation of code begins on or before the designated simple address, which is the segment base. Translation of code ceases when both of the following conditions are true:

  • The length specified is achieved.

  • The instruction word is complete.

Refer to “Basic Constructs” for more information about the <simple address>, <simple value>, and <number> constructs.

PC <STACK ID>

Finds and translates every code segment in a specified segment dictionary stack.

PC <simple address>: PWI

Specifies a location relative to the segment base. PWI is a <number> construct. The default value for PWI is 0.

PC <simple address> FOR <simple value>

Specifies the length of code to be translated. If you do not specify a value, DUMPANALYZER uses the default length of three words.

PC <simple address> LL <lex level>

Indicates the running environment level. If you do not specify a lex level, DUMPANALYZER assumes a lex level of 3. If the lex level of the running environment is not 3, you must specify the lex level to ensure proper interpretation of operators that contain address couples, such as NAMC and VALC.

Non-tag-three words are translated, but DUMPANALYZER displays a warning indicating that the word being analyzed is probably not code.

Example

The following shows an example of the output returned by the PC command.

INPUT: PC 14325:124 FOR 3
CODE ANALYSIS:                                     %    NOTE:
              SEGMENT BASE: 14325                  %  These lines
              WORD OFFSET : 00124                  %  appear in printed
              LENGTH      : 00003                  %  output, but not in
              LEX LEVEL   : 3                      %  remotely displayed
                                                   %  output.
PWI:PSI MNEMONICS          HEX CODE                %
------------------------------------------------   %
0125:0  RSNR               9581
0125:2  INSR 46:15         9C2E0F
0125:5  NAMC 00,01BB       41BB  MEMLOCK
0126:1  RDLK               95BA
0126:3  DUPL               B7
0126:4  BRFL 0D08:5        A0AD08