Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a complete 8 0 8 6 Assembly program to do the followings. Use the general program template that is in the Lecturea slide. The

Write a complete 8086 Assembly program to do the followings.
Use the general program template that is in the Lecturea slide.
The DOSBox Emulator &. MASM Assembler/Linker should be used for testing the homework.
Iritialize the computer screen in video graphics mode as vGA 320200 pixels.
Define the necessary variables to describe a rectangle with the following initial decimal pixel values.
Top-leftmost coordinates of the rectangle in screen : Column location=90, Row location=$0
Wioth (number of columns) and Height (number of rows) of rectangle: Width=70, Height=40
Color: Choose any 4-bit color as the drawing color of rectangle.
Ey looping, draw the rectangle on screen, initially as unflied.
USER INTERFACE
The program should use the following BIOS and MS-DOS interrupt services.
EIOS Video graphics pixel drawing : INT 10Ch? Function 0Ch
BIOS Keypress resding , INT 16h? Function 10h
MS-DOS Writing string to screen : INT 21h? Function 09h
User will press the following keys (without using the ENTER key) on the computer keyooard as command:
(Mouse will not be used for user interface commands.)
Page:1/2
The following are hexsdecimal numbers in the AL register that contains AsCll key value pressed by user.
O Key : 30h
1 Key ,:31h
Eacape key : 1Bh
The followings are hexsdecimal numbers in the AH register that contains arrow key value pressed by user.
Left arrow : 4oh
Right arrow: 4dh
UD arrow : 48h
Down arrow : 50 h
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle9i Database Administration

Authors: Sam R. Alapati

1st Edition

1590590228, 978-1590590225

More Books

Students also viewed these Databases questions