Skip to content
/ taio-ram Public

Simulation of a particular RAM machine model

Notifications You must be signed in to change notification settings

kt0d/taio-ram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simulation of a particular RAM machine model with indirect addressing.

There are 6 available instructions:
add s reg       - append symbol s to register reg
del reg         - delete first symbol from register reg
clr reg         - remove all symbols from register reg
cpy dst src     - copy all symbols from register src to register dst
jmp l           - jump to label lab
jmpif s reg l   - jump to label lab if the first symbol of register reg is s

Any alphanumeric string that appeared in program followed by colon is valid label.

Direct addressing: any alphanumeric string, e.g. `wer32r2r`
Indirect addressing: any address in parentheses, e.g. `(wer32r2r)`

Source is read from stdin.

About

Simulation of a particular RAM machine model

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published