diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-10-24 00:01:00 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-10-24 00:01:00 -0700 |
commit | b6fdd2e4e5d5267b21c90914c09b86b5413d238b (patch) | |
tree | 8868a17d02ae153145a102e61b101bf0c93845c1 /subx/021byte_addressing.cc | |
parent | 92d8ef6c3b401e16da6e6389819f3d6f41602ba8 (diff) | |
download | mu-b6fdd2e4e5d5267b21c90914c09b86b5413d238b.tar.gz |
4717
Diffstat (limited to 'subx/021byte_addressing.cc')
-rw-r--r-- | subx/021byte_addressing.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/021byte_addressing.cc b/subx/021byte_addressing.cc index 0a3b77d3..cffc4050 100644 --- a/subx/021byte_addressing.cc +++ b/subx/021byte_addressing.cc @@ -50,7 +50,7 @@ put_new(Name, "88", "copy r8 to r8/m8-at-r32"); == 0x2000 f0 cc bb aa # 0xf0 with more data in following bytes +run: copy BL to r8/m8-at-r32 -+run: effective address is 0x2000 (EAX) ++run: effective address is 0x00002000 (EAX) +run: storing 0xab % CHECK_EQ(0xaabbccab, read_mem_u32(0x2000)); @@ -82,7 +82,7 @@ put_new(Name, "8a", "copy r8/m8-at-r32 to r8"); == 0x2000 # data segment ab ff ff ff # 0xab with more data in following bytes +run: copy r8/m8-at-r32 to BL -+run: effective address is 0x2000 (EAX) ++run: effective address is 0x00002000 (EAX) +run: storing 0xab # remaining bytes of EBX are *not* cleared +run: EBX now contains 0xaabbccab |