Consider the following procedure definition: MyProcedure PROC, val1: DWORD, val2: DWORD, val3: DWORD mov eax, vali add eax, val2 sub eax, val3 ret 12 MyProcedure ENDP Show how you would call this procedure in another program. You need to show at least 2 lines of code: Prototyping this procedure • Calling this procedure (you can use any values/registers for the parameters)

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 12PE
icon
Related questions
Topic Video
Question
Consider the following procedure definition:
MyProcedure PROC,
val1: DWORD,
val2: DWORD,
val3: DWORD
mov eax, val1
add eax, val2
sub eax, val3
ret 12
MyProcedure ENDP
Show how you would call this procedure in another program. You need to
show at least 2 lines of code:
• Prototyping this procedure
• Calling this procedure (you can use any values/registers for the
parameters)
Transcribed Image Text:Consider the following procedure definition: MyProcedure PROC, val1: DWORD, val2: DWORD, val3: DWORD mov eax, val1 add eax, val2 sub eax, val3 ret 12 MyProcedure ENDP Show how you would call this procedure in another program. You need to show at least 2 lines of code: • Prototyping this procedure • Calling this procedure (you can use any values/registers for the parameters)
Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Instruction Format
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:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT