Japanese
★ HARDWARE Manual ★ SCU User's Manual
▲ Back | Forward ▼
SCU User's Manual/Chapter 4 DSP Control Arithmetic instruction
ALU control command
List | ■ | Next ▼ | Assembler
NOP
- Operation details
- The ALU instruction section will be unprocessed.
- descriptive formula
- label: NOP
- instruction code
31 | | | | | 26 | | |
| | | | | | | |
| | | | | | | |
| | | | | | | 0 |
0 | 0 | 0 | 0 | 0 | 0 | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
-
- flag
- No change.
- remarks
- none.
List | ▲ Back | Next ▼ | Assembler
AND
- Operation details
- Performs the AND of [ACL] and [PL].
- descriptive formula
- label: AND
- instruction code
31 | | | | | 26 | | |
| | | | | | | |
| | | | | | | |
| | | | | | | 0 |
0 | 0 | 0 | 0 | 0 | 1 | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
-
- flag
- S: 1 when the operation result is negative, 0 otherwise.
- Z: 1 when the operation result is 0, otherwise 0.
- C;It will be 0.
- remarks
- none.
List | ▲ Back | Next ▼ | Assembler
OR
- Operation details
- Performs the logical OR of [ACL] and [PL].
- descriptive formula
- label: OR
- instruction code
31 | | | | | 26 | | |
| | | | | | | |
| | | | | | | |
| | | | | | | 0 |
0 | 0 | 0 | 0 | 1 | 0 | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
-
- flag
- S: 1 when the operation result is negative, 0 otherwise.
- Z: 1 when the operation result is 0, otherwise 0.
- C;It will be 0.
- remarks
- none.
List | ▲ Back | Next ▼ | Assembler
XOR
- Operation details
- Take the exclusive sum of [ACL] and [PL].
- descriptive formula
- label: XOR
- instruction code
31 | | | | | 26 | | |
| | | | | | | |
| | | | | | | |
| | | | | | | 0 |
0 | 0 | 0 | 0 | 1 | 1 | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
-
- flag
- S: 1 when the operation result is negative, 0 otherwise.
- Z: 1 when the operation result is 0, otherwise 0.
- C;It will be 0.
- remarks
- none.
List | ▲ Back | Next ▼ | Assembler
ADD
- Operation details
- Add [ACL] and [PL].
- descriptive formula
- label: ADD
- instruction code
31 | | | | | 26 | | |
| | | | | | | |
| | | | | | | |
| | | | | | | 0 |
0 | 0 | 0 | 1 | 0 | 0 | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
-
- flag
- S: 1 when the operation result is negative, 0 otherwise.
- Z: 1 when the operation result is 0, otherwise 0.
- C: It is 1 when a carry occurs in the operation result, and 0 otherwise.
- V; 1 when the operation result is an overflow (over 48 bits); otherwise 0.
- remarks
- none.
List | ▲ Back | Next ▼ | Assembler
SUB
- Operation details
- Subtract [ACL] and [PL].
- descriptive formula
- label: SUB
- instruction code
31 | | | | | 26 | | |
| | | | | | | |
| | | | | | | |
| | | | | | | 0 |
0 | 0 | 0 | 1 | 0 | 1 | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
-
- flag
- S: 1 when the operation result is negative, 0 otherwise.
- Z: 1 when the operation result is 0, otherwise 0.
- C: It is 1 when a carry occurs in the operation result, and 0 otherwise.
- V; 1 when the operation result is an underflow, 0 otherwise.
- remarks
- none.
List | ▲ Back | Next ▼ | Assembler
AD2
- Operation details
- Add [ACH][ACL] and [PH][PL].
- descriptive formula
- label: AD2
- instruction code
31 | | | | | 26 | | |
| | | | | | | |
| | | | | | | |
| | | | | | | 0 |
0 | 0 | 0 | 1 | 1 | 0 | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
-
- flag
- S: 1 when the operation result is negative, 0 otherwise.
- Z: 1 when the operation result is 0, otherwise 0.
- C: It is 1 when a carry occurs in the operation result, and 0 otherwise.
- V; 1 when the operation result overflows (exceeds 48 bits); otherwise 0.
- remarks
- none.
List | ▲ Back | Next ▼ | Assembler
S.R.
- Operation details
- Shift the value of [ACL] to the right by 1 bit and store the value of bit0 in the C flag.
- descriptive formula
- label: SR
- instruction code
31 | | | | | 26 | | |
| | | | | | | |
| | | | | | | |
| | | | | | | 0 |
0 | 0 | 1 | 0 | 0 | 0 | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
-
- flag
- S;When the MSB of the operation result is 1, it becomes 1, and when it is 0, it becomes 0.
- Z: 1 when the operation result is 0, otherwise 0.
- C;When the value of b0 in the input data is 1, it becomes 1, and when it is 0, it becomes 0.
- ACL: Shift 1 bit to the right, the most significant bit (b31) remains unchanged.
- remarks
- none.
List | ▲ Back | Next ▼ | Assembler
RR
- Operation details
- Rotates the value of [ACL] to the right by 1 bit.
- descriptive formula
- label: RR
- instruction code
31 | | | | | 26 | | |
| | | | | | | |
| | | | | | | |
| | | | | | | 0 |
0 | 0 | 1 | 0 | 0 | 1 | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
-
- flag
- S;When the MSB of the operation result is 1, it becomes 1, and when it is 0, it becomes 0.
- Z: 1 when the operation result is 0, otherwise 0.
- C;When the value of b0 in the input data is 1, it becomes 1, and when it is 0, it becomes 0.
- ACL: Shift 1 bit to the right, the least significant bit (b0) moves to the most significant bit (b31).
- remarks
- none.
List | ▲ Back | Next ▼ | Assembler
SL
- Operation details
- Shift the value of [ACL] to the left by 1 bit.
- descriptive formula
- label: SL
- instruction code
31 | | | | | 26 | | |
| | | | | | | |
| | | | | | | |
| | | | | | | 0 |
0 | 0 | 1 | 0 | 1 | 0 | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
-
- flag
- S;When the MSB of the operation result is 1, it becomes 1, and when it is 0, it becomes 0.
- Z: 1 when the operation result is 0, otherwise 0.
- C;When the value of b31 in the input data is 1, it becomes 1, and when it is 0, it becomes 0.
- ACL: Shift 1 bit to the left, and the least significant bit (b0) becomes 0.
- remarks
- none.
List | ▲ Back | Next ▼ | Assembler
R.L.
- Operation details
- Rotates the [ACL] value to the left by 1 bit.
- descriptive formula
- label: RL
- instruction code
31 | | | | | 26 | | |
| | | | | | | |
| | | | | | | |
| | | | | | | 0 |
0 | 0 | 1 | 0 | 1 | 1 | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
-
- flag
- S;When the MSB of the operation result is 1, it becomes 1, and when it is 0, it becomes 0.
- Z: 1 when the operation result is 0, otherwise 0.
- C;When the value of b31 in the input data is 1, it becomes 1, and when it is 0, it becomes 0.
- ACL: Shift 1 bit to the left, the most significant bit (b31) moves to the least significant bit (b0).
- remarks
- none.
List | ▲ Back | Next ▼ | Assembler
RL8
- Operation details
- Rotate the [ACL] value by 8 bits to the left.
- descriptive formula
- label: RL8
- instruction code
31 | | | | | 26 | | |
| | | | | | | |
| | | | | | | |
| | | | | | | 0 |
0 | 0 | 1 | 1 | 1 | 1 | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
− | − | − | − | − | − | − | − |
-
- flag
- S;When the MSB of the operation result is 1, it becomes 1, and when it is 0, it becomes 0.
- Z: 1 when the operation result is 0, otherwise 0.
- C;When the value of b24 in the input data is 1, it becomes 1, and when it is 0, it becomes 0.
- ACL; Rotate left by 8 bits.
- remarks
- none.
▲ Back | Forward ▼
★ HARDWARE Manual ★ SCU User's Manual
Copyright SEGA ENTERPRISES, LTD., 1997