P1 PASM signed versus unsigned question
Learning P1 PASM. Starting to get the hang of it. Ran into something that is confusing to me. Signed versus Unsigned.
First is my understanding of signed versus unsigned correct (see below summary) for a long PASM?
HEX DEC BIN
$FF_FF_FF_FF ---> -1 --> % 1111_1111_1111_1111_1111_1111_1111_1111
$80_00_00_01 ---> -2,147,483,647 --> % 1000_0000_0000_0000_0000_0000_0000_0001
$80_00_00_00 ---> 2,147,483,648 --> % 1000_0000_0000_0000_0000_0000_0000_0000
$00_00_00_00 ---> -1 --> % 0000_0000_0000_0000_0000_0000_0000_0000
$FF_FF_FF_FF ---> 4,294,967,295 --> % 1111_1111_1111_1111_1111_1111_1111_1111
$00_00_00_00 ---> 0 --> % 0000_0000_0000_0000_0000_0000_0000_0000
Second, I get confused, if I was keeping track of decimal values throughout my PASM code, I would not want to mix match signed and unsigned? For example, ADDABS is an instruction. If my destination was a signed value, does this change it to an unsigned value?
So I should be cautious and know that this happens based on the instruction being used? And not mix up signed and unsigned values? Thanks