You are on page 1of 14

G.

PULLAIAH COLLEGE OF ENGINEERING & TECHNOLOGY (AT), KURNOOL


B.Tech – III-II Semester
Sub: MPMC Branch: EEE

UNIT-III
2 MARKS
1) What are assembler directives? Give example.
2) List out the categories of Addressing Modes of 8086.
3) List out the categories of Instruction Set of 8086.
4) Write about any two Addressing Modes of 8086 with examples.
5) Briefly explain about any one category of Instruction Set of 8086
6) Write an ALP program to perform 16 bit addition.
7) Write an ALP program to perform 16 bit subtraction.
8) Write an ALP program to perform 16 bit multiplication.

10 MARKS
1) Discuss about various Addressing Modes of 8086 microprocessor.
2) Explain about Instruction set of 8086.
3) Write an ALP to sort ‘N’ numbers in ascending order using 8086 instructions.
4) Write an ALP in 8086 to sort an array of 10 numbers in ascending order.
5) Write an ALP to separate and count the numbers from positive negative and zero numbers
from a given set of 8 bit numbers.
6) (a) Explain various assembler directives with examples.
(b) Write an assembly language program in 8086 to convert BCD data into binary data.
7) (a) Write an ALP in 8086 to search for a byte in a given set of 8 bit numbers using string
instructions.
(b) Write an ALP in 8086 to multiply two 8 bit numbers.
8) (a) Write an ALP in 8086 to check the number is prime or not.
(b) Write an ALP in 8086 to convert unpacked BCD to packed BCD.
9) (a) What are various types of procedures? Give examples.
(b) Write an ALP in 8086 to convert packed BCD to unpacked BCD.
10) (a) Write an ALP in 8086 to multiply two 16 bit numbers and the result is 32 bit.
(b) Write an ALP in 8086 to add two 8 bit ASCII numbers.
11) (a) Write an ALP in 8086 to find the largest and smallest of a set of 8-bit numbers.
(b) Write an ALP in 8086 to add two ASCII numbers.
12) (a) Write an ALP to generate the FIBONACCI series.
(b) Write an ALP in 8086 to find 1’s complement of a 16 bit hexadecimal number.
13) (a) Write an ALP in 8086 to add five 8 bit numbers and the result is 16 bit.
(b) Write an ALP in 8086 to add two 8 bit decimal numbers.
14) (a) Write an ALP in 8086 to count number of ones in a given number.
(b) Write an ALP in 8086 to count number of even and odd number in a given series.
G.PULLAIAH COLLEGE OF ENGINEERING & TECHNOLOGY (AT), KURNOOL
B.Tech – III-II Semester
Sub: MPMC Branch: EEE

UNIT-IV
2 MARKS
1) What are the various modes of operation of 8279 controller?
2) Describe the features of 8255 PPI.
3) What is the function of scan section in keyboard interface?
4) Define command word & status word register of 8251.
5) Define mode word register of 8251 for asynchronous mode.
6) Define mode word register of 8251 for sync mode.
7) What is BSR mode operation?
8) Distinguish between Mode set control word and BSR control Word of 8255?

10 MARKS
1) Illustrate with block diagram and discuss various modes of operation of 8255PPI.
2) What is the need for DMA controller? Describe the internal architecture and signal
description for the same.
3) With neat functional block diagram, explain the 8255 PPI and its operating modes.
4) Draw the block diagram of 8254 programmable interval times and explain its various modes
of operation.
5) Explain about control word format and programming of 8254.
6) Draw the block diagram of 8279 and explain each block.
7) Discuss various modes of operation of 8279Key Board/Display Controller.
8) Draw the block diagram of 8251 and explain each block.
9) Explain control word format of 8251?
10) (a) What are the registers available in 8257? What are their functions?
(b) Draw and discuss the status registers of 8257.
11) (a) Explain need and importance of DMA.
(b) What is BSR mode operation? How it is useful in controlling the interrupt initiated data
transfer for mode 1 and 2?
12) (a) Explain mode 1 input operation and mode 1 output operation in 8255 with examples
(b) Give the status word of 8255 in mode 2 and explain each bit?
G.PULLAIAH COLLEGE OF ENGINEERING & TECHNOLOGY (AT), KURNOOL
B.Tech – III-II Semester
Sub: MPMC Branch: EEE

