Advanced Embedded Systems Question:
What is the difference between statements.
MOV A, #17H -a
MOV A, 17H -b?

Answer:
☛ Statement a indicates immediate data is copied into the register A.
☛ # in statement a indicates 17 is an immediate data which is moved to the destination.
☛ Here one copies the immediate data and other copies the data present at the specified address.
☛ In statement b the value present in 17H memory location is copied into A register.
☛ Absence of pound sign does not cause any error but required operation fails.
☛ # in statement a indicates 17 is an immediate data which is moved to the destination.
☛ Here one copies the immediate data and other copies the data present at the specified address.
☛ In statement b the value present in 17H memory location is copied into A register.
☛ Absence of pound sign does not cause any error but required operation fails.