Marie Activities
Readings and Marie preparation
- Reading assignment in the supplemental textbook (Chapter 4)
- 4.8 Marie
- 4.9 Instruction Processing
- 4.10 A Simple Program
- Marie Simulator zip file
- Online Marie Simulator
- Assignment for
MondayWednesday by start of class: Step through ex4_1.mas and ex4_2.mas in the zip file to learn how they work.
- Quiz -- takehome open book
- Due Monday Jan 28th at 11:59 PM
- Refer to Chapter 4 of the ebook. In particular focus on these sections:
- Figure 4.8
- Section 4.8.2 Registers and Buses
- Figure 4.9
- Marie Addition Program Due Monday Jan 28th at 11:59 PM
- Start at location 100
- Read a value between 0 and 4 using the input instruction and save this value.
- Read another value between 0 and 4 using the input instruction.
- Add these two values.
- Display the sum of the two values using the output instruction.
- Jump back to step 2 to repeat (read another two inputs and display the sum)
- Test this Marie Addition Program using these tests:
- 0 plus 0 equals 0
- 0 plus 4 equals 4
- 3 plus 4 equals 7
- 2 plus 1 equals 3
- Submit your code (just the .mas file) to the corresponding Dropbox by the due date.
- Marie Datapath Exercise
-
Datapath Simulator Documentation
-
addition_datapath.mas
- Run this .mas file in the online MARIE datapath simulator to carefully observe what is happening at each microstep.
- In a separate text document called datapath.txt describe what is happening in each microstep. You must have a specific
correct answer for step 1.a, step 1.b, and the rest through step 4.h. This means you will have 30 answers.
Only one answer per line (e.g. 1.b is on a line after 1.a).
- Note -- some of these answers will be duplicates.
- Submit your datapath.txt file to the Addition Datapath dropbox by Wednesday, January 30th at 11:59 PM.
Download Chapter 4 in this text. We will be using this for a week or a bit more. We will be
using the Marie simulator to learn about computer architecture via a simplified assembly language.
Course text link (ebook)