logo

Calculation of the Fib (n) with MARIE

9 Pages583 Words341 Views
   

Added on  2021-05-31

About This Document

Subt C1 // A substraction is done with the value of C1 Store Ctr Load F2 // The value of F2 is loaded on the accumulator Add F1 // An addition of F1 is done with the F2 Store F3 // The value of the addition is stored in F3 on the accumulator Load F1 // The value of F1 is loaded on the accumulator Store F2 // The value of F2 is stored on accumulator Load F3 Store F1 Load

Calculation of the Fib (n) with MARIE

   Added on 2021-05-31

ShareRelated Documents
Running head: COMPUTER ORGANIZATION AND ARCHITECTUREAssignment 2: MARIE and ISAName of the StudentName of the UniversityAuthor’s Note
Calculation of the Fib (n) with MARIE_1
1COMPUTER ORGANIZATION AND ARCHITECTURETable of ContentsAnswer to Question 1:.....................................................................................................................2Answer to Question 2:.....................................................................................................................5Answer to Question 3:.....................................................................................................................6Bibliography....................................................................................................................................8
Calculation of the Fib (n) with MARIE_2
2COMPUTER ORGANIZATION AND ARCHITECTUREAnswer to Question 1:1.a. The MARIE program is created for the calculation of the Fib (n) where user inputs is n and isgiven below - ORG 100Input Input numberStore N // Take user input for printing the number of termsStore Ctr // Stores the variable of the counter to the accumulatorLoop1, ClearLoad Ctr // The value stored on the accumulator is loaded to the processor. Subt C1 // A substraction is done with the value of C1Store CtrLoad F2 // The value of F2 is loaded on the accumulatorAdd F1 // An addition of F1 is done with the F2Store F3 // The value of the addition is stored in F3 on the accumulatorLoad F1 // The value of F1 is loaded on the accumulatorStore F2 // The value of F2 is stored on accumulatorLoad F3
Calculation of the Fib (n) with MARIE_3

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
MARIE and ISA: Answers to Questions 1-3
|9
|811
|325

Computer Organization and Architecture Assignment 2: MARIE and ISA
|9
|529
|59

Computer Organization and Architecture - Assignment
|10
|718
|42

Assignment : Computer Organisation and Architecture
|12
|495
|20

Assembly Language Marie Programming
|12
|574
|96

The Essentials of Computer Organization and Architecture
|7
|769
|65