diff options
| author | Julian Blake Kongslie | 2022-10-31 19:14:05 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2022-10-31 19:14:05 -0700 |
| commit | 91ed230d8324cded1a5d82cf8f85d9d81af00956 (patch) | |
| tree | 393fad29edee7c13012ec7dd7628e6cfe8c62dc6 /isa/checker.cpp | |
| parent | TAD is 12-bit addition with carry-complements-link, not 13-bit addition (diff) | |
| download | biggolf-91ed230d8324cded1a5d82cf8f85d9d81af00956.tar.xz | |
Only use DF for addresses generated via indirection.
Diffstat (limited to '')
| -rw-r--r-- | isa/checker.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/isa/checker.cpp b/isa/checker.cpp index 770d9d6..6eaa15f 100644 --- a/isa/checker.cpp +++ b/isa/checker.cpp | |||
| @@ -21,7 +21,8 @@ void checker::execute() { | |||
| 21 | addr = (addr + 1) & 07777; | 21 | addr = (addr + 1) & 07777; |
| 22 | mem.store(*inst.init_address, addr); | 22 | mem.store(*inst.init_address, addr); |
| 23 | } | 23 | } |
| 24 | inst.final_address = addr; | 24 | auto df = ctlregs[DATA_INSTRUCTION_FIELD_BUFFER] >> 3; |
| 25 | inst.final_address = (df << 12) | addr; | ||
| 25 | } else { | 26 | } else { |
| 26 | assert(!inst.need_autoinc_store); | 27 | assert(!inst.need_autoinc_store); |
| 27 | } | 28 | } |
