r8a77850anbg Renesas Electronics Corporation., r8a77850anbg Datasheet - Page 76

no-image

r8a77850anbg

Manufacturer Part Number
r8a77850anbg
Description
Renesas 32-bit Risc Microcomputer Superh? Risc Engine Family
Manufacturer
Renesas Electronics Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
r8a77850anbgV
Manufacturer:
Renesas Electronics America
Quantity:
10 000
3. Instruction Set
Table 3.1
A slot illegal instruction exception may occur when a specific instruction is executed in a delay
slot. For details, see section 5, Exception Handling. The instruction following BF/S or BT/S for
which the branch is not taken is also a delay slot instruction.
(5)
The T bit in SR is used to show the result of a compare operation, and is referenced by a
conditional branch instruction. An example of the use of a conditional branch instruction is shown
below.
ADD
CMP/EQ R1, R0
BT
In an RTE delay slot, the SR bits are referenced as follows. In instruction access, the MD bit is
used before modification, and in data access, the MD bit is accessed after modification. The other
bits—S, T, M, Q, FD, BL, and RB—after modification are used for delay slot instruction
execution. The STC and STC.L SR instructions access all SR bits after modification.
(6)
An 8-bit constant value can be specified by the instruction code and an immediate value. 16-bit
and 32-bit constant values can be defined as literal constant values in memory, and can be
referenced by a PC-relative load instruction.
MOV.W @(disp, PC), Rn
MOV.L
There are no PC-relative load instructions for floating-point operations. However, it is possible to
set 0.0 or 1.0 by using the FLDI0 or FLDI1 instruction on a single-precision floating-point
register.
Rev.1.00 Jan. 10, 2008 Page 46 of 1658
REJ09B0261-0100
TARGET
T Bit
Constant Values
#1, R0
TARGET ; Branches to TARGET if T bit = 1 (R0 = R1)
@(disp, PC), Rn
Execution Order of Delayed Branch Instructions
BRA
ADD
:
:
target-inst
; T bit is not changed by ADD operation
; If R0 = R1, T bit is set to 1
TARGET
Instructions
(Delayed branch instruction)
(Delay slot)
(Branch destination instruction)
BRA
ADD
target-inst
Execution Order

Related parts for r8a77850anbg