Has Anyone Written PDP-8 .XOR. Code Using the MQ Register (Without the EAE)?
kylevowen at gmail.com
Wed Dec 23 22:28:53 CST 2015
Here's the best I've got, Bob:
TAD ARG1 /~ARG1 & ARG2
MQL /STORE IN MQ
TAD ARG2 /ARG1 & ~ARG2
MQA /MQ OR AC -> AC
/RESULT IS 7777 IN AC
You can also add them and subtract two times the arguments ANDed together,
but I haven't played with that approach (yet). I did test the above code
with a few different values, and it seems to work just fine.
More information about the cctech