Skip to main content

IAR Embedded Workbench for RH850 3.20.x

__fillMemory8

In this section:
Syntax
__fillMemory8(value, address, zone, length, format)
Parameters
value

An integer that specifies the value.

address

An integer that specifies the memory start address.

zone

A string that specifies the memory zone, see C-SPY memory zones.

length

An integer that specifies how many bytes are affected.

format

A string that specifies the exact fill operation to perform. Choose between:

Copy

value will be copied to the specified memory area.

AND

An AND operation will be performed between value and the existing contents of memory before writing the result to memory.

OR

An OR operation will be performed between value and the existing contents of memory before writing the result to memory.

XOR

An XOR operation will be performed between value and the existing contents of memory before writing the result to memory.

Return value

int 0

For use with

All C-SPY drivers.

Description

Fills a specified memory area with a byte value.

Example
__fillMemory8(0x80, 0x700, "", 0x10, "OR");