diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-26 22:32:57 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-26 22:32:57 -0700 |
commit | 365f762f8ffe2596b538aa9da711b36806126899 (patch) | |
tree | 2059f4499e4abbbad6b9309a5c9b9ba037b84979 /subx/025non_code_segment.cc | |
parent | b7655c98122d8ca99815dc1a0725756d3e678c95 (diff) | |
download | mu-365f762f8ffe2596b538aa9da711b36806126899.tar.gz |
4431 - operate exclusively in hex
Was confusing having numbers without an explicit base sometimes be hex and sometimes not, based on their metadata. By convention I don't bother with the '0x' for instructions, or for single-digit numbers that are equal to their decimal representation. But I could and it would still work.
Diffstat (limited to 'subx/025non_code_segment.cc')
-rw-r--r-- | subx/025non_code_segment.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subx/025non_code_segment.cc b/subx/025non_code_segment.cc index bf21d253..ba713cca 100644 --- a/subx/025non_code_segment.cc +++ b/subx/025non_code_segment.cc @@ -3,7 +3,7 @@ :(scenario operand_metadata_outside_code_segment) % Hide_errors = true; == 0x1 # code segment -cd 128/imm8 +cd 0x80/imm8 == 0x1000 # data segment cd 12/imm8 +error: 12/imm8: metadata imm8 is only allowed in the (first) code segment |