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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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