3-4 Built-in Functions

This section describes the functions embedded in the Renesas C/C++ compiler related to SH-3.

The embedded functions can describe without using assembly language how to access the CPU internal registers or operating instructions without using a language.

This header must be included to use this function.

Embedded functions are expanded inline.

This function makes references and changes to SR. It is also possible to change only the interrupt mask.

This function makes references and changes to VBR.

This function makes references and changes to GBR.

This function accesses the memory at a relative distance from GBR.
This function performs logical operations on the contents of the memory at a relative distance from GBR. It locks the bus to execute.

This function executes CPU instructions.
It also executes SLEEP and MAC instructions.

The purpose of this function is to obtain 64-bit results from 32-bit multiplication.
It can also handle the upper 32 bits. It is used for fixed decimal data on the upper side.

These can only be executed in privileged mode.