I am having difficulties with understanding what's going on in this code:
LD A, -1;
LD B, 130;
ADD A, B;
And what flags are set to 1 after the ADD
instruction.
Basically, I don't know, what value is stored inside the register B
.
I cannot find any information whether 130 in LD B, 130
means "1000 0010" or "0 1000 0010" (so subsequently we've got to get rid of the MSB/LSB - I don't know which one).
As a result, I am not sure what is the final value stored in A
.