Assembler Directives and
.LISTOFF and .LISTON Directives
If .LISTOFF had been used in the above example, the macro invocation DECR, and the directives .CODE, .DATA, .ENTER, and .LEAVE, would not have been expanded in the assembly listing.
line offset | hexcode | label | opcode | operands (comment) | |
1 |
|
|
| .LISTON |
|
2 |
|
|
| .CODE |
|
|
|
|
| .SPACE $TEXT$, | SPNUM=0,SORT=0 |
|
|
|
| .SUBSPA $CODE$, | QUAD=0,ALIGN=8,ACCESS=0x2c |
3 |
|
|
| .PROC |
|
4 |
|
| call_DECR |
| ;proc label |
5 |
|
|
| .CALLINFO | FRAME=0,SAVE_RP |
6 |
|
|
| .ENTER |
|
| 00000000 | (6BC23FD9) |
| STW | |
| 00000004 | (37DE0060) |
| LDO | 0x30(0x1E),0x1E |
7 | 00000008 | (2B600000) |
| ADDIL | |
8 | 0000000C | (683A0000) |
| STW | |
9 |
|
|
| DECR | mark,count; |
|
|
|
|
| macro invocation |
| 00000010 | (2B600000) |
| ADDIL | |
| 00000014 | (48340000) | LAB | LDW | |
| 00000018 | (AE9F3FF5) | ADDIBF,= | ||
|
| ||||
| 0000001C | (08000240) |
| NOP |
|
10 |
|
|
| .LEAVE |
|
| 00000020 | (4BC23F79) |
| LDW | |
| 00000024 | (E840C000) |
| BV | 0(2) |
| 00000028 | (37C03FA1) |
| LDO | |
11 |
|
|
| .PROCEND |
|
12 |
|
|
| .EXPORT | call_DECR,ENTRY |
13 |
|
|
| DATA |
|
|
|
|
| .SPACE $PRIVATE$, SPNUM=1,SORT=16 | |
|
|
|
| .SUBSPA $DATA$, | QUAD=1,ALIGN=8 |
|
|
|
|
| ACCESS=0x1f |
14 |
|
|
| .IMPORT | $global$ |
15 | 40000000 | (00000000) | count | .WORD | 0 |
16 |
|
|
| .LISTOFF |
|
96 | Chapter 4 |