![](/images/new-backgrounds/1192412/192412225x1.webp)
Using the 177Bug Debugger
Example:
A portion of the listing file of an assembled, relocatable module is shown below:
1 |
|
|
|
|
|
|
2 |
|
|
| * |
|
|
3 |
|
|
| * MOVE STRING SUBROUTINE | ||
4 |
|
|
| * |
|
|
5 | 0 00000000 | 48E78080 | MOVESTR | MOVEM.L | ||
6 | 0 00000004 | 4280 |
|
| CLR.L | D0 |
7 | 0 00000006 | 1018 |
|
| MOVE.B | (A0)+,D0 |
8 | 0 00000008 | 5340 |
|
| SUBQ.W | #1,D0 |
9 | 0 0000000A | 12D8 |
| LOOP | MOVE.B | (A0)+,(A1)+ |
10 | 0 0000000C | 51C8FFFC | MOVS | DBRA | D0,LOOP | |
11 | 0 00000010 | 4CDF0101 |
| MOVEM.L | (A7)+,D0/A0 | |
12 | 0 00000014 | 4E75 |
|
| RTS |
|
13 |
|
|
|
|
|
|
14 |
|
|
|
| END |
|
****** | TOTAL ERRORS |
|
|
| ||
****** | TOTAL WARNINGS |
|
|
|
The above program was loaded at address $0001327C.
The disassembled code is shown next:
177Bug>MD 1327C;DI
0001327C | 48E78080 | MOVEM.L | |
00013280 | 4280 | CLR.L | D0 |
00013282 | 1018 | MOVE.B | (A0)+,D0 |
00013284 | 5340 | SUBQ.W | #1,D0 |
00013286 | 12D8 | MOVE.B | (A0)+,(A1)+ |
00013288 | 51C8FFFC | DBF | D0,$13286 |
0001328C | 4CDF0101 | MOVEM.L | (A7)+,D0/A0 |
00013290 | 4E75 | RTS |
|
177Bug> |
|
|
|
By using one of the offset registers, the disassembled code addresses can be made to match the listing file addresses as follows:
B |