Answered step by step
Verified Expert Solution
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 Assembly program to do the followings.
Use the general program template that is in the Lecturea slide.
The DOSBox Emulator & MASM AssemblerLinker should be used for testing the homework.
Iritialize the computer screen in video graphics mode as vGA pixels.
Define the necessary variables to describe a rectangle with the following initial decimal pixel values.
Topleftmost coordinates of the rectangle in screen : Column location Row location$
Wioth number of columns and Height number of rows of rectangle: Width Height
Color: Choose any 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 MSDOS interrupt services.
EIOS Video graphics pixel drawing : INT Function
BIOS Keypress resding INT Function
MSDOS Writing string to screen : INT Function h
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:
The following are hexsdecimal numbers in the AL register that contains AsCll key value pressed by user.
O Key :
Key :
Eacape key : Bh
The followings are hexsdecimal numbers in the AH register that contains arrow key value pressed by user.
Left arrow :
Right arrow: dh
UD arrow : h
Down arrow : h
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started