Question: 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
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.
Step by Step Solution
3.49 Rating (146 Votes )
There are 3 Steps involved in it
To create the procedure FindThrees in assembly language well implement a function that returns 1 if there are three consecutive 3s in the array and 0 ... View full answer
Get step-by-step solutions from verified subject matter experts
