Create a procedure named findthrees that returns 1

Assignment Help Basic Computer Science
Reference no: EM13997219

Create a procedure named FindThrees that returns 1 if an array has three consecutive values of 3 somewhere in the array. Otherwise, return 0. The procedure's input parameter list contains a pointer to the array and the array's size. Use the PROC directive with a parameter list when declaring the procedure. Preserve all registers (except EAX) that are modified by the procedure. Write a test program that calls FindThrees several times with different arrays.

INCLUDE Irvine32.inc

FindThrees PROTO, pArr: PTR BYTE, length: BYTE

.data

strCons BYTE "The array contains three consecutive 3.",0

strNonCon BYTE "The array does not contain three consecutive 3.",0

arrOne BYTE 1, 2, 3, 2

arrTwo BYTE 3, 3, 5, 7, 3

arrThree BYTE 4, 3, 3, 3, 1, 8

Reference no: EM13997219

Questions Cloud

What do you understand by the term addressing structure : What do you understand by the term Addressing structure
Discuss the ethical and safety issues : Read the case study: "Citycorp" and analyze the situation of substantial risk. Discuss the ethical and safety issues involved and steps taken to resolve those issues. (use the template: Evaluating the Case Study)
Discuss the ethical issues involved in this case : Review the case study: "Late confession" and discuss the ethical issues involved in this case and explain how you would analyze the case
How much work is done by the gas : The initial pressure is 4 x 105 Pa and the initial volume is .3m3. The final pressure is 2.48 x 105 Pa and the final volume is .4m3. How much work is done by the gas?
Create a procedure named findthrees that returns 1 : Create a procedure named FindThrees that returns 1 if an array has three consecutive values of 3 somewhere in the array.
What is the speed boats final speed : A speedboat moves on a lake with initial velocity vector v1,x = 9.81 m/s and v1,y = -2.61 m/s, then accelerates for 6.81 seconds at an average acceleration of avgx = -0.103 m/s2 and aav,y = 0.106 m/s2. What are the components of the speedboat's f..
Theories of natural law theory and social contract theory : Compare/contrast the theories of utilitarianism and categorical imperative. Compare/contrast the theories of natural law theory and social contract theory
Find the minimum value of the boat speed : A speedboat can travel with a speed of 55 m/s in still water. If the boat is in a river that has a flow speed of 5 m/s , find the maximum value of the boat's speed relative to an observer on the riverbank.
What is the frequency of the train whistle tone : A train is approaching a signal tower at a speed of 40 m/s. The train engineer sounds the 1000-Hz whistle. What is the frequency of the train whistle tone that is heard by the switchman?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Create a spreadsheet averaging the list of ctu classes

Imagine that you are currently enrolled in three CTU classes: UNIV104, IT254, and MATH102. In this project, you will create a spreadsheet averaging the list of CTU classes that you are currently enrolled in.

  Importance of preinstallation and postinstallation tasks

Describe the importance of preinstallation and postinstallation tasks

  Is this a successful application of decision support systems

Computers are used in business to provide information and assist management in analyzing data to enhance decision-making. Based on your example, is this a successful application of Decision Support Systems?

  Public key cryptography

The format of an X.509 certificate is described in

  Write a complete java method called sumnums

1. Write a complete Java method called sumNums that takes no parameters and returns an integer. The method uses a do-while loop to ask the user to enter a series of positive integer values and keeps a running total. Use a sentinel (-1) to allow the u..

  Draw a flow chart and hierarchy chart

Draw a flow chart, hierarchy chart, and write pseudocode for the following problem. • A weather sensing system calculates & prints a report on the following: ? Average temperature ? Highest temperature ? Lowest temperature ?

  Audit and monitoring network security purposes

Task Instructions In this context, consider Linux environment only. Further assumptions may be required to answer the above questions. So, use appropriate assumptions where needed to support your solutions. You are expected to write between 400-60..

  Acilisis, lacinia, curabitur egestas

Acilisis, lacinia, curabitur egestas, lorem, risus. Class Ac amet laoreet parturient, quam justo interdum hendrerit erat faucibus, facilisi scelerisque commodo, odio. Ligula conubia potenti, per praesent est egestas felis a facilisis potenti vehicula..

  Perform the arithmetic operations

Convert the following numbers into binary and perform the arithmetic operations in (i) and (ii) using signed binary numbers with 2's complement. Use 7 bits to represent the integer part of decimal numbers and the sign bit. Use three bits to repres..

  Explains how to create a table in microsoft word

explains how to create a table in Microsoft Word (whatever version you have) and how to add and delete columns and rows from an existing table.

  Compare swing java gui components to awt components

Compare Swing Java GUI components to AWT components. Explain at least one way the components are similar and at least one way they are different. Provide examples to support your rationale.

  Modern computer architecture standards

The X25 demodulator machine has been upgraded to modern computer architecture standards.

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