Memory Manipulation Commands; C17 Fb (Fill Area, In Bytes); C17 Fh (Fill Area, In 16 Bits); C17 Fw (Fill Area, In 32 Bits)[Icd Mini / Sim] - Epson S5U1C17001C Manual

Cmos 16-bit single chip microcomputer, c compiler package for s1c17 family
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

10.7.3 Memory Manipulation Commands

c17 fb
(fill area, in bytes)
c17 fh
(fill area, in 16 bits)
c17 fw
(fill area, in 32 bits)
Operation
Rewrites specified memory area with specified byte data.
c17 fb
Rewrites specified memory area with specified 16-bit data.
c17 fh
Rewrites specified memory area with specified 32-bit data.
c17 fw
Format
c17 fb StartAddr EndAddr Data
c17 fh StartAddr EndAddr Data
c17 fw StartAddr EndAddr Data
StartAddr: Start address of area to be filled (decimal, hexadecimal, or symbol)
EndAddr:
End address of the area to be filled (decimal, hexadecimal, or symbol)
Data:
The data to write (decimal or hexadecimal)
Conditions: 0 ≤ StartAddr ≤ EndAddr ≤ 0xffffff, 0 ≤ Data ≤ 0xff (c17 fb), 0 ≤ Data ≤ 0xffff (c17 fh),
0 ≤ Data ≤ 0xffffffff (c17 fw)
Usage example
n Example 1
(gdb) c17 fb 0x0 0xf 0x1
Start address = 0x0, End address = 0xf, Fill data = 0x1 .....done
(gdb) x /16b 0x0
0x0: 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
0x8: 0x01 0x01 0x01 0x01 0x01 0x01 0x01 0x01
The entire memory area from address 0x0 to address 0xf is rewritten with byte data 0x01.
n Example 2
(gdb) c17 fh 0x0 0xf 0x1
Start address = 0x0, End address = 0xe, Fill data = 0x1 .....done
(gdb) x /8h 0x0
0x0: 0x0001 0x0001 0x0001 0x0001 0x0001 0x0001 0x0001 0x0001
The entire memory area from address 0x0 to address 0xf is rewritten with 16-bit data 0x0001. (This applies to
when using little endian.)
n Example 3
(gdb) c17 fw 0x0 0xf 0x1
Start address = 0x0, End address = 0xc, Fill data = 0x1 .....done
(gdb) x /4w 0x0
0x0: 0x00000001 0x00000001 0x00000001 0x00000001
The entire memory area from address 0x0 to address 0xf is rewritten with 32-bit data 0x00000001. (This
applies to when using little endian.)
S5U1C17001C ManUal
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
(memory dump command)
(memory dump command)
(memory dump command)
EPSOn
10 DEBUggEr
[ICD Mini / SIM]
10
Debugger
10-65

Advertisement

Table of Contents
loading

Table of Contents