creme332 / marie-examples

A compilation of programs written in MARIE assembly language. Pseudocode and test cases are included.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

marie-examples 🐣

A compilation of programs written in MARIE Assembly Language. For each program, a description, some test cases, and the pseudocode are included.

A summary of the programs implemented is shown below:

arithmetic/
β”œβ”€ addition of two large positive numbers
β”œβ”€ division of any two integers with remainder and quotient
β”œβ”€ modulo of any two positive integers
β”œβ”€ multiplication of any two integers
data-structure/
β”œβ”€ array/
β”‚  β”œβ”€ binary-search
β”‚  β”œβ”€ input & output
β”‚  β”œβ”€ median
β”‚  β”œβ”€ sum of elements in an array
β”œβ”€ stack/
β”‚  β”œβ”€ stack operations
misc/
β”œβ”€ two-sum
β”œβ”€ hello-world
number-theory/
β”œβ”€ collatz-conjecture
β”œβ”€ euclidean-algorithm
β”œβ”€ fibonacci sequence
β”œβ”€ primality-test
sorting/
β”œβ”€ bubble-sort

Usage

Use MARIE.js or MarieSim to run the programs.

To-do

  • Format all code
  • Quicksort

More examples

About

A compilation of programs written in MARIE assembly language. Pseudocode and test cases are included.

License:MIT License