A collection of small programs written in MARIE.
file | LoC | description |
---|---|---|
addition.mas | 11 | Introductory program to display simple addition. |
array.mas | 47 | Simple representation of an array data structure and interation. |
fibonacci.mas | 54 | Displays the Fibonacci sequence using loops. |
forloop.mas | 31 | Introductory program to iteration using for loops. |
function.mas | 25 | Introductory program to function calls. |
helloworld.mas | 33 | String iteration using loops. |
ifelse.mas | 26 | Introductory program to control-flow statements. |
modulo.mas | 23 | Example of a modulo operation. |
overflow.mas | 16 | An example of integer overflow. |
stack.mas | 129 | An example of an array based stack data structure. |
subtraction.mas | 11 | Introductory program to display simple subtraction. |
swap.mas | 24 | Simple variable swap betweem two ASCII characters. |
tolower.mas | 49 | Converts a string to lower-case ASCII characters. |
usrin.mas | 34 | Introductory program to using user input. |
while.mas | 17 | Introductory program to iteration using while loops. |
It's important to note that these programs are not easily adaptable. Since pointers are set by hand, any changes to the code will invalidate all pointers (wild pointers) causing unexpected behavior.
Essentials of Computer Organization and Architecture, Second Edition by Linda Null and Julia Lobur for the creation of the Marie Simulator