diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2018-01-24 22:43:05 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2018-01-24 22:43:05 -0800 |
commit | 0c6c7ff7142cb10532da21fb423f4d04efecf6c2 (patch) | |
tree | 57d38615b0c42198c77314c7c24edfd306123e08 /subx/014index_addressing.cc | |
parent | 9c1d07baecfa8ca479e8770416856c0e8f07c9dc (diff) | |
download | mu-0c6c7ff7142cb10532da21fb423f4d04efecf6c2.tar.gz |
4195
Diffstat (limited to 'subx/014index_addressing.cc')
-rw-r--r-- | subx/014index_addressing.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/subx/014index_addressing.cc b/subx/014index_addressing.cc index 9e432863..37a4b9be 100644 --- a/subx/014index_addressing.cc +++ b/subx/014index_addressing.cc @@ -14,12 +14,9 @@ +run: storing 0x00000011 :(before "End Mod 0 Special-cases") -case 4: { // exception: mod 0b00 rm 0b100 => incoming SIB (scale-index-base) byte - uint32_t addr = effective_address_from_sib(mod); - if (addr == 0) break; - result = reinterpret_cast<int32_t*>(&Mem.at(addr)); +case 4: // exception: mod 0b00 rm 0b100 => incoming SIB (scale-index-base) byte + addr = effective_address_from_sib(mod); break; -} :(code) uint32_t effective_address_from_sib(uint8_t mod) { uint8_t sib = next(); |