Microprocessor and Interfacing Assignment

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Microprocessor and Interfacing Assignment

1. Designing a traffic light control system using the Intel 8086 microprocessor involves writing
assembly language code to control the traffic light sequence and interfacing it with hardware.
Additionally, you can use Proteus software for simulation and testing and refer more
different sites and you can set the time counter as you recommended i.e green, red, and
yellow light display time.

2. Write an assembly program to read in decimal inputs as two 3*3 matrices perform addition
and display the result as the matrix form.
3. Write assembly language program to enter your name from the keyboard and display it at
a specified location on the screen in front of the message. What is your name? You must
clear the entire screen before display.
4. Write assembly language program to enter your name from the keyboard and display it at
a specified location on the screen in front of the message. What is your name? You must
clear the entire screen before display

5. Suppose we have a two-player game. The game works in the following sequence:

a) The machine prompts player1 to enter a 6-character string


b) The machine receives and saves the string
c) The machine prompts player 2 to guess player1’s string.

It allows only 3 guesses, after each trial (try < 3) it displays “wrong guess, Try again” and returns
to (b) if wrong or displays “congra! You win, New game?” and waits until a key is pressed. If
key ‘Y or ‘y’’ is pressed it returns to (a) and start a new game, else if key ‘N’ or ‘n’ is pressed it
exits the game, but ignores any other key. If all 3 attempts of player2 are wrong (try >= 3) The
machine displays “sorry you lose, Play again?” and waits for a key. If ‘Y or ‘y’’ is pressed it
returns to (a) and start a new game, else if ‘N’ or ‘n’ is pressed it exits the game, but ignores any
other key.
So, write 80x86 assembly language program to implement the game.

Group one- Q1 qnd Q5


Group two-Q2 and Q5
Group Three- Q3 qnd Q5
Group Four Q4 and Q5

NB: Question 5( Q5) is common for all and Submission date January 4/2016EC

You might also like