Nited Nstitute of Echnology
Nited Nstitute of Echnology
Nited Nstitute of Echnology
Name of the
question paper
setter:
Signature:
Designation &
Dept: AP/ECE
HOD APPROVAL
DEAN APPROVAL
PRINCIPAL
APPROVAL
(6)
(8)
(8)
(16)
(16)
(16)
(16)
(8)
(8)
ANSWER KEY
1. What do you mean by Segment override prefix?
The segment override prefix allows the programmer to deviate from the
default segment. A segment override prefix allows any segment register (DS, ES, SS, or
CS) to be used as the segment when evaluating addresses in an instruction. An override is
made by adding the segment register plus a colon to the beginning of the memory
reference of the instruction as in the following examples:
Mov ax, [es: 60126]
; Use ES as the segment
Mov ax, [cs: bx]
; Use CS as the segment
Mov ax, [ss: bp+si+3]
; Use SS as the segment
2. Compare Macro and Procedure
Macros
Accessed during assembly when name given
to macro is written as an instruction in the
assembly program.
Machine code is generated for instructions
each time a macro is called.
This due to repeated generation of machine
code requires more memory.
Parameters are passed as a part of the
statement in which macro is called.
Procedures
Accessed by CALL and RET instructions during
program execution.
Machine code for instructions is put only once in
the memory.
This as all machine code is defined only once so
less memory is required.
Parameters can be passed in register memory
location or stack.
PART B (5 16 = 80 marks)
11. (a) Explain the internal hardware architecture of 8086 microprocessor with neat diagram.(16)
Features (2M)
Architecture Diagram (8M)
(b) Explain the various addressing modes of 8086 processor with suitable examples
Sources of Interrupts.(1 M)
Special instruction (1 M)
(16)
(16)
(Or)
(b) (i) Explain the data transfer group and logical group of 8086 with instructions with
necessary examples.
(10)
Logical Instructions (5 M)
1. AND instructions, 2. OR, 3.XOR, 4.Test and bit test instructions.
(ii) Write an 8086 ALP to find the sum of numbers in the array of 10 elements.
Flowchart: (3 M)
(6)
Program: (3 M)
MOV AL, 00
MOV BL, 01H
MOV CL, [2000H]
L1: ADD AL, BL
INC BL
LOOP L1
MOV [3000H], AL
HLT
13. (a). (i) Explain the various assembler directives with suitable examples.
ASSUME, DD, DW,DQ,DT,DUP, EQU, EVEN, EXTERN, END,MACRO,
ENDM,PROC,ENDP,SEGMENT, ENDS,PUBLIC,.MODEL,,LABEL
(ii) Write an ALP Program to arrange the elements in an array of 10 elements in
ascending order.
MOV SI, 2000
MOV CL, [SI]
DEC CL
REPEAT:
MOV SI, 2000
MOV CH, [SI]
DEC CH
INC SI
RECMP:
MOV AL, [SI]
INC SI
CMP AL, [SI]
JC: AHEAD
XCHG AL, [SI]
XCHG AL, [SI-1]
(8)
(8)
AHEAD:
JNZ:
JNZ:
DEC CH
RECMP
DEC CL
REPEAT
HLT
(Or)
(b) Draw the architecture of 8089 I/O processor and explain.
Features (2 M)
I/O Handled by processor, IOP (4 M)
(16)
(16)
Instruction Queue (2 M)
Data Registers (2 M)
Status Registers (2 M)
Control Register(2 M)
(Or)
(b) Draw the pin diagram of 8086 microprocessor and list the pin details.
Pin diagram (8 M)
Pin Descriptions and functions (8 M)
(16)
15. (a).With a neat block diagram, explain the Pentium architecture and features.
Architecture diagram (8 M)
(16)
Bus unit, Code cache, Prefetcher, Instruction decode & Control unit, ALU, Cache,
Paging and Floating point unit (8 M)
(Or)
(b) (i) Explain the 8086 basic bus cycle timing diagram. (8)
Read operation (4 M)
Write Operation (4 M)
(ii) Discuss briefly the data types supported by 8087 Numeric Data Processor.
(8)