sh-dis/sh4/MOV.B R0,@(disp,GBR)
Zack Buhman 4dd67c7204 sh4: fix manual typos for SH2 instructions
These changes fix logical consistency and correctness issues with the
instruction definitions as printed in the 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
2024-04-21 13:16:14 +08:00

7 lines
159 B
Plaintext

11000000dddddddd
gbr ← SignExtend32(GBR);
r0 ← SignExtend32(R0);
disp ← ZeroExtend8(d);
address ← ZeroExtend32(disp + gbr);
WriteMemory8(address, r0);