Motorola MVME147 Installation And Use Manual page 183

Mpu vmemodule
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents