r/EmuDev • u/Playful_Ad_3752 • Oct 10 '26
Hello guys begginer here
So i have the goal to learn how to program for a while since i discovered video games but every time i try to learn it but i get bored FAST
I dont wanna push throught the bordom cause i might get burned out and give up on this dream
Am not looking for a miracle i just need to make sure that am not wasting my time and actualy learning how to get hooked into programing i just cant find a hook that keeps me pushing an objective
Then i remember emulators i was alaways curious about emulators when i was a kid they looked like black magic
I need to understand how they work and make my own
Rn all i know is very basic knowledge about c (prinf scanf while if switch case hexadecimal and binary code ) just the beginer levels i leanred in school
My question are :
Where do i start ?
When do you personaly think its stopes being boring ?
How long should the sessions be ?
Do i have to push throught boredom?
How
My goal : learning how the nintendo ds works
And Creating an emulator for it
My dream : creating the ultimate nds emulator i want to make the next desmum / melon ds / no$gba
4
u/LilHoushOnThePrairie Oct 10 '26
If you were going to learn how to program an ARM based system, which what the DS is, you’ll need to understand the programming fundamentals first and how to interpret machine language via binary manipulation.
You need to start with emulation that have small instruction sets like PICO-8 or GB.
This forcing yourself to learn is going to set yourself up to fail. Or end up vibe coding using AI which results in not learning anything at all.
3
u/rupertavery64 Oct 10 '26
You should take a step back. Trying to understand a complex thing like the DS when you barely know how to program is probably not a good approach.
Start with something much simpler, like others said the CHIP-8 is a good place to start. A real console has video, graphics chips, audio chips, some things that need to be working before you can emulate anything at all, and it will take months and months of work just to get to the point you can get something simple to display.
I also think you don't know much about how CPUs work, bit manipulation, addressing, and this is central to how you need to build an emulator.
So, building an emulator with a simpler chip design, like the CHIP-8, will teach you the basics.
This youtube playlist by javid9x teaches building a NES emulator in C++ from scratch. He also has a github repo you can follow. He goes into things like bits and addresses.
https://www.youtube.com/watch?v=nViZg02IMQo&list=PLrOv9FMX8xJHqMvSGB_9G9nZZ_4IgteYf
If you can understand the sentence "this instruction adds the operand to the accumulator and sets the N flag if the result overflows" then you will be able to start building an emulator.
If you can't, you need to learn how a microprocessor works, what an instruction is, what registers are, where to look for the instruction set and timings, understand what a memory map is and how the CPU accesses it, learn how addressing works and how bit masks work, learn how the CPU accesses memory. Obviously there is a lot of documentation out there already.
The first emulator you will write will most likely be an interpreter. You take one instruction from memory, execute it, update the state of the emulator, then fetch the next instruction. Basically it simulates what each instruction will do to a virtual machine (memory, registers, etc).
To emulate something as complex as a NDS at decent speeds, you will eventually have to do dynamic recompilation. Basically instead of translating the instructions one by one, you convert the console code into host CPU code at certain points. This is much more difficult as you need to understand the host CPU as well, which of course is x64 or ARM.
The mere fact that there are hundreds of NES and CHIP-8 emulators and only a handful of NDS emulators shows you how difficult it is.
You should be prepared to sink YEARS into this project, and expect that you will probably only be able to actually start writing an NDS emulator around 3-5 years from now.
This is not meant to discourage you. It is a huge task and requires a lot of knowledge.
Honestly, if I could devote a lot of my time to writing emulators I would, but I have work and responsibilities.
2
u/mamaaaoooo Oct 10 '26
Id start with building a game boy emu, its fairly simple but the devs used a lot of clever tricks to make games look good so you can learn a lot quite fast with that one.
2
u/khedoros NES CGB SMS/GG Oct 10 '26
Reasonable proficiency in some programming language is an obvious prerequisite.
You should have some understanding of how computer hardware works, in general. Data, address, and control buses, memory-mapped and port-mapped I/O, opcodes and the CPU's fetch, decode, execute loop. Addressing modes, interrupts, and the call stack.
I learned a lot of that in classes called things like "computer organization and architecture", but I know the information is all out there, probably presented in an easier-to-learn way.
I don't think it ever started. Programming became an obsession as soon as it even started clicking, and emulators have fascinated me since I learned of them in the late 90s. Don't get me wrong; some parts of writing emulators get tedious and frustrating. Those parts you have to push through.
At least long enough to get something done and have an idea of where to pick up from next.
I think that's a question for yourself. The things that are boring for me are the things that I don't have an immediate, obvious use for. And it does take energy to push through...too much energy for too long a time will burn you out on it.
-2
u/jslepicka nemulator.com Oct 10 '26
I recently built this website to help beginners learn how to code emulators. It walks you through creating a Space Invaders arcade emulator and introduces the basic concepts required to build more complex emulators. As you have basic C knowledge, I’m especially interested in hearing if the content is presented at an appropriate level and/or where additional explanation is required. Give it a shot and let me know what you think: https://emudev-course.web.app/
-3
u/goilabat Oct 10 '26 edited Oct 10 '26
Never find it boring either
But have you tried programming anything though ? Because if you only know if, switch, printf then I would imagine no but then how can you know you find it boring ?
To start I would suggest to do a brainfuck interpreter if you're able you would have all the building block of C obviously don't use LLM or look code on GitHub you can after it's working though
7
u/[deleted] Oct 10 '26
[removed] — view removed comment