Skip to content
Computation model emulator (infinite memory, infinite variable size, commands inc n, dec n w, goto w, stop, with macros)
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
mach.pro
mach.pro.user
main.cpp
mram.cpp
mram.h
stdlib.mac
ui_qt_dialog.cpp
ui_qt_dialog.h
ui_qt_dialog.ui
ui_qt_main.cpp
ui_qt_main.h
ui_qt_main.ui

README.md

macro-ram-machine

Computation model emulator (infinite memory, infinite variable size, commands inc n, dec n w, goto w, stop, with macros)

[0|1|2|3|...]

  • each register contains a natural number (limited by the type of 'adress', which is some sort of int)
  • macros supported by push_macro("name", arg_count, "commands separated by whitespace")

inc n: [n] = [n] + 1; goto k: goto k; dec n k: if ([n] != 0) [n] = [n] - 1; else goto k; stop: return;


Use QT Creator IDE to build. Requires QT libs.

You can’t perform that action at this time.