HARDWARE ManualSCU User's Manual
BackForward
SCU User's Manual / Chapter 4 DSP Control

Arithmetic instructions

Y-Bus control command



List | ▲ Back | Next ▼ | Assembler

NOP

Operation content
The Y-Bus command is unprocessed.

Descriptive formula
label: NOP

Instruction code
31 30 19 18 17 0
0 0 0 0 0

flag
It doesn't change.

remarks
none.


List | ▲ Back | Next ▼ | Assembler

MOV [s], Y

Operation content
Data is transferred from the data RAM at the address indicated by [CTx (x = 0 to 3)] to [RY].

Descriptive formula
label: MOV [Source RAM], Y
Source RAM = M0 to M3, MC0 to MC3

Instruction code
31 30 19 18 17 16 15 14 0
0 0 1 0 0 x x x
Bit data Addition mode choice
bit16 bit15 bit14
0 0 0 DATA RAM 0 → [RY]
0 0 1 DATA RAM1 → [RY]
0 1 0 DATA RAM2 → [RY]
0 1 1 DATA RAM3 → [RY]
1 0 0 DATA RAM0 → [RY], CT0 ++
1 0 1 DATA RAM1 → [RY], CT1 ++
1 1 0 DATA RAM2 → [RY], CT2 ++
1 1 1 DATA RAM3 → [RY], CT3 ++

flag
RY; It will be the data selected in the selection.
It is incremented only when CTx (x = 0 to 3); b22 = 1. It does not change when b22 = 0.

remarks
[Mx (x = 0 to 3)] specifies DATA RAMx (x0 to 3).
[MCx (x = 0 to 3)] specifies DATA RAMx (x0 to 3), and after transfer, increments [CTx (x = 0 to 3)].


List | ▲ Back | Next ▼ | Assembler

CLR A

Operation content
Clear the values of [ACH] and [ACL] to 0.

Descriptive formula
label: CLR A

Instruction code
31 30 19 18 17 0
0 0 0 0 1

flag
ACH; 0.
ACL; becomes 0.

remarks
none.


List | ▲ Back | Next ▼ | Assembler

MOV ALU, A

Operation content
[ALU] Transfers the value of the upper 16 bits to [ACH], and transfers the value of the lower 32 bits of [ALU] to [ACL].

Descriptive formula
label: MOV ALU, A

Instruction code
31 30 19 18 17 0
0 0 0 1 0

flag
ACH; ALU Higher 16-bit data.
ACL; ALU lower 32bit data.

remarks
none.


List | ▲ Back | Next ▼ | Assembler

MOV [s], A

Operation content
Data is transferred from the data RAM at the address indicated by [CTx (x = 0 to 3)] to [ACL]. Also, the value of [ACH] changes with the sign extension of [ACL].

Descriptive formula
label: MOV [Source RAM], A

Sourse RAM = M0 to M3, MC0 to MC3

Instruction code
31 30 19 18 17 16 15 14 0
0 0 0 1 1 x x x

Bit data Addition mode choice
bit16 bit15 bit14
0 0 0 DATA RAM0 → [ACL]
0 0 1 DATA RAM1 → [ACL]
0 1 0 DATA RAM2 → [ACL]
0 1 1 DATA RAM3 → [ACL]
1 0 0 DATA RAM0 → [ACL], CT0 ++
1 0 1 DATA RAM1 → [ACL], CT1 ++
1 1 0 DATA RAM2 → [ACL], CT2 ++
1 1 1 DATA RAM3 → [ACL], CT3 ++

flag
ACL; Will be the data selected in the choices.
ACH; It changes with the sign extension of [ACL].
It is incremented only when CTx (x = 0 to 3); b16 = 1. It does not change when b16 = 0.

remarks
[Mx (x = 0 to 3)] specifies DATA RAMx (x0 to 3).
[MCx (x = 0 to 3)] specifies DATA RAMx (x0 to 3), and after transfer, increments [CTx (x = 0 to 3)].


BackForward
HARDWARE ManualSCU User's Manual
Copyright SEGA ENTERPRISES, LTD., 1997