10 DEBUggEr
c17 mvb
(copy area, in bytes)
c17 mvh
(copy area, in 16 bits)
c17 mvw
(copy area, in 32 bits)
Operation
Copies the content of a specified memory area to another area in units of bytes.
c17 mvb
Copies the content of a specified memory area to another area in units of 16 bits.
c17 mvh
Copies the content of a specified memory area to another area in units of 31 bits.
c17 mvw
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
n Example 1
(gdb) x /16b 0
0x0:
0x00
0x01
0x8:
0x08
0x09
(gdb) c17 mvb 0x0 0x7 0x8
Start address = 0x0, End address = 0x7, Destination address = 0x8 .....done
(gdb) x /16b 0
0x0:
0x00
0x01
0x8:
0x00
0x01
The content of a memory area specified by addresses 0x0 to 0x7 is copied to an area beginning with address
0x8.
n 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.
• If a specified memory section at the source contains an unused area, the data in that area is handled as 0xf0
when copied.
• If a memory section at the destination contains an unused area, data is only copied to the effective area
(excluding the unused area).
10-70
0x02
0x03
0x04
0x05
0x0a
0x0b
0x0c
0x0d
0x02
0x03
0x04
0x05
0x02
0x03
0x04
0x05
0x06
0x07
0x0e
0x0f
0x06
0x07
0x06
0x07
EPSOn
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
[ICD Mini / SIM]
S5U1C17001C ManUal
Need help?
Do you have a question about the S5U1C17001C and is the answer not in the manual?
Questions and answers