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
7 lines
164 B
Plaintext
7 lines
164 B
Plaintext
10000001nnnndddd
|
|
r0 ← SignExtend32(R0);
|
|
disp ← ZeroExtend4(d) << 1;
|
|
op2 ← SignExtend32(Rn);
|
|
address ← ZeroExtend32(disp + op2);
|
|
WriteMemory16(address, r0);
|