diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-12-03 23:26:56 -0800 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-12-03 23:26:56 -0800 |
commit | 5f3b3e7aea4174f13da9b430538564c68257b647 (patch) | |
tree | 64b0ca70a7508aa10a008ad7d996f5d4f38214c8 /subx/opcodes | |
parent | ee73f5eb31e9dd5a185da097bd990ac94c3d282b (diff) | |
download | mu-5f3b3e7aea4174f13da9b430538564c68257b647.tar.gz |
4830
New helper: printing a byte in textual (hex) form. This required adding instructions for bitwise shift operations.
Diffstat (limited to 'subx/opcodes')
-rw-r--r-- | subx/opcodes | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/subx/opcodes b/subx/opcodes index 94d9c5f3..3437f30a 100644 --- a/subx/opcodes +++ b/subx/opcodes @@ -72,9 +72,11 @@ Opcodes currently supported by SubX: bd: copy imm32 to EBP (mov) be: copy imm32 to ESI (mov) bf: copy imm32 to EDI (mov) + c1: shift rm32 by imm8 bits depending on subop (sal/sar/shl/shr) c3: return from most recent unfinished call (ret) c7: copy imm32 to rm32 (mov) cd: software interrupt (int) + d3: shift rm32 by CL bits depending on subop (sal/sar/shl/shr) e8: call disp32 (call) e9: jump disp32 bytes away (jmp) eb: jump disp8 bytes away (jmp) |