Escolar Documentos
Profissional Documentos
Cultura Documentos
VIVA QUESTIONS
SET-1
1}What is Microprocessor
ans:-It is a program controlled semiconductor device (IC},which fetches,decode and executes
instructions.
2} Explain the function of CPU in Microprocessor
ans:-A microprocessor controls all functions of the CPU, or central processing unit, of a
computer or other digital device. The microprocessor is programmed to give and receive
instructions from other components of the device. The system can control everything from small
devices such as calculators and mobile phones, to large automobiles.
3} Define Compiler
ans:-A compiler is a computer program (or set of programs) that transformssource code written
in a programming language (the source language) into another computer language (the target
language, often having a binary form known as object code). The most common reason for
wanting to transform source code is to create an executable program.
4}Define Intrepreter
ans:- An interpreter may be a program that either :-executes the source code directly; translates
source code into some efficient intermediate representation (code) and immediately executes
this; explicitly executes stored precompiled code[1] made by a compiler which is part of the
interpreter system.
5}Define Assembler
ans:-An assembler is a program that takes basic computer instructions and converts them into a
pattern of bits that the computer's processor can use to perform its basic operations.
6}What is Assembly level language
ans:-An assembly language is a low-level programming language for microprocessors. It
implements a symbolic representation of the binary machine codes and other constants needed to
program a particular CPUarchitecture. This representation is usually defined by the hardware
manufacturer, and is based on mnemonics that symbolize processing steps (instructions),
processor registers, memory locations, and other language features.
7)What are Mnemonics
ans:-mnemonics are instructions or commands to perform a
perticular opration
given by user to microprocessor e.g MOV
MIV
ADD
SUB
IMUL
8)What is a bus
ans:-Information is transferred between units of the microcomputer by collections of conductors called
buses.
There will be one conductor for each bit of information to be passed,
e.g., 16 lines for a 16 bit address bus. There will be address, control, and data buses.
9)Distinguish between Microprocessor & Microcontroller.
ans:-The microprocessor is a digital integrated circuit device that can be programmed with a series of
instructions to perform specified functions on data.
But micro controller is a computer on a chip which has memory,input,ouput on the chip itself.
So,micro processor can perform only few functions but micro controller can perform so many functions.
16-bit microprocessor, 16-bit data bus, Up to 10 MHz, 1 MB RAM, 64K I/O ports,40-pin DIP,56-pin QFP,
44-pin PLCC
is stored in a register
The Microsoft Macro Assembler (MASM) is an x86 assembler for MS-DOS and Microsoft
Windows. It supports a wide variety of macro facilities and structured programming idioms,
including high-level functions for looping and procedures.
26. What are different types of instructions. Give examples
ans:-There are different instruction types:1)Data Movement:-examples:-{Load,Move,Push,Pop} (2)Logical Operations:-ex:-{And,Or,Xor,Not,Shl,Shr}
3)Arithmetic Operations:-ex:-{Add,Sub,Mulu*,Muls*,Divu*,Divs*} (4)Comparison:-ex:-{Cmp}
5)Flow Control:-ex:-{Bra,Bsr,Rts,Rti} (6)Others:-ex:-{Nop}
27. What are addressing modes
ans:-1. Immediate addressing.2. Register addressing.3. Direct addressing.4. Indirect addressing.
28. Give the different type of data related addressing modes and explain with examples.
ans:-1}Immediate addressing
Load the immediate data into the register, R.
Example: MVI R,data
2)Register addressing
Data from source register is moved into destination register.
Example: MOV Rd, Rs
3)Direct addressing
Accepts data from external devices to be stored in the accumulator or sends the data from the
accumulator to the external device.
Example: IN 00H or OUT 01H
29. What are the different types of branch related addressing modes
ans:-II. Branch Addressing Modes
1. Intrasegment Direct2. Intrasegment Indirect3. Intersegment Direct4. Intersegment Direct
RETURN instruction in the subroutine.The return instruction is used either to return a function value or to
terminate the execution of a function. The exit may be from anywhere within the function body, including
loops or nested blocks. If the function returns a value, the return instruction is required
49. What is recursive procedure
ans:-A recursive procedure is a procedure, which calls itself. Recursive procedures are used to work with
complex data structures called trees. If the procedure is called with N=3, then the N is decremented by 1
after each procedure CALL and the procedure is called until N=0.
50. What is an interrupt. Explain
ans:-An interrupt is a condition that causes the microprocessor to temporarily work on a different task,
and then later return to its previous task. Interrupts can be internal or external. Internal interrupts, or
"software interrupts," are triggered by a software instruction and operate similarly to a jump or branch
instruction.
MICROPROCESSORS
VIVA QUESTIONS
SET-2
MICROPROCESSORS
VIVA QUESTIONS
SET-3
MICROPROCESSORS
VIVA QUESTIONS
SET-4
STUDY FROM TEXT BOOK