How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Ingo U Your Own Question

Ingo U
Ingo U, Software Engineer
Category: Homework
Satisfied Customers: 754
Experience:  Over 25 years experience in software development. Expert in Microsoft .Net, C#, C++, VB, SQL
44076068
Type Your Homework Question Here...
Ingo U is online now
A new question is answered every 9 seconds

Consider the following PIPPIN program: [1] LOD 100 [2] MUL

Customer Question

Consider the following PIPPIN program: [1] LOD 100 [2] MUL 101 [3] ADD 102 [4] STO 105 [5] LOD 103 [6] ADD 104 [7] JMZ 4 [8] MUL 105 [9] STO 105 [10] HLT ... [100] 2 [101] 12 [102] 10 [103] 11 [104] 20 [105] 0 What value will be stored in cell 105 after
completing this program? Cell 105 will contain the number:
Submitted: 1 year ago.
Category: Homework
Expert:  Ingo U replied 1 year ago.
Hi,
what is your timeframe for this? I don't have the necessary materials on hand right this minute but could help you tomorrow if that's OK
Customer: replied 1 year ago.
Unfortunately I need the solution within the next 3 hours.
Customer: replied 1 year ago.
1 hour until my deadline. If you happen to be available, feel free to post a reply. If not, I understand. Thank you.
Expert:  Ingo U replied 1 year ago.
Well, to the best of my ability to hand-step through this in excel,
it looks like the program will never reach the HLT instruction, but loop forever through steps 4->5->6->7->4...
which repeated adds the contents of memory location 103 to that of 104 and stores the result in 105, which is 11+20 = 31.
So 105 will have the value 31
if and when the program is aborted by an external action...
Hope that helps.
Wait never mind I looked at it wrong, the final value is 31*34 = 1054 but since it's 8 bit numbers its 1054 mod 256 = 30
and it does reach the HLT instruction.
My bad...
Customer: replied 1 year ago.
So the final value is 30?
Expert:  Ingo U replied 1 year ago.
THIS ANSWER IS LOCKED!

You need to spend $3 to view this post. Add Funds to your account and buy credits.
Customer: replied 1 year ago.
Thank you!