FROM A TECHNICAL POINT OF VIEW, THE DOCUMENTATION FOR THIS INSTRUCTION IS WRONG.
[ documentation ]
Add Binary (ADDB)
Add Binary is a 16 bit instruction that adds the
unsigned 2’s complement binary value in the
lower 16 bits of the accumulator with an unsigned
2’s complement binary value (Aaaa), which is
either a V memory location or a 16-bit constant.
The result can be up to 32 bits (unsigned 2’s
complement) and resides in the accumulator.
[ Why I say it is wrong ]
If the accumulator contains 0037FFFF and I add 1 to it, as the documentation is written, I should get 10000 because it adds the lower 16 bits of the accumulator FFFF with 1 and gives the 32 bit result 10000.
However, the instruction actually adds the 32 bit value in the accumulator with the 16 bit argument, and gives a 32 bit result. So 0037FFFF + 0001 = 00380000
Not sure if this comment belongs in this forum, but since the wrong documentation also comes with the online help, I figured it was ok to place my comment here.
Keith