These changes fix logical consistency and correctness issues with the instruction definitions as printed in the SH4 manual. The most serious issues were: - div0u/div0s/div1 use `m` as a temporary variable which contradicts the existence of the `m` register number - missing semicolons - inconsistent references to immediate and displacement variable names
8 lines
130 B
Plaintext
8 lines
130 B
Plaintext
0000nnnn00111010
|
|
md ← ZeroExtend1(MD);
|
|
IF (md = 0)
|
|
THROW RESINST;
|
|
sgr ← SignExtend32(SGR);
|
|
op1 ← sgr;
|
|
Rn ← Register(op1);
|