Inspect Manual
High-Level Inspect Commands
Inspect Manual—429164-006
6-47
Usage Considerations
Usage Considerations
You can display code from user library routines if you have read access to the code
file.
The ICODE command provides a more powerful mechanism for displaying
program code.
Example
This example illustrates the differences between using the DISPLAY and ICODE
commands to display program code. Note that the ICODE output indicates which
source line numbers correspond to which instructions. In addition, the ICODE
command recognizes where the procedure ends, as opposed to DISPLAY which
displays only the exact amount you specified.
-PROGRAM-DISPLAY #m IN I FOR 40 WORDS
M = ADDS +012 LDI +065 STOR L+001 LDI +146
STOR L+002 LADR L+003 LLS 01 RDP
LDI +011 ORLI 000 LADD LLS 01
LDI +013 MOVB 047 ZERD PUSH 711
XCAL 000 STOR G+145 STD G+154,6 STD L+040,7
LDB L+157,7 LADR G+154,5 LDD G+000,6 NOP
NOP NOP NOP NOP
NOP NOP NOP NOP
NOP NOP NOP NOP
NOP NOP NOP NOP
-PROGRAM-ICODE AT #m FOR 40 STATEMENTS
#9
%000003: ADDS +012
#18
%000004: LDI +065 STOR L+001
#19
%000006: LDI +146 STOR L+002
#20
%000010: LADR L+003 LLS 01 RDP
%000013: LDI +011 ORLI 000 LADD
%000016: LLS 01 LDI +013 MOVB 047
#23
%000021: ZERD PUSH 711 XCAL 000
%000024: STOR G+145 STD G+154,6 STD L+040,7
%000027: LDB L+157,7 LADR G+154,5 LDD G+000,6
** Inspect warning 388 ** Listing ends at procedure end