diff options
author | Kartik Agaram <vc@akkartik.com> | 2020-10-24 22:54:22 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2020-10-24 22:54:22 -0700 |
commit | 62a3c1b48b014e2bb8f7959efb7bd6395e455972 (patch) | |
tree | 5718fb2381484c404112dc162a9a1eebe49dd20d | |
parent | 04064a05c98478ce3985eaabea73619a852907eb (diff) | |
download | mu-62a3c1b48b014e2bb8f7959efb7bd6395e455972.tar.gz |
7093
-rw-r--r-- | 022float.cc | 2 | ||||
-rw-r--r-- | subx_opcodes | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/022float.cc b/022float.cc index 178e86b3..9fc8a9ff 100644 --- a/022float.cc +++ b/022float.cc @@ -482,7 +482,7 @@ float* effective_address_float(uint8_t modrm) { //: compare :(before "End Initialize Op Names") -put_new(Name_0f, "2f", "compare: set SF if x32 < xm32 (comiss)"); +put_new(Name_0f, "2f", "compare: set CF if x32 < xm32 (comiss)"); :(code) void test_compare_x32_with_mem_at_rm32() { diff --git a/subx_opcodes b/subx_opcodes index c536332f..273c2a88 100644 --- a/subx_opcodes +++ b/subx_opcodes @@ -50,7 +50,7 @@ Opcodes currently supported by SubX: 5e: pop top of stack to ESI (pop) 5f: pop top of stack to EDI (pop) 68: push imm32 to stack (push) - 69: multiply rm32 by imm32 and store result in r32 + 69: multiply rm32 by imm32 and store result in r32 (imul) 72: jump disp8 bytes away if lesser (addr, float), if CF is set (jcc/jb/jnae) 73: jump disp8 bytes away if greater or equal (addr, float), if CF is unset (jcc/jae/jnb) 74: jump disp8 bytes away if equal, if ZF is set (jcc/jz/je) @@ -90,7 +90,7 @@ Opcodes currently supported by SubX: f4: halt (hlt) 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 2f: compare: set SF if x32 < xm32 (comiss) + 0f 2f: compare: set CF if x32 < xm32 (comiss) 0f 82: jump disp32 bytes away if lesser (addr, float), if CF is set (jcc/jb/jnae) 0f 83: jump disp32 bytes away if greater or equal (addr, float), if CF is unset (jcc/jae/jnb) 0f 84: jump disp32 bytes away if equal, if ZF is set (jcc/jz/je) |