wfjm / w11

PDP-11/70 CPU core and SoC
https://wfjm.github.io/home/w11/
GNU General Public License v3.0
118 stars 18 forks source link

asm-11 compiles nnn(pc) as nnn #32

Closed wfjm closed 2 years ago

wfjm commented 2 years ago

A mov -14(pc),2(pc) should compile to 016767 174660 174674.
asm-11 generates an output like 016767 174660 174674 as one gets for mov -14 -2.

This bug went undetected because explicit use of indexed mode with pc is very unusual.
It was detected when coding test benches.