Find the number of bytes each of the following instructions
Find the number of bytes each of the following instructions takes. MOV A, #55H Mov R3, #3 INC R2 ADD A, #0 MOV A, R1 MOV R3, A ADD A, R2
Solution
Please refer below answers and their explanation
Ans : 2 bytes
In this instruction mnemonics is 1 byte and immediate data (operand) given is 1 byte(55H)
Ans : 2 bytes
Refer (a) for explanation
Ans: 1 byte
Here no immediate data is included.The size of the instruction is only size of Mnemonics
Ans : 2 Bytes
Refer (a) for explanation
Ans : 1 Byte
Refer ( c ) for explanation
Ans : 1 Byte
Refer ( c ) for explanation
Ans : 1 Byte
Refer ( c ) for explanation
