Computers and Technology, 13.05.2021 20:20 zachcochran2007
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.
!
.386
.model flat, stdcall
.stack 4096
ExitProcess proto, dwExitCode:dword
FindThrees proto aPtr:PTR SDWORD, arraySize:DWORD
.data
strSuccess BYTE "Success.", 0
strFailure BYTE "Failure.", 0
Array1 sdword 4, 6, 3, 3, 2, 5 ; false
Array2 sdword 3,3,3,9,5 ; true
Array3 sdword 1,2,3,3,4,3,3,3,9 ; true
Array4 sdword 1,2,4,-4,-5,9 ; false
.code
main proc
invoke FindThrees, ADDR Array1, LENGTHOF Array1 ;invoke FindThrees procedure for Array 1
;invoke FindThrees procedure for Array 2
;invoke FindThrees procedure for Array 3
;invoke FindThrees procedure for Array 4
invoke ExitProcess,0
main endp
FindThrees proc,
aPtr:PTR SDWORD, arraySize:DWORD
Answers: 3
Computers and Technology, 21.06.2019 17:30
Think about the poem "old ironsides." drag the subject of the poem to the subject box and the theme to the theme box. then decide whether each excerpt from the poem supports the subject or the theme.
Answers: 3
Computers and Technology, 22.06.2019 12:40
How do i get the most points, without any effort?
Answers: 2
Computers and Technology, 23.06.2019 11:30
Me dangers of social media and the internetexplain what each means: 1) social media and phones have become an addiction.2) outside people have access to you all the time.3) cyberstalking4) cyberbullying5) catphishing6) viruses7) identity theft8) credit card fraud9) hacking10) money schemes
Answers: 1
Computers and Technology, 23.06.2019 14:00
Select the correct answer. a company is currently focusing on creating specific management goals for itself. which level of maturity is the company demonstrating under the sse_ccm framework? a. performed informally b. planned and tracked c. quantitatively controlled d. well-defined e. continuously improving
Answers: 2
Create a procedure named FindThrees that returns 1 if an array has three
consecutive values of 3 so...
History, 14.04.2021 17:30
Mathematics, 14.04.2021 17:30
Mathematics, 14.04.2021 17:30
English, 14.04.2021 17:30
Mathematics, 14.04.2021 17:30
Biology, 14.04.2021 17:30
Mathematics, 14.04.2021 17:30
Chemistry, 14.04.2021 17:30
Mathematics, 14.04.2021 17:30
Geography, 14.04.2021 17:30
Mathematics, 14.04.2021 17:30
Computers and Technology, 14.04.2021 17:30
Social Studies, 14.04.2021 17:30