debugger.Memory.WriteRange


This function writes multiple data to the memory.

[Specification format]

debugger.Memory.WriteRange(address, valuelist, memoryOption = MemoryOption.Byte)

[Argument(s)]

Argument

Description

address

Specify the start address to write.

valuelist

Specify the list of the value to set.

memoryOption

Specify the unit to set.

The units that can be specified are shown below.

Type

Description

MemoryOption.Byte

Byte unit (8 bits) (default)

MemoryOption.HalfWord

Half-word unit (16 bits) [RH850,RX,V850]

MemoryOption.Word

Word unit (RL78,78K: 16 bits, RH850,RX,V850: 32 bits)

[Return value]

If the memory was written to successfully: True

If there was an error when writing to the memory: False

[Detailed description]

-

This function writes, in accord with the setting of memoryOption, the list of values specified by valuelist to the address range starting at the address specified by address.

[Example of use]

>>> mem = [0x10, 0x20, 0x30]
>>>debugger.Memory.WriteRange(0x100, mem, MemoryOption.Byte)
True
>>>debugger.Memory.ReadRange(0x100, 3, MemoryOption.Byte)
0x10 0x20 0x30
>>>debugger.Memory.WriteRange(0x100, mem, MemoryOption.Word)
True
>>>debugger.Memory.ReadRange(0x100, 3, MemoryOption.Word)
0x00000010 0x00000020 0x00000030