Yes.
$03 is just 3 in hex. You could very well do LD A,3 or LD A,%00000011 or LD A,kUp or LD A,1+2 since they all evaluate to the same thing -- 3.
It's not equivalent. But if A was zero before you did that, INC'ing it twice would increment it to two.
$03 is just 3 in hex. You could very well do LD A,3 or LD A,%00000011 or LD A,kUp or LD A,1+2 since they all evaluate to the same thing -- 3.
calcman wrote:
Also why is ld A,$02 == inc a .. inc a?
It's not equivalent. But if A was zero before you did that, INC'ing it twice would increment it to two.