Skip to content

mina1957/Tiny-Computer-Simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Tiny-Computer-Simulator

What is it?

The tiny computer simulator is Racket program that simulates the Von Neumann architecture. The simulator assembles and executes assembly language programs fed into it! Here, I used a recursive approach to craft this project while making use of the built-in struct data structure in Racket. computer-family-computer

What is in the program?

  • I constructed a framework for a RAM along with procedures to perform read and write operations on these RAMs.
  • I built a framework for a CPU comprising registers such as the accumulator and the program counter as well as wrote procedures to configure the CPU, look up values in the registers, assemble programs and produce the expected output from the program.
  • I wrote procedures for each assembly language instruction to be accepted by my Tiny Computer and mapped them with approppriate binary OPCODES.
  • I also wrote assembly language programs such as one that encrypts an input given a key and another that reverses its given input to test my Tiny Computer.
  • The code is heavily commented with explanations, details about the design and test cases. You can also find a test script at the end of the program!

hacker-hacker-man

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages