Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/exane/ram_model
RAM Simulator (Random Access Machine). A mathematical model of real computers (Theoretical computer science)
https://github.com/exane/ram_model
assembly mathematics playground ram random-access-machine simulation theoretical-computer-science
Last synced: about 1 month ago
JSON representation
RAM Simulator (Random Access Machine). A mathematical model of real computers (Theoretical computer science)
- Host: GitHub
- URL: https://github.com/exane/ram_model
- Owner: exane
- Created: 2017-05-09T08:49:57.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-10T11:34:50.000Z (over 7 years ago)
- Last Synced: 2024-10-29T18:24:38.155Z (3 months ago)
- Topics: assembly, mathematics, playground, ram, random-access-machine, simulation, theoretical-computer-science
- Language: JavaScript
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RAM Simulator (Random Access Machine)
A mathematical model of real computers (Theoretical computer science)## Example
Input
Binary to decimal RAM
```js
const Ram = require("./RAM")function p1() {
const tape_alphabet = ["0", "1", "#", "_"]
const tape_input = "101"
const anim_speed = 1000const r = new Ram(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](http://i.imgur.com/YhOLwJL.gif)