Skip to content

Simulator of Ram Machine using input tape, output tape, memory and program

Notifications You must be signed in to change notification settings

Cicko/Ram-Machine

Repository files navigation

Ram Machine Simulator

This is a program in C++ to simulate Ram Machine on Linux.

It consists on three parts:

  • Input tape
  • Output tape
  • Memory
  • Program

To compile the Ram Machine open a terminal and put

> make

It will compile all necessary files and create an executable (RamMachine). To execute correctly the Ram Machine you must indicates four parameters:

  • [input]
  • Indicates the file name of the input tape.
  • [output]
  • Indicates the file name of the output tape.
  • [program]
  • Indicates the file name of the ram program (like assembly language)
  • [size]
  • Number of registers that will have the memory

Example:

> /RamMachine input1.txt output.txt test1.ram 5

This example will use input1.txt as input, create output.txt if it doesn't exists to write in, use test1.ram to decide what to do with the input data to output the result and it will create a memory with 5 registers.

About

Simulator of Ram Machine using input tape, output tape, memory and program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published