Saturday, April 30, 2011

Microproccessor Viva Questions With Answer.

MICROPROCCESSOR VIVA QUESTIONS WITH ANSWERS





Q1. What is general size of a register?


Ans: 16-bit.


ANSWER
Q2. How many segments are there?


Ans: 16 segments.


ANSWER
Q3. Define the addressing modes of 8086.


Ans: The way in which an operand is specified is called Addressing mode.

ANSWER
Q4. Define different addressing modes.


Ans: : i) Immediate addressing mode
ii) Register addressing mode
iii) Direct data addressing mode
iv) Register-indirect addressing mode
v) Register-relative addressing mode
vi) Base indexed addressing mode
vii) Base relative + indexed addressing .

ANSWER
Q5. How many byte of instruction is used in Direct addressing mode?


Ans: 3 byte instruction.


ANSWER
Q6. How many bytes of instruction is used in displacement addressing?


Ans: 4 byte instruction.


ANSWER
Q7. For the given set of instruction give the mode of operation.
MOV BL, 44H
MOV BX, NUMBER
MOV CX, [BX]
MOV AX, [BX+1000H]
MOV DX, [BX+DI]


Ans: i) Immediate addressing
ii) Displacement addressing
iii) Reg. Indirect addressing
iv) Reg. relative addressing
v) Base indexed addressing.


ANSWER

Q8. How execution time of an instruction can be determined?

Ans: The execution time of an instruction can be determined by multiplying the number of clock cycles needed to execute the instruction by the clock periods.


ANSWER
Q9. Explain the different instructions.


Ans: XLAT: The translate instruction is used for finding out the ports in case of code conversion problems using look-up table technique.
LEA: Stands for Load Effective Address, The load effective address instruction loads the effective address formed by destination operand into the specified source register.
ADC: Add along with carry.
INC: Increment by 1.



ANSWER
Q10. Explain unsigned multiplication byte or Word.


Ans: This instruction multiplies an unsigned byte or word by the contents of AL. The unsigned byte or word may be in any one of the general purpose register or memory location. It can do 8,16-bit multiplications.
Used character is ‘MUL’.


ANSWER
Q11. What is difference between directive and instructions?


Ans:
Directive /Instruction
1. Do not get converted into machine language. /Will get converted into machine language.
2. Hint to assembler to do some task. /Indication to the proccessors.




ANSWER
Q12. Define the meaning of given program words.
DB, DQ, DT, DW, PROC, ENDP


Ans: DB: define byte
DQ: Define quard word.
DT: Resume to byte of memory location .
DW: Reserve two memory location.
PROC: To call a subroutine (Procedure)
ENDP: End the procedure.



ANSWER
Q13. Define EXTRN and PUBLIC.


Ans: The directive EXTRN informs the assembler that the names procedures and labels declared after this directive have already been defined in some other assembly language module. While in the other modules where the name procedure and labels actually appear, they must be declared PUBLIC using PUBLIC directive.


ANSWER
Q14. Give the difference between Procedure and Macros.


Ans:

Procedure Macros
Accessed by CALL & RET instruction during program execution. Accessed during assembly with name given to MACRO when defined.
Machine code for instruction put only once in the memory. Machine code is generated for instruction each time when MACRO is called.
With Procedure less memory is required. With MACROS more memory is required.
Parameters can be passed in registers, memory, or stack. Parameters passed in port of statement which calls MACROS.

ANSWER

No comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...

Search On Flipkart

Facebook Connect