ABS doesn't set the carry bit
Dave Hein
Posts: 6,347
in Propeller 2
On the P2 the ABS instruction doesn't set the carry bit like it does on P1 when the source value is negative. It would be useful if the ABS instruction worked the same on the P2.
Comments
(note: There are a number of other P1<->P2 differences that we *do* know about.)
Seriously? It's 4am there! Do you ever sleep? Or is this like the fairy tale shoemaker... elves take over at night, and each morning the chipmaker wakes up to discover that several new instructions have been implemented.
I've been working on the smart pin circuit. It's hard to believe that when this part is done, the chip is basically done. We will need to test it for a while, though.
Agreed. Now, go to bed! I'd rather you get more rest, take a little longer to finish the pins, and get it right the first time. Fewer bugs up front will save time in the long run!
@Seairth, could you post your unit test program? I'd like to run it under spinsim to see if it catches anything.
https://github.com/Seairth/P2UnitTests
Currently, each instruction is a separate unit test. It's a little tedious to test. At some point, I intend to consolidate these and switch the results output to serial. See the wiki for additional details. (I've also updated ABS to correct the two tests related to your discovery.)
ROR/ROL are the ones that wrap.
Maybe those names would be more appropriate.
Do they include the CY ?
Only as output. The bits rotate within the long.