100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
MARIE questions $4.50   Add to cart

Other

MARIE questions

 15 views  0 purchase
  • Course
  • Institution

Workshop questions/answers for preparing for exams

Preview 1 out of 2  pages

  • March 5, 2022
  • 2
  • 2021/2022
  • Other
  • Unknown
avatar-seller
Workshop 4 comp arch – MARIE




0; Load 1 # loads instruction on line 1, this line is pointless as said in the question.

1: JNS X # Jumps to address X which is 4 and stores the PC which would be 2 in the DEC 0 variable, as
2 instructions have been processed and jumps to X+1 which would be line 5

2: STORE 8 #this will store the final result for later

3: HALT #stops the program

4: X, DEC 0 #Memory location is labelled X for our Jump statements, and also has a variable named
DEC 0, its used to store the PC for this program

5: LOAD 8 # Loads the contents of Memory location 8 into the accumulator which is 3

6: ADD 9 #Adds the contents of memory location 9 to the accumulator which brings the total to 7

7: JUMPI X #It jumps to memory location of X which is line 4 and uses the contents stored there as
the actual address to jump to, so it goes to 4 and then goes to 2 as that was stored there so it will
store the accumulator value of 7 into memory location 8 and then proceed to halt the program.




Answers fill in the order e.g [5] is refer to the line 5 on the picture at the top, however its multiple
choice drop down so e.g 7 for the last answer is number 7 not [7].

Example 2

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller mj_1. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $4.50. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67474 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$4.50
  • (0)
  Add to cart