ASSEMBLY LANGUAGE PROGRAMMING
ARCHITECTURE OF 8085
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Copy contents of register 1 into register 2
|
|
Copy contents of register 2 into register 1
|
|
Either A or B
|
|
None of the above
|
Detailed explanation-1: -r1 and r2 are the source registers containing the input operands, r0 is the destination register where the result is stored. The destination register can be the same as one of the source registers, i.e. ADD r0, r0, r1 is legal and means add the values in r0 and r1 together and place the result in r0.
Detailed explanation-2: -In 8085 Instruction set, MOV is a mnemonic, which stands for “MOVe”. In this instruction 8-bit data value in register r2 will be moved to the 8-bit register r1.
Detailed explanation-3: -ADD: This instruction adds 2 values (from 2 registers or from a register and an immediate value) and puts them into a register. Similar format is used for SUB, MULT, DIV, MOD. For eg. “ADD R1 R2 R3; ‘’ will move the value R2+R3 into R1.