As a result of a typing mishit (!) while entering code I found that
w1 = -w1
is accepted by the simulator, and gives the expected 2s Comp result. ie w1=65535, then -w1 = 1.
w1 = -1234 is also accepted.
Can't find this in the docs, and in fact I think I saw somewhere that it was not allowed?
w1 = -w1
is accepted by the simulator, and gives the expected 2s Comp result. ie w1=65535, then -w1 = 1.
w1 = -1234 is also accepted.
Can't find this in the docs, and in fact I think I saw somewhere that it was not allowed?
Last edited: