{"id":17982694,"url":"https://github.com/exane/ram_model","last_synced_at":"2025-04-04T01:49:32.874Z","repository":{"id":78155811,"uuid":"90723756","full_name":"exane/ram_model","owner":"exane","description":"RAM Simulator (Random Access Machine). A mathematical model of real computers (Theoretical computer science)","archived":false,"fork":false,"pushed_at":"2017-05-10T11:34:50.000Z","size":2,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T13:32:47.445Z","etag":null,"topics":["assembly","mathematics","playground","ram","random-access-machine","simulation","theoretical-computer-science"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/exane.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-05-09T08:49:57.000Z","updated_at":"2017-05-09T10:48:59.000Z","dependencies_parsed_at":"2023-07-27T10:00:31.613Z","dependency_job_id":null,"html_url":"https://github.com/exane/ram_model","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exane%2Fram_model","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exane%2Fram_model/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exane%2Fram_model/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exane%2Fram_model/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exane","download_url":"https://codeload.github.com/exane/ram_model/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107833,"owners_count":20884797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["assembly","mathematics","playground","ram","random-access-machine","simulation","theoretical-computer-science"],"created_at":"2024-10-29T18:14:53.079Z","updated_at":"2025-04-04T01:49:32.846Z","avatar_url":"https://github.com/exane.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RAM Simulator (Random Access Machine)\r\nA mathematical model of real computers (Theoretical computer science)\r\n\r\n## Example\r\n\r\nInput\r\n\r\nBinary to decimal RAM\r\n```js\r\nconst Ram = require(\"./RAM\")\r\n\r\nfunction p1() {\r\n  const tape_alphabet = [\"0\", \"1\", \"#\", \"_\"]\r\n  const tape_input = \"101\"\r\n  const anim_speed = 1000\r\n\r\n  const r = new Ram(tape_alphabet, anim_speed)\r\n\r\n  r.READ()\r\n  r.JUMP(9, 4)\r\n  r.STORE(1)\r\n  r.LOAD(0)\r\n  r.ADD(0)\r\n  r.ADD(1)\r\n  r.STORE(0)\r\n  r.JUMP(1)\r\n  r.LOAD(0)\r\n  r.WRITEACC()\r\n  r.END()\r\n\r\n  r.run(tape_input)\r\n}\r\n\r\np1()\r\n```\r\n\r\n![Example gif](http://i.imgur.com/YhOLwJL.gif)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexane%2Fram_model","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexane%2Fram_model","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexane%2Fram_model/lists"}