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

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
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
Step 1: Providing Introduction

According to our guidelines, we are allowed to solve only the first question. Please post the other question separately.

Register state must be preserved before a procedure is called in assembly language and low-level programming, and register values must be restored after the procedure. By doing this, it is ensured that the method can use these registers without having an impact on the surrounding code. This can be accomplished using a variety of operators or instructions. We shall assess the suitability of the following options in this situation: "USES", "PUSH", "PROC", and "SAVE."

Please refer to the following steps for the complete solution to the problem above.

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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education