about summary refs log tree commit diff stats
path: root/subx/034compute_segment_address.cc
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-09-12 21:21:31 -0700
committerKartik Agaram <vc@akkartik.com>2018-09-12 21:27:04 -0700
commitf75c7021d5d406470f04b1ef96e1ec910ee736b8 (patch)
tree1e3bc48c2585c7992e0122f43fec7ea92bdffa88 /subx/034compute_segment_address.cc
parentcac416f42312001fa46b6ebebb94010f57793b9c (diff)
downloadmu-f75c7021d5d406470f04b1ef96e1ec910ee736b8.tar.gz
4544
Attempt #3 at fixing CI.
In the process the feature gets a lot less half-baked.

Ridiculously misleading that we had `has_metadata()` was special-cased
to one specific transform. I suck.
Diffstat (limited to 'subx/034compute_segment_address.cc')
-rw-r--r--subx/034compute_segment_address.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/034compute_segment_address.cc b/subx/034compute_segment_address.cc
index 4a661742..c4645fac 100644
--- a/subx/034compute_segment_address.cc
+++ b/subx/034compute_segment_address.cc
@@ -46,7 +46,7 @@ uint32_t num_bytes(const line& inst) {
   uint32_t sum = 0;
   for (int i = 0;  i < SIZE(inst.words);  ++i) {
     const word& curr = inst.words.at(i);
-    if (has_metadata(curr, "disp32") || has_metadata(curr, "imm32"))  // only multi-byte operands
+    if (has_operand_metadata(curr, "disp32") || has_operand_metadata(curr, "imm32"))  // only multi-byte operands
       sum += 4;
     else
       sum++;