Anthony Nixon
2018-11-07 08:11:08 UTC
Hi all,
The DAW instruction for 18F series states in the data sheet...
If [W<3:0> > 9] or [DC = 1] then
(W<3:0>) + 6 ? W<3:0>;
else
(W<3:0>) ? W<3:0>;
If [W<7:4> + DC > 9] or [C = 1] then
(W<7:4>) + 6 + DC ? W<7:4> ; ???????????
else
(W<7:4>) + DC ? W<7:4>
After simulating with MPLAB X IDE v5.05, it appears that the
questioned line is not correct.
On simulation, it appears to be...
(W<7:4>) + 6 ? W<7:4> ;
ie It doesn't actually add the DC bit, which seems correct.
Anyone have experience here. The manual or the SIM could be wrong.
cheers
Tony
The DAW instruction for 18F series states in the data sheet...
If [W<3:0> > 9] or [DC = 1] then
(W<3:0>) + 6 ? W<3:0>;
else
(W<3:0>) ? W<3:0>;
If [W<7:4> + DC > 9] or [C = 1] then
(W<7:4>) + 6 + DC ? W<7:4> ; ???????????
else
(W<7:4>) + DC ? W<7:4>
After simulating with MPLAB X IDE v5.05, it appears that the
questioned line is not correct.
On simulation, it appears to be...
(W<7:4>) + 6 ? W<7:4> ;
ie It doesn't actually add the DC bit, which seems correct.
Anyone have experience here. The manual or the SIM could be wrong.
cheers
Tony
--
http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive
View/change your membership options at
http://mailman.mit.edu/mailman/listinfo/piclist
http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive
View/change your membership options at
http://mailman.mit.edu/mailman/listinfo/piclist