Rev. 1.50, 10/04, page 201 of 448
Section 10 Instruction Descriptions
This section describes instructions in alphabetical order using the format shown below.
Instruction Name (Full Name): Instruction Type (Indication of delayed branch instruction
or interrupt-disabling instruction)
Format
Operation
Instruction Code
Cycle
T Bit
Assembler input format;
imm and disp are numbers,
expressions, or symbols
A brief description
of operation
Displayed in order
MSB < LSB
Number of
cycles when
there is no
wait state
The value of
T bit after the
instruction is
executed
Description:
Notes:
Operation:
Examples:
Description of operation
Notes on using the instruction
Operation written in C language
Location counter setting
Word integer data allocation
Longword integer data allocation
String data allocation
2-byte boundary alignment
4-byte boundary alignment
32-byte boundary alignment
16-times repeat expansion
32-times repeat expansion
Count-specification repeat expansion end
Possible Exceptions:
A list of exceptions that may occur when an instruction is executed is shown bellow.
But "Instruction TLB multiple-hit exception", "Instruction TLB miss exception", "Instruction TLB protection
exception", and "Instruction address error" are omitted because these exceptions may occur in all
instructions. As for the overflow/underflow exceptions, the detailed occurrence conditions are also described.
An example is shown using assembler mnemonics, indicating the states before and after execution
of the instruction.
Italics (e.g., .align) indicate an assembler control instruction. The meaning of the assembler control
instructions is given below. For details, refer to the C/C++ Compiler, Assembler, Optimizing linkage
editor User's Manual.
.org
.data.w
.data.1
.sdata
.align 2
.align 4
.align 32
.arepeat 16
.arepeat 32
.aendr
Note: SH Series cross-assembler version 1.0 does not support conditional assembler function
Summary of Contents for SuperH SH-4A
Page 2: ...Rev 1 50 10 04 page ii of xx ...
Page 8: ...Rev 1 50 10 04 page viii of xx ...
Page 116: ...Rev 1 50 10 04 page 96 of 448 ...
Page 178: ...Rev 1 50 10 04 page 158 of 448 ...
Page 206: ...Rev 1 50 10 04 page 186 of 448 ...
Page 231: ...Rev 1 50 10 04 page 211 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 235: ...Rev 1 50 10 04 page 215 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 238: ...Rev 1 50 10 04 page 218 of 448 Possible Exceptions Slot illegal instruction exception ...
Page 408: ...Rev 1 50 10 04 page 388 of 448 Possible Exceptions Inexact Not generated when FPSCR PR 1 ...
Page 446: ...Rev 1 50 10 04 page 426 of 448 ...
Page 468: ...Rev 1 50 10 04 page 448 of 448 ...
Page 471: ......
Page 472: ...SH 4A Software Manual ...