Skip to main content Link Search Menu Expand Document (external link)


RAM computer will recognize if automatic emulation is executed. In the case of non-interactive mode (--no-gui), each abstract tape is redirected to a file. The format of the files is described in abstract tape documentation.


Command line for starting non-interactive automatic emulation:

./emuStudio -cf config/RandomAccessMachineRAM.toml --input-file examples/ramc-ram/factorial.ram auto --no-gui
  • computer config/RandomAccessMachineRAM.toml will be loaded
  • input file for compiler is one of the standard examples
  • (auto) automatic emulation will be executed
  • (--no-gui) non-interactive mode will be set

After the run, the following output on the stdout can be expected:

[INFO] Starting logging symbols changes to a file: storage.out
[INFO] Starting logging symbols changes to a file: input_tape.out
[INFO] Starting logging symbols changes to a file: output_tape.out
[INFO] Starting emulation automation...
[INFO] Emulating computer: Random Access Machine (RAM)
[INFO] Compiler: RAM Machine Assembler, version 0.41
[INFO] CPU: Random Access Machine (RAM), version 0.41
[INFO] Memory: RAM Program Tape, version 0.41-SNAPSHOT
[INFO] Memory size: 0
[INFO] Device: Storage, version 0.41
[INFO] Device: Input tape, version 0.41
[INFO] Device: Output tape, version 0.41
[INFO] Compiling input file: examples/ramc-ram/factorial.ram
[INFO] Compiler started working.
[INFO] [INFO   ] RAM Machine Assembler, version 0.41
[INFO] [INFO   ] Compile was successful.
	Output: /home/emuStudio/examples/ramc-ram/factorial.bram
[INFO] [INFO   ] Compiled file was loaded into program memory.
[INFO] Compilation finished.
[INFO] Resetting CPU...
[INFO] Running emulation...
[INFO] Normal stop
[INFO] Instruction location = 0x0011
[INFO] Emulation completed

Then, in the current working directory, there will be created three new files:

  • input_tape.out: contains all input tape symbols
  • storage.out: contains log of register tape changes during emulation
  • output_tape.out: contains all output tape symbols

Content of each file is a human-readable text file, but also parseable by computer. Every row has format:

position symbol

where position is zero-based index of a symbol on particular tape, and symbol is the symbol on that position. Abstract tapes of RAM machine are left-bounded, therefore all positions start at 0.