{"id":17053683,"url":"https://github.com/hoffi/crystal_nes","last_synced_at":"2025-03-23T05:25:01.861Z","repository":{"id":139296854,"uuid":"217352892","full_name":"hoffi/crystal_nes","owner":"hoffi","description":"A NES Emulator written in Crystal","archived":false,"fork":false,"pushed_at":"2020-07-21T15:14:35.000Z","size":1087,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T12:16:00.386Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Crystal","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hoffi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-10-24T17:14:26.000Z","updated_at":"2024-05-16T12:03:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"21a5b52c-f50f-4d75-be32-52e46cf675f2","html_url":"https://github.com/hoffi/crystal_nes","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/hoffi%2Fcrystal_nes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoffi%2Fcrystal_nes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoffi%2Fcrystal_nes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoffi%2Fcrystal_nes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoffi","download_url":"https://codeload.github.com/hoffi/crystal_nes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245060259,"owners_count":20554460,"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":[],"created_at":"2024-10-14T10:12:58.447Z","updated_at":"2025-03-23T05:25:01.834Z","avatar_url":"https://github.com/hoffi.png","language":"Crystal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CrystalNES\n\nA NES Emulator written in [Crystal](https://crystal-lang.org)\n\n## Current status\n\n![Status Screenshot](https://raw.githubusercontent.com/hoffi/crystal_nes/master/screenshot.png)\n\n- [x] Complete CPU\n- [x] Controller\n- [ ] PPU\n  - [x] Basic background rendering\n  - [x] Sprite rendering\n  - [ ] Correct timings\n- [ ] APU\n- [ ] Mappers\n  - [x] [Mapper 0 / NROM](http://wiki.nesdev.com/w/index.php/NROM)\n  - [ ] [Mapper 1 / SxROM](http://wiki.nesdev.com/w/index.php/MMC1)\n  - [ ] [Mapper 2 / UxROM](http://wiki.nesdev.com/w/index.php/UxROM)\n  - [ ] [Mapper 3 / CNROM](http://wiki.nesdev.com/w/index.php/INES_Mapper_003)\n- [ ] GUI\n  - [x] PPU output\n  - [x] CPU Flags and Register values\n  - [ ] Disassembler\n  - [ ] Debugger\n\n## Usage\n\n[raylib](https://www.raylib.com) needs to be installed on the system.\n\n```sh\ncrystal run main.cr -- path/to/rom.nes\n```\n\n### Key mappings\n\n| Key   | NES Function   |\n| ----- |:--------------:|\n| A     | Select         |\n| S     | Start          |\n| Y/Z   | A              |\n| X     | B              |\n| Up    | Up             |\n| Right | Right          |\n| Left  | Left           |\n| Down  | Down           |\n| R     | Reset          |\n| Space | Play/Pause     |\n\n## References\n\n[Nesdev Wiki](http://wiki.nesdev.com/w/index.php/NES_reference_guide)\n\n[6502 Reference](http://obelisk.me.uk/6502/reference.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoffi%2Fcrystal_nes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoffi%2Fcrystal_nes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoffi%2Fcrystal_nes/lists"}