Which operator saves the value of some specified registers before a procedure is called and restores their values when the procedure ends? USES PUSH PROC SAVE

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter1: Creating Java Programs
Section: Chapter Questions
Problem 1DE
icon
Related questions
Question
Which operator saves the value of some specified registers before a procedure is
called and restores their values when the procedure ends?
USES
PUSH
PROC
SAVE
Transcribed Image Text:Which operator saves the value of some specified registers before a procedure is called and restores their values when the procedure ends? USES PUSH PROC SAVE
Consider the following code snippet, which uses the AddThree procedure defined
below:
.data
sum BYTE ?
.code
mov eax, 11
mov edx, 10
mov esi, 1
call AddThree
mov sum, eax
AddThree PROC
push edx
push esi
add edx, esi
add eax, edx
pop esi
pop edx
ret
AddThree ENDP
Which of the following are the arguments (input parameters) for this procedure?
(Select all that apply)
edx
sum
eax
O esi
Transcribed Image Text:Consider the following code snippet, which uses the AddThree procedure defined below: .data sum BYTE ? .code mov eax, 11 mov edx, 10 mov esi, 1 call AddThree mov sum, eax AddThree PROC push edx push esi add edx, esi add eax, edx pop esi pop edx ret AddThree ENDP Which of the following are the arguments (input parameters) for this procedure? (Select all that apply) edx sum eax O esi
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer
Knowledge Booster
Linux
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,