logo

Assembly Language Marie Programming

12 Pages574 Words96 Views
   

Added on  2021-05-27

Assembly Language Marie Programming

   Added on 2021-05-27

ShareRelated Documents
Running head: MARIE PROGRAMMINGAssembly Language:Marie ProgrammingName of the Student:Name of the University:Author Note
Assembly Language Marie Programming_1
1MARIE PROGRAMMING Answer to question number 1a.The following code provides the algorithm of the Fibonacci series:ORG 100Input // the user has to Input the numberStore N // The user inputs the number of terms to be printedStore Ctr // It stores the counter variable in the accumulatorLoop1, ClearLoad Ctr // The counter is loaded into the processor form the accumulatorSubt C1 // The counter is subtracted by c1Store CtrLoad F2 // F2 is loaded into the accumulatorAdd F1 // F1 is addedStore F3 // F3 is stored into the accumulatorLoad F1 // F1 is loaded into the accumulatorAdd F1 // F1 is addedStore F3 // F3 is stored into the accumulatorLoad F1 // F1 is loaded into the accumulatorStore F2 // F2 is stored into the accumulatorLoad F3Store F1Load CtrSkipcond 400 // Check condition is skipped hereJump Loop1 // Jump condition to the location 400
Assembly Language Marie Programming_2
2MARIE PROGRAMMING Load CtrOutputLoad N // Output is NOutputLoad F1 // the Final output is placedOutputHalt // control haltsN, DEC 0Ctr, DEC 0C1, DEC 1F1, DEC 0F2, DEC 1F3, DEC 0Input: 1
Assembly Language Marie Programming_3
3MARIE PROGRAMMING Output:Input: 10
Assembly Language Marie Programming_4

End of preview

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

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

Calculation of the Fib (n) with MARIE
|9
|583
|341

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

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