Motorola M68CPU32BUG User Manual page 22

Debug monitor
Table of Contents

Advertisement

EXAMPLE
1
2
3
4
5
0
00000000
6
0
00000004
7
0
00000006
8
0
00000008
9
0
0000000A
10
0
0000000C
11
0
00000010
12
0
00000014
13
14
****** TOTAL ERRORS 0-
****** TOTAL WARNINGS
The above program was loaded at address 0000427C. The disassembled code is:
CPU32Bug>MD 427C;DI<CR>
0000427C
48E78080
00004280
4280
00004282
1018
00004284
5340
00004286
12D8
00004288
51C8FFFC
0000428C
4CDF0101
00004290
4E75
By using one of the offset registers, the disassembled code address can be made to match the
listing file address as follows:
CPU32Bug>OF R0<CR>
R0 =00000000 00000000? 427C: 16.<CR>
CPU32Bug>MD 0+R0;DI<CR>
00000+R0
48E78080
00004+R0
4280
00006+R0
1018
00008+R0
5340
0000A+R0
12D8
0000C+R0
51C8FFFC
00010+R0
4CDF0101
00014+R0
4E75
CPU32Bug>
For Additional information about the offset registers, see the OF command description.
M68CPU32BUG/D REV 1
A portion of the listing file of a re-locatable module assembled with the
MC68300 Family DOS resident assembler is shown below:
48E78080
4280
1018
5340
12D8
51 C8FFFC
4CDF0101
MOVEM.L
CLR.L
MOVE.B
SUBQ.W
MOVE.B
DBF
MOVEM.L
RTS
MOVEM.L
CLR.L
MOVE.B
SUBQ.W
MOVE.B
DBF
MOVEM.L
RTS
DEBUG MONITOR DESCRIPTION
*
* MOVE STRING SUBROUTINE
*
MOVESTR
MOVEM.L
CLR.L
MOVE.B
SUBQ.W
LOOP
MOVE.B
MOVS
DBRA
MOVEM.L
RTS
END
0-
D0/A0,-(A7)
D0
(A0)+,D0
#1,D0
(A0)+,(A1)+
D0,$4286
(A7)+,D0/Ao
D0/A0,-(A7)
D0
(A0)+,D0
#1,D0
(A0)+,(A1)+
D0,$A+R0
(A7)+,D0/A0
2-6
D0/A0,-(A7)
D0
(A0)+,D0
#1,D0
(A0)+,(A1)+
D0,LOOP
(A7)+,D0/A0

Advertisement

Table of Contents
loading

Table of Contents