Question

In: Computer Science

NOTE: Write your program in 8086 language. Preferably, I'd like you to use emu8086, but you...

NOTE: Write your program in 8086 language. Preferably, I'd like you to use emu8086, but you can use any 8086 program and write and test them.

Program: Write a program to do the following.

(a) Scroll a window from row 5, column 10 to row 20, column 70, with a reverse video attribute.

(b) Locate the cursor at row 10, column 20.

(c) Display a line of text, such as,

THIS TEXT IS IN THE WINDOW

(d) After the line of text is displayed, wait for a key to be pressed.

(e) Scroll a window from row 7, column 12 to row 18, column 68, with a normal attribute.

(f) Write a character A with a blinking attribute in the middle of the window.

(g) Wait for a key stroke, and then clear entire screen with a normal attribute.

Solutions

Expert Solution

Below is the program in 8086 language.

---------------------------------------------------------------------------------------------------------------------------------------------------------------------

.8086

.model small

.stack 256

.data

; this is the data that we have to display in screen

msg DB 'THIS TEXT IS IN THE WINDOW' , '$'

.code

main PROC

;intiliaize ds

mov ax, @data

mov ds, ax

; now we will scrool a window from row 5 , column 10 to row 20 , column 70 using int 10h and function 6

mov ah , 6 ; function 6 is used to scroll window up

mov al , 0 ; displays the number of to scroll (0 means all)

mov ch, 5 ; upper left row

mov cl , 20 ; upper left column

mov dh , 20 ; lower right row

mov dl , 70 ; lower right column

mov bh , 70h ; 70h is the code for reverse video attribute

int 10h ; here part a is completed

;;;;;;;;;;;;;;;;;;;;; part b to locate the cursor at row 10 , column 20;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

mov ah , 2 ; function for setting cursor position

mov dh , 10 ; will set the cursor position to row 10

mov dl , 20 ; will set the cursor position to column 20

mov bh , 0 ; video page 0

int 10h ; here part b is completed

;;;;;;;;;;;;;;;;;;;;;;;;;;; part c to display the line of text ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

mov ah , 9h

mov dx , offset msg

int 21h ; this will print the msg declared int the data

;;;;;;;;;;;;;;;;;;;;;;;;;;; part d - after the line is displayed wait for the keypress.

mov ah , 0

int 16h

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

mov ah , 4ch

int 21h

end main

;;;;;;;; we are only allowed to answer 4 sub parts of a program;;;;;;;;;;;;;;;


Related Solutions

Develop and test an Intel 8086 assembly program by emu8086 amd dont use any extirnall lib...
Develop and test an Intel 8086 assembly program by emu8086 amd dont use any extirnall lib , that reads two decimal numbers x and y. Your program should display the result of their: 1) Addition: x+y 2) Subtraction: x-y 3) Multiplication: x*y 4) Division: x / y Notes:  x and y are two-digit decimal numbers (i.e. 0-99).  The program should display an error message if the value of y is zero, in the case of division.  You...
Here's what I'd like you to do. In your initial post, I'd like you to address...
Here's what I'd like you to do. In your initial post, I'd like you to address the historical understanding of a corporation's purposes and objectives. What has been the traditional approach to the objectives and purposes of corporations? Then, I'd like you to consider if, in our present age, those are the only objectives and purposes of corporations. As time has gone on, are there other objectives and purposes of corporations that society (and courts) now accept? If so, what...
Write an assembly language program that will print out the message of your choosing #NOTE #write...
Write an assembly language program that will print out the message of your choosing #NOTE #write in a simple way, so that i can execute it from command window using masm
This program has to be written in assembly language using emu8086. Please choose the .EXE template....
This program has to be written in assembly language using emu8086. Please choose the .EXE template. The requirements and the action is contained in the docx file. You’ve been hired by Spacely Sprockets and they need to be able to write order information out to a file. Using all of the knowledge that we’ve gained in the last few sections on structures and files, you need to write a program that does the following: Design a structure that can hold...
What is the role of art in your life? In this discussion, I'd like you to...
What is the role of art in your life? In this discussion, I'd like you to think about aesthetics. Your text describes several categories of art: oral, plastic, graphic and performance. Describe your participation in art and consider the role of aesthetics in your life. You can also write about how art is used to either support or challenge the social orde
What I'd like you to do is to write a 2-page paper (it can be double...
What I'd like you to do is to write a 2-page paper (it can be double spaced) on using spirometry as a tool to make clinical assessments. This should include what spirometry is, how the measurements are done, what type of data can be collected, and what type of clinical diagnoses can be made/monitored by using this technique - i.e. what is this typically used for and what do changes in values represent.
I'm looking to study for my theory of computation exam, so I'd like you to write...
I'm looking to study for my theory of computation exam, so I'd like you to write a sample problem and answer it based on the topic below. If you also wouldn't mind, could you also explain what you're doing. "Use subset construction to convert an NFA to a DFA"
I'm looking to study for my theory of computation exam, so I'd like you to write...
I'm looking to study for my theory of computation exam, so I'd like you to write a sample problem and answer it based on the topic below. If you also wouldn't mind, could you also explain what you're doing. "Given a language, find a number of strings that are pairwise distinguishable with respect to the language. For each pain of strings, find a distinguisher."
Write an assembly language program that prints your first name in the output. Use immediate addressing...
Write an assembly language program that prints your first name in the output. Use immediate addressing with a hexadecimal constant to designate the operand of CHARO for each letter of your name. Comment each line except STOP and END. Cut and paste the Assembler Listing into your document and paste a screen shot of the Output area of the Pep8. Use the name "Kevin" as example Assembler Listing Screen Shot of Output area of the Pep8 program
(Use C++ language) The Bunker Hill Health Club would like you to create a program where...
(Use C++ language) The Bunker Hill Health Club would like you to create a program where users can sign up for memberships. They have three types: Single Membership ($200/year), Family Membership ($350/year), and Membership Plus ($450/year). Your program should display a menu of the membership types and a fourth choice labeled 'Quit', if they don't want to join. Use a Switch-Case decision structure where a message would be displayed stating the membership type they chose and the yearly cost. A...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT