{"id":20531719,"url":"https://github.com/ocfbnj/nesemulator","last_synced_at":"2025-10-30T02:54:15.401Z","repository":{"id":118698876,"uuid":"368782606","full_name":"ocfbnj/NesEmulator","owner":"ocfbnj","description":"A cross-platform NES emulator in C++.","archived":false,"fork":false,"pushed_at":"2024-06-17T15:57:46.000Z","size":2760,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T06:12:12.357Z","etag":null,"topics":["cpp","emulator","nes"],"latest_commit_sha":null,"homepage":"","language":"C++","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/ocfbnj.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":"2021-05-19T07:34:49.000Z","updated_at":"2025-04-12T14:16:44.000Z","dependencies_parsed_at":"2023-06-05T04:15:08.174Z","dependency_job_id":null,"html_url":"https://github.com/ocfbnj/NesEmulator","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocfbnj%2FNesEmulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocfbnj%2FNesEmulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocfbnj%2FNesEmulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ocfbnj%2FNesEmulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ocfbnj","download_url":"https://codeload.github.com/ocfbnj/NesEmulator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248830398,"owners_count":21168272,"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":["cpp","emulator","nes"],"created_at":"2024-11-16T00:07:17.762Z","updated_at":"2025-10-30T02:54:15.306Z","avatar_url":"https://github.com/ocfbnj.png","language":"C++","readme":"# NesEmulator\n\n[![CI](https://github.com/ocfbnj/NesEmulator/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/ocfbnj/NesEmulator/actions/workflows/ci.yml)\n\nThis is an NES emulator. It implements Mapper0-4, which cover about 80% of iNes rom. The following games have been\ntested, other games may or may not work:\n\n- Super Mario Bros.\n- Battle City\n- Contra\n- Teenage Mutant Ninja Turtles\n- Double Dragon\n- Zelda\n\n## Usage\n\n~~~bash\n./NesEmulator \u003cnes file path\u003e\n~~~\n\n### Controller\n\n#### Player1\n\n| Button | Mapped to |\n| :----: | :-------: |\n|   A    |     J     |\n|   B    |     K     |\n| Select |   Space   |\n| Start  |   Enter   |\n|   Up   |     W     |\n|  Down  |     S     |\n|  Left  |     A     |\n| Right  |     D     |\n\n#### Player2\n\n| Button |  Mapped to  |\n| :----: | :---------: |\n|   A    |    Num1     |\n|   B    |    Num2     |\n| Select | Right Shift |\n| Start  |    Num0     |\n|   Up   |     Up      |\n|  Down  |    Down     |\n|  Left  |    Left     |\n| Right  |    Right    |\n\n#### Other\n\n| Button |    Effect     |\n| :----: | :-----------: |\n|   R    |     Reset     |\n|   I    |  Quick Save   |\n|   L    | Quick Restore |\n\n## How to build\n\n### Prerequisites\n\n- A compiler supporting C++20.\n- Python3 installed.\n- CMake installed.\n\n### Building with Conan Package Manager\n\n1. Install Conan\n\n    ~~~bash\n    pip install conan -U\n    conan profile detect --force\n    ~~~\n\n2. Clone and Build\n\n    **Windows**\n\n    ~~~bash\n    git clone https://github.com/ocfbnj/NesEmulator.git\n    cd NesEmulator\n    conan install . --build=missing\n    cmake --preset=conan-default\n    cmake --build --preset=conan-release\n    ~~~\n\n    **Linux, macOS**\n\n    ~~~bash\n    git clone https://github.com/ocfbnj/NesEmulator.git\n    cd NesEmulator\n    conan install . --build=missing\n    cmake --preset=conan-release\n    cmake --build --preset=conan-release\n    ~~~\n\nNow, you can find the binary in `build` directory.\n\n## Screenshots\n\n![Super Mario Bros](./images/Super%20Mario%20Bros.png)\n![Battle City](images/Battle%20City.png)\n![Contra](./images/Contra.png)\n![Teenage Mutant Ninja Turtles III](./images/Teenage%20Mutant%20Ninja%20Turtles%20III.png)\n![Double Dragon II](./images/Double%20Dragon%20II.png)\n\n## References\n\nDeveloping an NES emulator is exciting and interesting 😀. If you also want to develop your own one, you can refer to the following tutorials and references. ❤️\n\n### Nesdev Wiki\n\n- \u003chttps://wiki.nesdev.org\u003e\n\n### Tutorials\n\n- \u003chttps://bugzmanov.github.io/nes_ebook\u003e\n- \u003chttps://www.youtube.com/playlist?list=PLrOv9FMX8xJHqMvSGB_9G9nZZ_4IgteYf\u003e\n- \u003chttps://www.jianshu.com/u/daef9bb95a24\u003e\n\n### Other NES implementations\n\n- \u003chttps://github.com/bugzmanov/rustness_monster\u003e\n- \u003chttps://github.com/fogleman/nes\u003e\n- \u003chttps://github.com/OneLoneCoder/olcNES\u003e\n- \u003chttps://github.com/amhndu/SimpleNES\u003e\n\n### CPU\n\n- \u003chttps://skilldrick.github.io/easy6502\u003e\n- \u003chttps://www.masswerk.at/6502/6502_instruction_set.html\u003e\n- \u003chttp://obelisk.me.uk/6502/\u003e (This page was closed.)\n\n### Graphic\n\n- \u003chttps://learnopengl-cn.github.io\u003e\n- \u003chttps://www.youtube.com/playlist?list=PLPaoO-vpZnumdcb4tZc4x5Q-v7CkrQ6M-\u003e\n- \u003chttps://github.com/OneLoneCoder/olcPixelGameEngine\u003e\n\n### Audio\n\n- \u003chttps://www.sfml-dev.org/tutorials/2.5/audio-streams.php\u003e\n- \u003chttps://github.com/SFML/SFML/blob/HEAD/src/SFML/Audio/SoundStream.cpp\u003e\n- \u003chttps://www.youtube.com/watch?v=tgamhuQnOkM\u003e\n- \u003chttps://www.openal.org/documentation/OpenAL_Programmers_Guide.pdf\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focfbnj%2Fnesemulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Focfbnj%2Fnesemulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Focfbnj%2Fnesemulator/lists"}