suppose that y=2, a=3, b=4, c=5. the value of y after execution the following code will be: load a mul b sub c jmplz m1 // if (acc <0) go to m1 store y m1 sub b add c Select one: O a. 5 O b. 8 O c. All choices wrong O d. 3 O e 7

EBK JAVA PROGRAMMING
8th Edition
ISBN:9781305480537
Author:FARRELL
Publisher:FARRELL
Chapter16: Graphics
Section: Chapter Questions
Problem 1DE
icon
Related questions
Question

suppose that  y=2,  a=3 , b=4, c=5. the  value of y after execution the following code will be:

 

  •               load  a 
  •              mul  b
  •              sub  c 
  •            jmplz    m1             // if (acc <0)  go to m1
  •           store  y
  • m1     sub  b
  •           add   c
suppose that y=2, a=3, b=4, c=5. the value of y after execution the following code will be:
load a
mul b
sub c
jmplz m1
// if (acc <0) go to m1
store y
m1 sub b
add c
Select one:
O a. 5
O b. 8
O . All choices wrong
O d. 3
O e. 7
Transcribed Image Text:suppose that y=2, a=3, b=4, c=5. the value of y after execution the following code will be: load a mul b sub c jmplz m1 // if (acc <0) go to m1 store y m1 sub b add c Select one: O a. 5 O b. 8 O . All choices wrong O d. 3 O e. 7
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Concept of memory addresses in pointers
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
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L