UNIT-V
2 MARKS
1) List the features of 8051 microcontroller.
2) Write the differences of Microprocessor and Microcontroller.
3) What are the advantages of microcontroller over microprocessor?
4) List out the types of addressing modes in microcontroller.
5) Name the five interrupt sources of 8051 microcontroller.
6) Write a brief note on interrupt priority in 8051.
7) Differentiate the given 8051 instructions: MOVC and MOVX.
8) What is the function of SWAP?
9) Write an ALP in 8051 to perform 16 bit multiplication.
10) Write the addressing mode used in the following instructions:
MOV R1, #02H and MOV R1, 20H

10 MARKS
1) Explain the architecture of 8051 microcontroller with neat diagram.
2) Discuss about Pin description of 8051 microcontroller with neat diagram.
3) Describe the Memory Organization of 8051 microcontroller.
4) Explain the Addressing modes of 8051 microcontroller with an example.
5) Explain the instruction set of 8051 microcontroller.
6) Describe the different modes of operation of timers/counters in 8051 with its associated
register.
7) (a) Write short notes on external interrupts of 8051.
(b) What are the steps involved in programming the 8051 to receive data serially?
8) (a) Write an ALP in 8051 to perform multiplication of two numbers.
(b) List out the steps involved in programming the 8051 to transfer data serially.
7) (a) Explain the bit format of SCON register of 8051.
(b) Discuss the bit format of IP register of 8051.
8) (a) Explain the bit format of TCON register of 8051.
(b) Discuss the bit format of IE register of 8051.
9) Explain the Architectural features of Intel’s 16 bit Micro Controller.
10) (a) Explain about internal RAM Organization of 8051.
(b) WAP to toggle every bit of P1 continuously.
G.PULLAIAH COLLEGE OF ENGINEERING & TECHNOLOGY (AT), KURNOOL
B.Tech – III-II Semester
Sub: MPMC Branch: EEE

3) Write an ALP to sort ‘N’ numbers in ascending order using 8086 instructions.
.MODEL SMALL
.STACK 100H
.DATA
NUMBERS DB 25H, 21H, 55H, 63H, 05H, 15H
N EQU 06
.CODE
MOV AX,@DATA
MOV DS, AX
MOV CX, N
DEC CX
L2: MOV DI, CX
MOV BX, OFFSET NUMBERS
L1: MOV AL, [BX]
CMP AL, [BX+1]
JC NEXT
XCHG AL, [BX+1]
MOV [BX], AL
NEXT: INC BX
LOOP L1
MOV CX, DI
LOOP L2
MOV AH, 4Ch
INT 21H
END

4) Write an ALP in 8086 to sort an array of 10 numbers in ascending order.


.MODEL SMALL
.STACK 100H
.DATA
NUMBERS DB 25H, 21H, 55H, 63H, 05H, 15H, 12H, 43H, 09H, 05H
.CODE
MOV AX, @DATA
MOV DS, AX
MOV CX, 0A
DEC CX
L2: MOV DI, CX
MOV BX, OFFSET NUMBERS
L1: MOV AL, [BX]
CMP AL, [BX+1]
JC NEXT
XCHG AL, [BX+1]
MOV [BX], AL
NEXT: INC BX
LOOP L1
MOV CX, DI
LOOP L2
MOV AH, 4Ch
INT 21H
END
G.PULLAIAH COLLEGE OF ENGINEERING & TECHNOLOGY (AT), KURNOOL
B.Tech – III-II Semester
Sub: MPMC Branch: EEE

5) Write an ALP to separate and count the numbers from positive negative and zero numbers
from a given set of 8 bit numbers.
.MODEL SMALL
.STACK 100H
.DATA
ARRAY DB 00, 05, 06, 81H, 95H, 03
P1 DB 0
N1 DB 0
Z1 DB 0
.CODE
MOV AX,@DATA
MOV DS, AX
MOV BX, OFFSET ARRAY
L1: MOV AL, [BX]
CMP AL, 00
JZ ZERO
JG POS
INC N1
L2: INC BX
LOOP L1
JMP STOP
ZERO: INC Z1
JMP L2
POS: INC P1
JMP L2
STOP: MOV AH, 4Ch
INT 21h
END

6) (a) Explain various assembler directives with examples.


(b) Write an assembly language program in 8086 to convert BCD data into binary data.
.MODEL SMALL
.STACK 100H
.DATA
NUM DB 44H
BIN DB 00H
.CODE
MOV AX, @DATA
MOV DS, AX
MOV AL, NUM
MOV BL, AL
G.PULLAIAH COLLEGE OF ENGINEERING & TECHNOLOGY (AT), KURNOOL
B.Tech – III-II Semester
Sub: MPMC Branch: EEE

AND BL, 0Fh


AND AL, 0F0h
ROR AL, 4
MOV DL, 0Ah
MUL DL
ADD AL, BL
MOV BIN, AL
MOV AH, 4Ch
INT 21h
END

7) (a) Write an ALP in 8086 to search for a byte in a given set of 8 bit numbers using string
instructions.
.MODEL SMALL
.STACK 100H
.DATA
SERIES DB 01H, 02H, 03H, 04H
NUM DB 02H
ANS DB 00H
.CODE
MOV AX, @DATA
MOV DS, AX
MOV BX, OFFSET SERIES
MOV CL, 05h
MOV AL, NUM
L1: CMP AL, [BX]
JE FOUND
INC BX
LOOP L1
JMP EXIT
FOUND: INC ANS
EXIT: MOV AH, 4Ch
INT 21h
END
G.PULLAIAH COLLEGE OF ENGINEERING & TECHNOLOGY (AT), KURNOOL
B.Tech – III-II Semester
Sub: MPMC Branch: EEE

(b) Write an ALP in 8086 to multiply two 8 bit numbers.

.MODEL SMALL
.STACK 100H
.DATA
NUM1 DB 55H
NUM2 DB 22H
ANS DW ?
.CODE
MOV AX, @DATA
MOV DS, AX
MOV AL, NUM1
MUL NUM2
MOV ANS, AX
MOV Ah, 4Ch
INT 21h
END
8) (a) Write an ALP in 8086 to check the number is prime or not.
.MODEL SMALL
.STACK 100H
.DATA
NUM DB 05
ANS DB 00
.CODE
MOV AX, @DATA
MOV DS, AX
MOV AL, NUM
MOV CL, AL
DEC CL
L1: DIV CL
CMP AH, 00
JZ NOTPRIME
MOV AL, NUM
MOV AH, 00
DEC CL
CMP CL, 01
JNZ L1
G.PULLAIAH COLLEGE OF ENGINEERING & TECHNOLOGY (AT), KURNOOL
B.Tech – III-II Semester
Sub: MPMC Branch: EEE

INC ANS
NOTPRIME: MOV AH, 4CH
INT 21H
END

(b) Write an ALP in 8086 to convert unpacked BCD to packed BCD.


.MODEL SMALL
.STACK 100H
.DATA
UNPH DB 05H
UNPL DB 06H
PACKED DB ?
.CODE
MOV AX, @DATA
MOV DS, AX
MOV AL, UNPH
ROL AL, 4
ADD AL, UNPL
MOV PACKED, AL
MOV AH, 4CH
INT 21H
END

9) (a) What are various types of procedures? Give examples.


(b) Write an ALP in 8086 to convert packed BCD to unpacked BCD.
.MODEL SMALL
.STACK 100H
.DATA
PACKED DB 34H
UNPACKED DW ?
COUNT EQU 02

.CODE
MOV AX,@DATA
MOV DS, AX
G.PULLAIAH COLLEGE OF ENGINEERING & TECHNOLOGY (AT), KURNOOL
B.Tech – III-II Semester
Sub: MPMC Branch: EEE

MOV AL, PACKED


AND AL, 0FH
MOV AH, PACKED
AND AH, 0F0H
ROR AH, 4
MOV UNPACKED, AX
INC SI
INC BX
MOV AH, 4CH
INT 21H
END

10) (a) Write an ALP in 8086 to multiply two 16 bit numbers and the result is 32 bit.
.MODEL SMALL
.STACK 100H
.DATA
NUM1 DW 1122H
NUM2 DW 2233H
ANS DD ?
.CODE
MOV AX, @DATA
MOV DS, AX
MOV AX, NUM1
MUL NUM2
MOV BX, OFFSET ANS
MOV [BX], AX
ADD BX, 0002
MOV [BX], DX
MOV AH, 4CH
INT 21H
END
G.PULLAIAH COLLEGE OF ENGINEERING & TECHNOLOGY (AT), KURNOOL
B.Tech – III-II Semester
Sub: MPMC Branch: EEE

