From a78deb23b503783e2384ddc4e73c72578cf15894 Mon Sep 17 00:00:00 2001 From: Kartik Agaram Date: Sun, 21 Apr 2019 23:35:23 -0700 Subject: 5113 - x86's integer division (idiv) instruction --- subx/opcodes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'subx/opcodes') diff --git a/subx/opcodes b/subx/opcodes index 0eb0792b..2a11df2b 100644 --- a/subx/opcodes +++ b/subx/opcodes @@ -82,7 +82,7 @@ Opcodes currently supported by SubX: e9: jump disp32 bytes away (jmp) eb: jump disp8 bytes away (jmp) f4: halt (hlt) - f7: negate/multiply rm32 (with EAX if necessary) depending on subop (neg/mul) + f7: negate/multiply/divide rm32 (with EAX and EDX if necessary) depending on subop (neg/mul/idiv) ff: increment/decrement/jump/push/call rm32 based on subop (inc/dec/jmp/push/call) 0f 84: jump disp32 bytes away if equal, if ZF is set (jcc/jz/je) 0f 85: jump disp32 bytes away if not equal, if ZF is not set (jcc/jnz/jne) -- cgit 1.4.1-2-gfad0