about summary refs log tree commit diff stats
path: root/subx/031check_operands.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-10-14 00:00:39 -0700
committerKartik Agaram <vc@akkartik.com>2018-10-14 00:00:39 -0700
commit0f851e48aa3e89648dfd39f706c36ba3c6964da8 (patch)
tree039c3c25206cdb5ca8be9d56fce7d7e561cc1241 /subx/031check_operands.cc
parent06d9b1a5417dedf3fe256fcccbae852e4bdd125c (diff)
downloadmu-0f851e48aa3e89648dfd39f706c36ba3c6964da8.tar.gz
4695
Diffstat (limited to 'subx/031check_operands.cc')
-rw-r--r--subx/031check_operands.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/subx/031check_operands.cc b/subx/031check_operands.cc
index e9c076ce..be50d57f 100644
--- a/subx/031check_operands.cc
+++ b/subx/031check_operands.cc
@@ -274,8 +274,8 @@ void compare_bitvector(const line& inst, uint8_t expected, const word& op) {
 
 string maybe_name(const word& op) {
   if (!is_hex_byte(op)) return "";
-  if (!contains_key(name, op.data)) return "";
-  return " ("+get(name, op.data)+')';
+  if (!contains_key(Name, op.data)) return "";
+  return " ("+get(Name, op.data)+')';
 }
 
 uint32_t compute_operand_bitvector(const line& inst) {
@@ -385,12 +385,12 @@ void compare_bitvector_modrm(const line& inst, uint8_t expected, const word& op)
 
 void check_operand_metadata_present(const line& inst, const string& type, const word& op) {
   if (!has_operand_metadata(inst, type))
-    raise << "'" << to_string(inst) << "' (" << get(name, op.data) << "): missing " << type << " operand\n" << end();
+    raise << "'" << to_string(inst) << "' (" << get(Name, op.data) << "): missing " << type << " operand\n" << end();
 }
 
 void check_operand_metadata_absent(const line& inst, const string& type, const word& op, const string& msg) {
   if (has_operand_metadata(inst, type))
-    raise << "'" << to_string(inst) << "' (" << get(name, op.data) << "): unexpected " << type << " operand (" << msg << ")\n" << end();
+    raise << "'" << to_string(inst) << "' (" << get(Name, op.data) << "): unexpected " << type << " operand (" << msg << ")\n" << end();
 }
 
 :(scenarios transform)
@@ -459,7 +459,7 @@ void check_operands_0f(const line& inst) {
     return;
   }
   word op = preprocess_op(inst.words.at(1));
-  if (!contains_key(name_0f, op.data)) {
+  if (!contains_key(Name_0f, op.data)) {
     raise << "unknown 2-byte opcode '0f " << op.data << "'\n" << end();
     return;
   }
@@ -515,9 +515,9 @@ void compare_bitvector_0f(const line& inst, uint8_t expected, const word& op) {
     if ((bitvector & 0x1) == (expected & 0x1)) continue;  // all good with this operand
     const string& optype = Operand_type_name.at(i);
     if ((bitvector & 0x1) > (expected & 0x1))
-      raise << "'" << to_string(inst) << "' (" << get(name_0f, op.data) << "): unexpected " << optype << " operand\n" << end();
+      raise << "'" << to_string(inst) << "' (" << get(Name_0f, op.data) << "): unexpected " << optype << " operand\n" << end();
     else
-      raise << "'" << to_string(inst) << "' (" << get(name_0f, op.data) << "): missing " << optype << " operand\n" << end();
+      raise << "'" << to_string(inst) << "' (" << get(Name_0f, op.data) << "): missing " << optype << " operand\n" << end();
     // continue giving all errors for a single instruction
   }
   // ignore settings in any unused bits