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/010---vm.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/010---vm.cc')
-rw-r--r-- | subx/010---vm.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/subx/010---vm.cc b/subx/010---vm.cc index cae54aec..41d98b82 100644 --- a/subx/010---vm.cc +++ b/subx/010---vm.cc @@ -373,7 +373,7 @@ map</*op*/string, string> name_f3_0f; init_op_names(); :(code) void init_op_names() { - put(name, "f4", "halt"); + put(name, "f4", "halt (hlt)"); // End Initialize Op Names(name) } @@ -390,7 +390,8 @@ if (key == "opcodes") { cerr << " f3 0f " << p->first << ": " << p->second << '\n'; cerr << "Run `subx help instructions` for details on words like 'r32' and 'disp8'.\n" "For complete details on these instructions, consult the IA-32 manual (volume 2).\n" - "There's various versions of it online, such as https://c9x.me/x86.\n"; + "There's various versions of it online, such as https://c9x.me/x86.\n" + "The mnemonics in brackets will help you locate each instruction.\n"; return 0; } :(before "End Help Contents") |