Skip to content

Latest commit

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

RAM Simulator (Random Access Machine)

A mathematical model of real computers (Theoretical computer science)

Example

Input

Binary to decimal RAM

constRam=require("./RAM")functionp1(){consttape_alphabet=["0","1","#","_"]consttape_input="101"constanim_speed=1000constr=newRam(tape_alphabet,anim_speed)r.READ()r.JUMP(9,4)r.STORE(1)r.LOAD(0)r.ADD(0)r.ADD(1)r.STORE(0)r.JUMP(1)r.LOAD(0)r.WRITEACC()r.END()r.run(tape_input)}p1()

Example gif

About

RAM Simulator (Random Access Machine). A mathematical model of real computers (Theoretical computer science)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages