https://github.com/binji/smolnes Skip to content Toggle navigation Sign up * Product + Actions Automate any workflow + Packages Host and manage packages + Security Find and fix vulnerabilities + Codespaces Instant dev environments + Copilot Write better code with AI + Code review Manage code changes + Issues Plan and track work + Discussions Collaborate outside of code + Explore + All features + Documentation + GitHub Skills + Blog * Solutions + By Plan + Enterprise + Teams + Compare all + By Solution + CI/CD & Automation + DevOps + DevSecOps + Case Studies + Customer Stories + Resources * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles + Repositories + Topics + Trending + Collections * Pricing [ ] * # In this repository All GitHub | Jump to | * No suggested jump to results * # In this repository All GitHub | Jump to | * # In this user All GitHub | Jump to | * # In this repository All GitHub | Jump to | Sign in Sign up {{ message }} binji / smolnes Public * Notifications * Fork 0 * Star 58 NES emulator in <5000 bytes of C++ 58 stars 0 forks Star Notifications * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights More * Code * Issues * Pull requests * Actions * Projects * Security * Insights binji/smolnes This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. main Switch branches/tags [ ] Branches Tags Could not load branches Nothing to show {{ refName }} default View all branches Could not load tags Nothing to show {{ refName }} default View all tags Name already in use A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch? Cancel Create 1 branch 0 tags Code * Clone HTTPS GitHub CLI [https://github.com/b] Use Git or checkout with SVN using the web URL. [gh repo clone binji/] Work fast with our official CLI. Learn more. * Open with GitHub Desktop * Download ZIP Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching GitHub Desktop If nothing happens, download GitHub Desktop and try again. Launching Xcode If nothing happens, download Xcode and try again. Launching Visual Studio Code Your codespace will open once ready. There was a problem preparing your codespace, please try again. Latest commit @binji binji Add image of source code. ... b84855e Oct 28, 2022 Add image of source code. b84855e Git stats * 4 commits Files Permalink Failed to load latest commit information. Type Name Latest commit message Commit time img Add image of source code. Oct 28, 2022 .gitignore Initial Oct 27, 2022 Makefile Initial Oct 27, 2022 README.md Add image of source code. Oct 28, 2022 deobfuscated.cc deobfuscated Oct 28, 2022 smolnes.cc Initial Oct 27, 2022 View code smolnes Features Screenshots Building Running Updating keys README.md smolnes A NES emulator in ~5000 significant bytes of c++. Features Plays some mapper 0 and mapper 1 games. Screenshots Bionic Commando Donkey Kong Dragon Warrior Adventures of Lolo Legend of Zelda Metroid Mega Man 2 Ninja Gaiden Rad Racer Super Mario Bros. Teenage Mutant Ninja Turtle Source Code Building Probably only builds on Linux and macOS. $ make Running $ ./smolnes Keys: Action Key DPAD-UP | DPAD-DOWN | DPAD-LEFT - DPAD-RIGHT - B Z A X START Enter SELECT Tab Updating keys Look for lines 23 and 24 in the source code. The following table shows which numbers map to which keyboard keys: number default key gameboy button 27 X A Button 29 Z B Button 43 Tab Select Button 40 Return Start Button 79 Arrow Right DPAD Right 80 Arrow Left DPAD Left 81 Arrow Down DPAD Down 82 Arrow Up DPAD Up Replace the numbers on this line with one from the SDL scancode list. About NES emulator in <5000 bytes of C++ Resources Readme Stars 58 stars Watchers 1 watching Forks 0 forks Releases No releases published Packages 0 No packages published Languages * C++ 99.5% * Makefile 0.5% Footer (c) 2022 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact GitHub * Pricing * API * Training * Blog * About You can't perform that action at this time. You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.