11) (a) Write an ALP in 8086 to find the largest and smallest of a set of 8-bit numbers.
.MODEL SMALL
.STACK 100H
.DATA
SERIES DB 04H, 45H, 36H, 21H, 78H
SMALL DB ?
LARGE DB ?
.CODE
MOV AX, @DATA
MOV DS, AX
MOV BX, OFFSET SERIES
MOV AL, [BX]
MOV AH, AL
MOV CX, 05
DEC CX
L1: INC BX
CMP AL, [BX]
JC NEXT
MOV AL, [BX]
NEXT: CMP AH, [BX]
JNC NEXT1
MOV AH, [BX]
NEXT1: LOOP L1
MOV SMALL, AL
MOV LARGE, AH
MOV AH, 4CH
INT 21H
END
(b) Write an ALP in 8086 to add two ASCII numbers.
.MODEL SMALL
.STACK 100H
.DATA
NUM1 DB ‘1’
NUM2 DB ‘2’
ANS DW ?
.CODE
MOV AX, @DATA
G.PULLAIAH COLLEGE OF ENGINEERING & TECHNOLOGY (AT), KURNOOL
B.Tech – III-II Semester
Sub: MPMC Branch: EEE

MOV DS, AX
MOV AL, NUM1
ADD AL, NUM2
AAA
ADD AX, 3030H
MOV ANS, AX
MOV AH, 4CH
INT 21H
END

12) (a) Write an ALP to generate the FIBONACCI series.


.MODEL SMALL
.STACK 100H
.DATA
SERIES DB 10 DUP (?)
.CODE
MOV AX, @DATA
MOV DS, AX
MOV BX, OFFSET SERIES
MOV AH, 00
MOV AL, 01
MOV [BX], AH
INC BX
MOV [BX], AL
MOV CX, 08
L1: ADD AL, AH
MOV AH, [BX]
INC BX
MOV [BX], AL
LOOP L1
MOV AH, 4CH
INT 21H
END
G.PULLAIAH COLLEGE OF ENGINEERING & TECHNOLOGY (AT), KURNOOL
B.Tech – III-II Semester
Sub: MPMC Branch: EEE

(b) Write an ALP in 8086 to find 1’s complement of a 16 bit hexadecimal number.
.MODEL SMALL
.STACK 100H
.DATA
NUM DW 0505H
ANS DW ?
.CODE
MOV AX, @DATA
MOV DS, AX
MOV AX, NUM
NOT AX
MOV ANS, AX
MOV AH, 4CH
INT 21H
END
13) (a) Write an ALP in 8086 to add five 8 bit numbers and the result is 16 bit
.MODEL SMALL
.STACK 100H
.DATA
ARRAY DB 0F4H, 0AAH, 34H, 22H, 0F3H
ANS DW ?
.CODE
MOV AX, @DATA
MOV DS, AX
MOV AX, 00
MOV BX, OFFSET ARRAY
MOV CX, 05
L1: ADD AL, [BX]
JNC NEXT
INC AH
NEXT: INC BX
LOOP L1
MOV ANS, AX
MOV AH, 4CH
INT 21H
END
G.PULLAIAH COLLEGE OF ENGINEERING & TECHNOLOGY (AT), KURNOOL
B.Tech – III-II Semester
Sub: MPMC Branch: EEE

(b) Write an ALP in 8086 to add two 8 bit decimal numbers.

.MODEL SMALL
.STACK 100H
.DATA
N1 DB 05H
N2 DB 35H
. ANS DB ?
.CODE
MOV AX, @DATA
MOV DS, AX
MOV AL, N1
ADD AL, N2
DAA
MOV ANS, AL
MOV AH, 4CH
INT 21H
END
14) (a) Write an ALP in 8086 to count number of ones in a given number.
.MODEL SMALL
.STACK 100H
.DATA
NUM DB 55H
ANS DB 00
.CODE
MOV AX, @DATA
MOV DS, AX
MOV AL, NUM
MOV CX, 08
L1: SHL AL, 1
JNC NEXT
INC ANS
NEXT: LOOP L1
MOV AH, 4CH
INT 21H
END
G.PULLAIAH COLLEGE OF ENGINEERING & TECHNOLOGY (AT), KURNOOL
B.Tech – III-II Semester
Sub: MPMC Branch: EEE

(b) Write an ALP in 8086 to count number of even and odd number in a given series.
.MODEL SMALL
.STACK 100H
.DATA
SERIES DB 33H, 44H, 45H, 21H, 27H
EVEN DB 00
ODD DB 00
.CODE
MOV AX, @DATA
MOV DS, AX
MOV BX, OFFSET SERIES
MOV CX, 05
L1: MOV AL, [BX]
AND AL, 01
JNZ OD
INC EVEN
JMP NEXT
OD: INC ODD
NEXT: INC BX
LOOP L1
MOV AH, 4CH
INT 21H
END

You might also like