5. MOV INSTRUCTION
D S
MOV A, #55H
MOV R0,A
MOV A,#9
In MOV (MOVE) instruction the data is moved from
Source(S) to Destination(D).
# (Pound sign shows immediate value)
6. ADD INSTRUCTION
MOV R0,#25H
MOV A,#25H
ADD R0,A // Error
ADD A,R0
If we want to perform any Arithmetic Operation than we have to use
Accumulator (A) Register. Result will be stored in Destination(D) so,
Accumulator will we at the destination place only otherwise it will give the error.
7. Now you will see three back to back
program and you will understand the
way how to reduce the number of
steps but you will get the same
answer.