MICROPROCESSOR AND MICROCONTROLLER

ASSEMBLY LANGUAGE PROGRAMMING

ARCHITECTURE OF 8085

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Which type of addressing is being used by the code statement below?MOV R5, 120
A
Immediate
B
Direct
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -In the register addressing mode the source or destination data should be present in a register (R0 to R7). These are some examples of RegisterAddressing Mode. MOVA, R5; MOVR2, #45H; MOVR0, A; In 8051, there is no instruction like MOVR5, R7.

Detailed explanation-2: -Direct Addressing; Direct addressing with a MOV instruction transfers data between a memory location, located within the data segment, and the AL (8-bit), AX (16-bit), or EAX (32-bit) register.

Detailed explanation-3: -Immediate addressing mode: In this type of addressing, immediate data is a part of instruction, and appears in the form of successive byte or bytes. Example: MOV AX, 0005H. In the above example, 0005H is the immediate data.

Detailed explanation-4: -The instruction, MOV AX, 1234H is an example ofa)register addressing modeb)direct addressing modec)immediate addressing moded)based indexed addressing modeCorrect answer is option ā€˜Cā€™.

There is 1 question to complete.