diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-10-13 23:41:03 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-10-13 23:50:10 -0700 |
commit | dc559a00c7592469e716a2baee963987fb34d4a9 (patch) | |
tree | fa67760d2da11104d81bef71567a1bd3b6f7b760 /subx/018jump_disp16.cc | |
parent | 116e7730d7bcc79cfbb76aa24de142955fb4f281 (diff) | |
download | mu-dc559a00c7592469e716a2baee963987fb34d4a9.tar.gz |
4693
Add the standard mnemonic for each opcode. We aren't ever going to have complete docs of the subset of the x86 ISA we support, so we need to help readers cross-correlate with the complete docs.
Diffstat (limited to 'subx/018jump_disp16.cc')
-rw-r--r-- | subx/018jump_disp16.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/subx/018jump_disp16.cc b/subx/018jump_disp16.cc index 7adb2321..b09c26b5 100644 --- a/subx/018jump_disp16.cc +++ b/subx/018jump_disp16.cc @@ -3,7 +3,7 @@ //:: jump :(before "End Initialize Op Names(name)") -put(name, "e9", "jump disp16 bytes away"); +put(name, "e9", "jump disp16 bytes away (jmp)"); :(scenario jump_rel16) == 0x1 @@ -33,7 +33,7 @@ int16_t imm16() { //:: jump if equal/zero :(before "End Initialize Op Names(name)") -put(name_0f, "84", "jump disp16 bytes away if ZF is set"); +put(name_0f, "84", "jump disp16 bytes away if equal, if ZF is set. (jcc/jz/je)"); :(scenario je_rel16_success) % ZF = true; @@ -72,7 +72,7 @@ case 0x84: { // jump rel16 if ZF //:: jump if not equal/not zero :(before "End Initialize Op Names(name)") -put(name_0f, "85", "jump disp16 bytes away if ZF is not set"); +put(name_0f, "85", "jump disp16 bytes away if not equal, if ZF is not set. (jcc/jnz/jne)"); :(scenario jne_rel16_success) % ZF = false; @@ -111,7 +111,7 @@ case 0x85: { // jump rel16 unless ZF //:: jump if greater :(before "End Initialize Op Names(name)") -put(name_0f, "8f", "jump disp16 bytes away if greater (ZF is unset, SF == OF)"); +put(name_0f, "8f", "jump disp16 bytes away if greater, if ZF is unset and SF == OF. (jcc/jg/jnle)"); :(scenario jg_rel16_success) % ZF = false; @@ -154,7 +154,7 @@ case 0x8f: { // jump rel16 if !SF and !ZF //:: jump if greater or equal :(before "End Initialize Op Names(name)") -put(name_0f, "8d", "jump disp16 bytes away if greater or equal (SF == OF)"); +put(name_0f, "8d", "jump disp16 bytes away if greater or equal, if SF == OF. (jcc/jge/jnl)"); :(scenario jge_rel16_success) % SF = false; @@ -195,7 +195,7 @@ case 0x8d: { // jump rel16 if !SF //:: jump if lesser :(before "End Initialize Op Names(name)") -put(name_0f, "8c", "jump disp16 bytes away if lesser (SF != OF)"); +put(name_0f, "8c", "jump disp16 bytes away if lesser, if SF != OF. (jcc/jl/jnge)"); :(scenario jl_rel16_success) % ZF = false; @@ -238,7 +238,7 @@ case 0x8c: { // jump rel16 if SF and !ZF //:: jump if lesser or equal :(before "End Initialize Op Names(name)") -put(name_0f, "8e", "jump disp16 bytes away if lesser or equal (ZF is set or SF != OF)"); +put(name_0f, "8e", "jump disp16 bytes away if lesser or equal, if ZF is set or SF != OF. (jcc/jle/jng)"); :(scenario jle_rel16_equal) % ZF = true; |