Write a program that clears the screen

Assignment Help Computer Engineering
Reference no: EM132209637

Question :

Write a program that clears the screen, locates the cursor near the middle of the screen, prompts the user for two integers, adds the integers, and displays their sum.

You will need to use the ClrScr, Gotoxy, WriteString, Crlf, and ReadInt procedures from the Irvine32 library.

Using the ArrayScan program below as a model, implement the search using the LOOPZ instruction.

TITLE Scanning an Array ;Scan an array for the first nonzero value. INCLUDE Irvine32.inc .data intArray SWORD 0,0,0,0,1,20,35,-12,66,4,0 ;intArray SWORD 1,0,0,0 ;alternate test data ;intArray SWORD 0,0,0,0 ;alternate test data ;intArray SWORD 0,0,0,1 ;alternate test data noneMsg BYTE "A non-zero value was not found",0 .code main PROC mov ebx,OFFSET intArray ;point to the array mov ecx,LENGTHOF intArray ;loop counter L1: cmp WORD PTR [ebx],0 ;compare a value to zero jnz found ;found a value add ebx,2 ;point to next loop L1 ;contine the loop jmp notFound ;none found found: ;display the value movsx eax,WORD PTR[ebx] call WriteInt jmp quit notFound: ;display "not found" message mov edx,OFFSET noneMsg call WriteString quit: call crlf exit main ENDP END main.

Reference no: EM132209637

Questions Cloud

Identify the weaknesses and threats to the business : Describe how you would identify the weaknesses and threats to the business and implement and monitor the progress
Write a program that converts the temperature variable : Write a program that converts the temperature variable (double a = 73.5) from Fahrenheit (F) to Celsius (C) using the below formula.
Compute the total revenue earned during an entire month : Write a program that computes the total revenue earned during an entire month at an electronics shop.
Find the number of vowels in the string : Write a program to continuously read a string and find the number of vowels in the string.
Write a program that clears the screen : Write a program that clears the screen, locates the cursor near the middle of the screen, prompts the user for two integers, adds the integers.
How you determine which systems could be integrated : Respond to these discussion post based on the topic "Every organization wants their systems to function properly and "talk" to each other.
Write a java program capitals that initializes a string : Write a program "Converter" which has some measurements in meters and then print their measurements in miles, feet, and inches.
Write a program compare that reads two strings from command : Write a program compare.c that reads two strings from command line and outputs whether one is the reverse of the other while ignoring the case.
Compute and output the smaller of two numbers entered : Write a program that computes and outputs the smaller of two numbers entered by the user.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Create a scanner object to open the given input

write a Java application that utilizes your knowledge about a number of data structures we have been discussing throughout the course of this semester.

  What topics should be included in security and training

Discuss the importance of user technology security education within organizations. What topics should be included in security education and training?

  What requirements analysis technique would you recommend

What requirements analysis technique or techniques would you recommend for this situation? Explain your answer.

  Define and or and not gates

Given the function P(A, B, C) = Sm (0, 1, 3, 5), express P in canonical forms.

  Write a template for a function called total

Write a template for a function called total. The function should keep a running total of values entered by the user, then return the total.

  How the products can be used in building the network

Discuss how those products can be used in building the network within an organization with respect to the advantages and disadvantages of each one.

  Use the .net framework class linrary constant

When user clicks a button to perform the calculation, the button's event procedure should first determine that a selection for the calculation type was made. Next, event procedure should ensure that non-zero, positive values have been entered only..

  Write down a unix shell script

For an example, if I want to search for a text file/script that contains the most number of for loop statements, and have it displayed on the screen, How will I do that?

  Decrypt the message to get the original plaintext

Encrypt the message this is an exercise using one of the following ciphers. Ignore the space between words. Decrypt the message to get the original plaintext.

  In around 300 words describe how bibliofind might have used

bibliofind was one of the first web sites to specialize in hard-to-find and collectible books. the site featured a

  Create a simple class diagram from the list of classes

CIS5302 Professional Skills for Business Analysis Assignment. Define and understand the Requirements. Create a simple class diagram from the list of classes

  Discuss how forensic investigators can find evidence

Discuss how forensic investigators can find evidence on acquired computers

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd