{"id":15060551,"url":"https://github.com/izuzak/friscjs","last_synced_at":"2025-04-10T06:11:20.936Z","repository":{"id":57241871,"uuid":"1999512","full_name":"izuzak/FRISCjs","owner":"izuzak","description":"FRISC processor simulator in JavaScript","archived":false,"fork":false,"pushed_at":"2024-12-30T10:52:06.000Z","size":585,"stargazers_count":23,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-07T01:51:30.928Z","etag":null,"topics":["educational-software","javascript","processor-simulator"],"latest_commit_sha":null,"homepage":"https://ivanzuzak.info/FRISCjs/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/izuzak.png","metadata":{"files":{"readme":"README.markdown","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.markdown","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":"2011-07-05T09:02:31.000Z","updated_at":"2025-01-16T19:24:55.000Z","dependencies_parsed_at":"2024-10-12T21:01:07.481Z","dependency_job_id":"752a5777-4fe2-4e54-83d7-c44bc4f37664","html_url":"https://github.com/izuzak/FRISCjs","commit_stats":{"total_commits":238,"total_committers":5,"mean_commits":47.6,"dds":0.3529411764705882,"last_synced_commit":"7823339c7072fc055f1dbe84e635cbe54c5175d1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izuzak%2FFRISCjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izuzak%2FFRISCjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izuzak%2FFRISCjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/izuzak%2FFRISCjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/izuzak","download_url":"https://codeload.github.com/izuzak/FRISCjs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166925,"owners_count":21058481,"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":["educational-software","javascript","processor-simulator"],"created_at":"2024-09-24T23:00:17.615Z","updated_at":"2025-04-10T06:11:20.910Z","avatar_url":"https://github.com/izuzak.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"FRISCjs\n=======\n\nFRISCjs is a [FRISC processor](http://www.fer.hr/rasip/knjige/frisc) simulator written in JavaScript.\n\n\u003cimg src=\"https://raw.github.com/izuzak/FRISCjs/master/friscjs-screenshot.png\" /\u003e\n\nThe FRISCjs simulator has two parts: a [FRISC assembler](src/friscasm.peg) (built using PEGjs) which translates FRISC assembly code to machine code and a [FRISC CPU simulator](src/friscsim.js) which executes machine code.\n\nFurthermore, there are two user interfaces to the simulator: a [Web application graphical interface](webapp/index.html) and a [NodeJS command-line interface](consoleapp/frisc-console.js).\nThe Web application interface is available [here](http://izuzak.github.com/FRISCjs/webapp/) and supports many cool features like breakpoints and step-by-step execution.\n\n## Usage\n\n### Using the assembler and simulator libraries\n\nIn node, install using npm:\n\n    \u003e npm install friscjs\n\nand then access the assembler and simulator:\n\n    var friscjs = require(\"friscjs\");\n    var asm = friscjs.assembler;\n    var sim = friscjs.simulator;\n\nIn a browser, link to the browser script that contains both the assembler and simulator:\n\n    \u003cscript src=\"lib/friscjs-browser.js\"\u003e\u003c/script\u003e\n\nand then access the assembler and simulator:\n\n    var asm = friscjs.assembler;\n    var sim = friscjs.simulator;\n\nAfter installing the libraries, check out the [FRISCjs API docs](API.markdown) for instructions on using them.\n\n### Using the simulator console and Web applications\n\nTo use the Web-based simulator, launch the `webapp/index.html` page in a browser or access the on-line version at [http://izuzak.github.com/FRISCjs/webapp/](https://izuzak.github.com/FRISCjs/webapp/).\n\nTo use the console-based simulator application, clone the FRISCjs repo:\n\n    \u003e git clone https://github.com/izuzak/FRISCjs.git\n\nand then run the app with node to see the instructions:\n\n    \u003e node ./consoleapp/frisc-console.js\n\n## Development\n\n1. Fork and/or clone repo: `git clone https://github.com/izuzak/FRISCjs.git`\n2. Change dir to noam: `cd FRISCjs`\n3. Install dependencies: `npm install`\n4. Make changes to noam sources (`./src`), tests (`./tests`) or apps (`./webapp/*` and `./consoleapp/*`)\n5. Build using grunt: `grunt` (on linux), `grunt.cmd` (on windows)\n6. Run tests: `npm test`\n7. Fix issues reported by grunt and tests, and then repeat 5)\n8. Commit, push and make a pull request, or send a git patch by e-mail\n9. E-mail me if you have questions (e-mail address is below)\n\n## Similar projects\n\nThis project was inspired by the [GameBoy emulator in JavaScript](http://imrannazar.com/GameBoy-Emulation-in-JavaScript:-The-CPU) and [jsLinux](http://bellard.org/jslinux/tech.html) projects.\nThere are many other processor simulators in JavaScript, such as the [GameBoy Color emulator](https://github.com/grantgalitz/GameBoy-Online), [visual transistor-level simulation of the 6502 CPU](http://www.visual6502.org/JSSim/expert.html), [6502 compatible assembler and emulator](http://www.6502asm.com/), [PicoBlaze Assembler and Emulator in JavaScript](https://github.com/FlatAssembler/PicoBlaze_Simulator_in_JS), and this [other 6502 CPU simulator](http://skilldrick.github.com/easy6502/).\n\n## Credits\n\nFRISCjs was developed by [Ivan Zuzak](http://ivanzuzak.info). Contributors: [Ivan Budiselic](https://github.com/ibudiselic), [Stanko Krtalic](https://github.com/Stankec).\n\nFRISCjs is built with many open-source projects:\n\n * [PegJS](https://github.com/dmajda/pegjs) - used for generating the FRISC assembly code parser.\n * [NodeJS](https://github.com/joyent/node) - used for the command-line version of the simulator.\n * [jQuery](http://jquery.com) - used for the Web application version of the simulator.\n * [Bootstrap](http://twitter.github.com/bootstrap) - used for the Web application version of the simulator.\n * [Ace](http://ace.ajax.org/) - used as the editor for the Web application version of the simulator.\n * [Mustache](https://github.com/janl/mustache.js/) - used for client-side templates.\n * [Keymaster](https://github.com/madrobby/keymaster) - used for reconfiguring/disabling keyboard shortcuts.\n\n## License\n\nLicensed under the [Apache 2.0 License](https://github.com/izuzak/FRISCjs/blob/master/LICENSE.markdown).\n\n[![gaugestracking alpha](https://secure.gaug.es/track.gif?h[site_id]=5162c171f5a1f5418800004a\u0026h[resource]=http%3A%2F%2Fgithub.com%2Fizuzak%2FFRISCjs\u0026h[title]=FRISCjs%20%28GitHub%29\u0026h[unique]=1\u0026h[unique_hour]=1\u0026h[unique_day]=1\u0026h[unique_month]=1\u0026h[unique_year]=1 \"ivanzuzak.info\")](http://ivanzuzak.info/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizuzak%2Ffriscjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fizuzak%2Ffriscjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fizuzak%2Ffriscjs/lists"}