8 Debugger
c17 mvb
(copy area, in bytes)
c17 mvh
(copy area, in 16 bits)
c17 mvw
(copy area, in 32 bits)
Operation
c17 mvb Copies the content of a specified memory area to another area in units of bytes.
c17 mvh Copies the content of a specified memory area to another area in units of 16 bits.
c17 mvw Copies the content of a specified memory area to another area in units of 32 bits.
Format
c17 mvb SourceStart SourceEnd Destination
c17 mvh SourceStart SourceEnd Destination
c17 mvw SourceStart SourceEnd Destination
SourceStart:Start address of area from which to copy (decimal, hexadecimal, or symbol)
SourceEnd: End address of area from which to copy (decimal, hexadecimal, or symbol)
Destination: Start address of area to which to copy (decimal, hexadecimal, or symbol)
Conditions: 0 ≤ SourceStart ≤ SourceEnd ≤ 0xffffff, 0 ≤ Destination ≤ 0xffffff
Usage example
■Example 1
(gdb) x /16b 0
0x0: 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07
0x8: 0x08 0x09 0x0a 0x0b 0x0c 0x0d 0x0e 0x0f
(gdb) c17 mvb 0x0 0x7 0x8
Start address = 0x0, End address = 0x7, Destination address = 0x8 .....done
(gdb) x /16b 0
0x0: 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07
0x8: 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07
The content of a memory area specified by addresses 0x0 to 0x7 is copied to an area beginning with address 0x8.
■Example 2
(gdb) x /4w 0
0x0 <i>: 0x00000000 0x11111111 0x22222222 0x33333333
(gdb) c17 mvw i i i+4
Start address = 0x0, End address = 0x0, Destination address = 0x4 .....done
(gdb) x /4w 0
0x0 <i>: 0x00000000 0x00000000 0x22222222 0x33333333
The content of long variable i is copied to an area located four bytes after that int variable.
Notes
When the source and destination have different endian formats, the data formats are converted when copied from the source
to the destination.
If the specified address exceeds the 24-bit range, an error is assumed.
In c17 mvh and c17 mvw, addresses are adjusted to boundary addresses conforming to the data size. This is accomplished
by processing the LSB address bit as 0 for c17 mvh and the 2 low-order address bits as 00 for c17 mvw.
If the end address at the source is smaller than its start address, an error is assumed.
When the start address at the destination is smaller than that of the source, data is copied sequentially beginning with the
start address. Conversely, when the start address at the destination is larger than that of the source, data is copied
sequentially beginning with the end address. Therefore, data is always copied even when the specified destination address
exists within the source area.
If the end address at the destination exceeds 0xffffff, data is only copied only up to 0xffffff.
8-16
Seiko Epson Corporation
[ICD Mini / SIM]
S5U1C17001C Manual
(Rev. 1.0)
Need help?
Do you have a question about the S5U1C17001C and is the answer not in the manual?