Everything

debugger.Memory.Write


This function writes to the memory.

[Specification format]

debugger.Memory.Write(address, value, memoryOption = MemoryOption.Byte)

[Argument(s)]

Argument

Description

address

Specify the address to set.

value

Specify 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 sets the value at the address specified by address, according to memoryOption.

[Example of use]

>>>debugger.Memory.Read(0x100)
0x10
>>>debugger.Memory.Write(0x100, 0xFF)
True
>>>debugger.Memory.Read(0x100)
0xFF
>>>debugger.Memory.Write(0x100, 0xFE, MemoryOption.HalfWord)
False
>>>