diff options
Diffstat (limited to 'subx/034compute_segment_address.cc')
-rw-r--r-- | subx/034compute_segment_address.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/subx/034compute_segment_address.cc b/subx/034compute_segment_address.cc index cf5b789d..b6c191e4 100644 --- a/subx/034compute_segment_address.cc +++ b/subx/034compute_segment_address.cc @@ -119,6 +119,8 @@ uint32_t num_bytes(const line& inst) { int size_of(const word& w) { if (has_operand_metadata(w, "disp32") || has_operand_metadata(w, "imm32")) return 4; + else if (has_operand_metadata(w, "disp16")) + return 2; // End size_of(word w) Special-cases else return 1; |