User manual

Table Of Contents
DEBUG MONITOR COMMANDS
M68CPU32BUG/D REV 1 3-16
DU Dump S-Records DU
3.9 DUMP S-RECORDS
DU [<port><del>]<range><del>[<text><del>][<addr>][<offset>] [;B|W|L]
The DU command outputs data from memory in the form of Motorola S-records to a port
specified by the user. If <port> is not specified then the S-records are sent to the I/O port (port 0).
For S-record information see Appendix A.
The option field is only allowed when <range> is specified using a count. In this case the B, W,
or L defines the size of data to which the count is referring. For example, a count of four with an
option of L would mean to move four longwords (or 16 bytes) to the new location. An error
results if an option field is specified without a count in the range.
Use the optional <text> field for incorporating text into the S0 header record of the block of
records that is to be dumped.
To use the optional <addr> field, enter an entry address for code contained in the block of
records. This address is incorporated into the address field of the block’s termination record. If no
entry address is entered then the address field of the termination record will contain the
beginning <range> address. The termination record is an S7, S8, or S9 record and depends upon
the entered address.
An optional offset may also be specified by the user in the <offset> field. The offset value is
added to the addresses of the memory locations being dumped. This generates the address which
is written to the address field of the S-records, creating an S-record file which is loaded back into
memory at a different location than that from which it was dumped. The default offset is zero.
NOTE
If an offset is specified but no entry address is specified then two
commas (indicating a missing field) must precede the offset to
keep it from being interpreted as an entry address.
EXAMPLES Dump memory from $8000 to $802F to port 1.
CPU32Bug>DU 1 8000 802F<CR>
Effective address: 00008000
Effective address: 0000802F
CPU32Bug>
DEBUG MONITOR COMMANDS
M68CPU32BUG/D REV 1 3-17
DU Dump S-Records DU
Dump 10 bytes of memory beginning at $3000 to terminal screen (port 0).
CPU32Bug>DU 3000:&10;B<CR>
Effective address: 00003000
Effective count : &10
S0003000FC
S10D3000000000040008000C00109A
S9030000FC
CPU32Bug>
Dump memory from $4000 to $402F to host (port 1). Specify a file name of ’TEST’ in the S0
header record and specify an entry point of $400A.
CPU32Bug>DU 1 4000 402F ’TEST’ 400A<CR>
Effective address: 00004000
Effective address: 0000402F
CPU32Bug>
The following example illustrates the procedure for uploading S-records to a host computer, in
this case an IBM-PC or compatible running MS-DOS with the ProComm terminal emulation
utility. Assume memory from $4000 to $4007 is initialized as follows:
CPU32Bug>MD 4000:4;DI<CR>
00004000 7001 MOVEQ.L #$1,D0
00004002 D089 ADD.L A1,D0
00004004 4A00 TST.B D0
00004006 4E75 RTS
CPU32Bug>
Enter the following command to dump S-records from memory locations $4000-$4007 with a
start address of $4000, a title of ’TEST.MX’, and an offset of $65000000. Before entering the
<CR> to send the DU command to CPU32Bug, enter the ProComm command <ALT-F1> keys
to open a log file. Enter the filename as TEST.MX. Then enter the carriage return, <CR> to
complete the DU command entry. The DU command output is sent to the screen and ProComm
copies it into the file TEST.MX.
CPU32Bug>DU 4000 4007 ’TEST.MX’ 4000 65000000<ALT-F1><CR>
Effective address: 00004000
Effective address: 00004007
S00A0000544553542E4D58E2
S30D650040007001D089A004E7576
S7056500400055
CPU32Bug>
Fr
eescale S
emiconduct
or
, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...