Skip to content

Akardy/computer-simulator-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6726727 · Jan 27, 2025

History

4 Commits
Jan 27, 2025
Jan 27, 2025
Jan 27, 2025
Jan 27, 2025
Jan 27, 2025
Jan 27, 2025

Repository files navigation

Simple Computer Simulator

A basic computer simulator to execute basic instructions using a custom instruction set and memory model.

Features

  • Instruction Set:
    • 0000: Load from memory to R1
    • 0001: Store from R1 to memory
    • 0010: Add a constant to a register
    • 0011: Subtract a constant from a register
    • 0100: Bitwise AND with a constant
    • 0101: Move a constant to a register
    • 0111: Halt execution
  • Registers: R1, R2, R3 (represented with 2 bits each)
  • Memory: Programs are stored in the first 512 locations.

About

Building a simple computer simulator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published