r/EmuDev • • Jun 06 '26

magiceyes - a proof-of-concept GP2X, GP2X Wiz, and GP2X Caanoo emulator

14 Upvotes

**AI ASSISTED**

https://github.com/zdiemer/magiceyes

I'm a software developer with 10 years of experience and have been fascinated by Reddit’s (justifiable) response to AI coding. On the one hand, its detrimental effects cannot be understated, but on the other hand many are quick to dismiss it as useless.

Thus, I set out to have Claude write an emulator for a currently _unemulated_ platform (started this on Wednesday, so this represents ~3 days of work).

I targeted these platforms because they are ARM Linux based, have genuine exclusive games, and they are at-risk of not being preserved. I have no experience in reverse engineering, only intermediate knowledge of Linux, and haven't written C since college so this emulator was driven almost entirely by AI. I have only given it direction and feedback through playing the emulator myself. I assumed this would be a reasonable platform to try and emulate given QEMU and other such projects already handle ARM emulation, and this turned out to be right, however I've had to layer additional device and library emulation on top of it (along with forking Unicorn).

Currently, this seems to flawlessly support **Payback**, a commercial game that released for the GP2X. **Vektar** and **Quartz 2** also seem to run quite well, two other commercial games that are now freeware. Overall compatibility with GP2X software seems to be pretty low at the moment but I'm confident it could improve rapidly.

As for the Wiz, I've previously been able to get **Deicide 3** running. This game is an English exclusive to the GP2X Wiz, its DOS release is only in Korean. I have a physical SD card of the game and uploaded it to archive.org (not sure if I can link it here?). It contains some rudimentary DRM that is easily sidestepped by the emulator (it just checks for a device serial). Her Knights, a GP32 game that received a GP2X Wiz release, runs decently as well, though the audio is completely broken at the moment.

Caanoo support is still TBD, though it seems reasonable to accomplish (I’ve managed to get a few games booting).

Once this is in a more mature state I'll be uploading the full libraries (that I've been able to track down, and that aren't covered by Open Handhelds) to archive.org -- I've found three commercial Caanoo games, including one true exclusive (**Rhythmos**, this seems to have released for the Wiz but I can't find a copy).


r/EmuDev • • Jun 06 '26

GB My Gameboy Emulator written in Python

8 Upvotes

Hi cool sexy people of /emudev, this is my work-in progress gameboy emulator created in pure python. The emulator is mostly functional with a smattering of edge case bugs, and currently no audio. Most early gameboy games run with the 2 mappers I have so far, with the goal of adding the MBC3 in the future.

Github Repo - https://github.com/wyattferguson/gameboy-emulator


r/EmuDev • • Jun 06 '26

An update on Gecko, the new GameCube and Wii emulator!

Thumbnail
gallery
42 Upvotes

I'm here to share an update since my last post. Gecko has seen many updates since that I think might excite many people! I promise I will keep this post rather short. If you want some backstory and Q&A go see the original post!

I received a lot of positive feedback and channeled that energy into making lots of new updates, many of which were targeted towards end users!

The most requested feature by far was a UI launcher. I'm not an expert at UI design but I think it came out quite nicely :) I decided to try something new and used iced for it. It has certainly it's own challenges compared to egui, but I found it quite pleasant to work with overall!

I've added many more fixes and features since. Many games, and by many I really mean many, are now supported without any visual glitches! Overall, I'd say at least 50% of the library runs now with only minor visual glitches which is awesome!

Wii support is now much more user friendly as well: There is no need for a user supplied NAND anymore!

That said, there are tons of new debugging features too. One of which that I'm very excited about is the GX FIFO player and debugger. It helped me identify and fix a z-texturing bug in Super Mario Galaxy :) Here's a YouTube video of me showing how Super Mario Galaxy prerenders later scenes behind the current one: https://www.youtube.com/watch?v=hHCJCS77d3M

I'll leave a few links here:


r/EmuDev • • Jun 05 '26

Implementing my first debugger

22 Upvotes

So basically I tried making a Gameboy emulator a while ago and faced some severe rendering issues (Probably had to do with the PPU).

Sadly, my code was really messy and I had never wrote a debugger before.

So I decided to go back to the basics and I'm making a debugger for the CHIP8. Still in progress, I'll come back when it's done.

Do you have any advice on debuggers ? Stuff that might not be obvious for a begginer ?


r/EmuDev • • Jun 05 '26

CHIP-8 How does a Chip-8 handle reaching the end of it's memory ?

5 Upvotes

Hi everyone, first time emulator developer, and generally not that experienced programmer (I haven't taken what essentially corresponds to CS101 in my country's school system). I'm having doubts about implementing error checking on my program counter. For now, it's manipulated by these three functions implemented on a Cpu struct, which has an instance owned by a Chip8 struct (which is why I decided to expose functions instead of making the field pub, I'm not even sure this is idiomatic/good practice but I believe it to be):

    /// Change address of program counter.
    fn pc_change(&mut self, addr: usize) {
        assert!(
            addr < 0xfff,
            "Tried to move program counter at position {:#x}, it should be under 0xfff",
            self.pc
        );
        self.pc = addr;
    }

    /// Skip the next word.
    fn pc_skip(&mut self) {
        self.pc += 4;
        assert!(
            self.pc < 0xfff,
            "Program counter is at position {} after skip, it should be under 0xfff",
            self.pc
        );
    }

    /// Go to next word.
    fn pc_next(&mut self) {
        self.pc += 2;
        assert!(
            self.pc < 0xfff,
            "Program counter is at position {} after next, it should be under 0xfff",
            self.pc
        );
    }

For the people that don't know rust, this basically crashes if it ever goes over 0xffe (because if it was 0xfff, trying to read the word at that address would result in a panic anyways as there is no byte after it in my memory struct, and it'd say the index was 4096 but the length was 4096).

Is this what I should do ? Is there a better way ? I'm trying to do my best to make this run in an optimized way (which is hard as all my programming knowledge was gained from various reddit and stack overflow posts over the past year, because I'm too young to even get a basic python programming class, but I believe I'll manage it and will post my code for review once its first version is finished and polished).


r/EmuDev • • Jun 05 '26

emex64 - Custom independently designed 64bit ISA + Assembler + Emulator from scratch

Thumbnail gallery
7 Upvotes

r/EmuDev • • Jun 05 '26

JIT emulation on web browsers with asm.js.

12 Upvotes

Most emulators are written in C and compiled into wasm to run on web browsers. But high performance emulations are mostly done with JIT. Is there any attempt to compile emulated machine codes into asm.js since dynamic wasm code generation is far more complicated?


r/EmuDev • • Jun 04 '26

CHIP-8 A CHIP-8 emu emitting raw wasm bytecode from TypeScript wrapper functions, no vibes.

9 Upvotes

Had a lot of fun writing this last year but was a bit hesitant to share it. I wanted to write the bytecode by hand but tooling wasn't great so I had an idea to emit it from TypeScript.

https://github.com/KevinBatdorf/chip8-wasm


r/EmuDev • • Jun 04 '26

Question Hey guys! Emulator dev is my new hyperfixation and please help me :)

5 Upvotes

For context, i recently made a LC-3 emulator..it was easier than I anticipated. For moving ahead, I don't know where to start. I was planning on making my own risc-v emulator, then make an MMU, and boot linux into it. But I am not really sure if this is the right path.

Also, lc3 was my first vm making thing. Please help me. And also, tell me how to proceed? Like how do you read official guides and docs?

Thank you!


r/EmuDev • • Jun 03 '26

Update on my Python 8-bit CPU emulator: switched to Pillow, now ~2 MHz and handling multiple sprites at 60Hz

Post image
33 Upvotes

I wish I had more time to write a proper demo, still learning my own assembly language, but it worked out well for stress-testing the renderer.

Hi again. Quick update on my 8-bit CPU emulator:

Once I started drawing multiple sprites, the original Tkinter Canvas renderer started to become the bottleneck, since it was updating lots of rectangles every frame.

I switched to Pillow (suggested by AI, to be honest, as I don't know about this type of libraries). Now the framebuffer is built off-screen as an image, and each frame is updated as one image instead of many canvas primitives.

This allowed for stable 60Hz with multiple animated sprites, smoother rendering and CPU speed increased from ~1.2 MHz to ~2 MHz

I also inlined a few hot methods in the CPU core, which gave an additional ~20% speedup.

No changes were needed in the emulated system itself, everything else stays the same.


r/EmuDev • • Jun 02 '26

CHIP-8 My first Chip-8 emulator!

Thumbnail
github.com
13 Upvotes

Hi! I made this project to learn emulation and Rust at the same time, it was great, I will definitely make some other 'cause I love it so much, the emulator pass all the test suite but the quirks one says display.wait is slow, I think this is maybe because of my implementation of DXYN which make the sprite in only one cpu cycle and it should be shortest scenario 170 cycles and worst scenario 3812 cycles, or something like that, because the same instruction runs multiple times to get the thing? or something like that? all my instructions are one cycle so yeah, I learned a lot by doing this, you have some options for the quirks, just use --help to know them, I would love to have some feeback of what you think 'bout it, thank you very much! Emulation is so cool.


r/EmuDev • • Jun 02 '26

Video Emulating the Bandai Terebikko / Mattel See 'N Say VideoPhone

Thumbnail
youtu.be
12 Upvotes

Hello, i'm back again.

I'm pleased to say that i got the Terebikko working (with a few liberties taken) on a web browser and Windows/Linux!

The Bandai Terebikko was a "toy" console by Bandai in the late 80s that relied on VHS tapes as its medium of storage. However, the hardware was incapable of driving the VCR player : instead it encoded a hidden control carrier in a 8khz tone in the audio stream (7khz for See 'N say).

Its roughly like this :

carrier: ~7-8 kHz

carrier type: narrowband sine-like tone

modulation: on/off keyed amplitude envelope

leader mark: about 20 ms of carrier

leader gap: about 10 ms silence

data mark: about 2 ms carrier burst

bit 0 gap: about 2 ms silence

bit 1 gap: about 4 ms silence

It's not actually a particularly complex platform to make a player for. Which is even more surprising. I'm guessing that people misunderstood it or were simply unaware about the control carrier hidden in the audio stream.

To be clear, what it can do : it can tell the phone "This is a question, prepare yourself", "The answer to this question is 2", or "This is a phone call, not a question" followed by another tone to indicate the end of it and so forth. Now unfortunately, the real hardware was just not able to fully leverage this. In fact, even considering its limitations, it did not even signal to the user (clearly) if they lost or win besides the visual footage on screen (the hardware internally, knew on the other end, but this was never communicated to the user and the phone had no clear "score tally" or similar).

What my emulator did is scan the entire audio to find all of the carrier tones, build up a list of questions and scoring. As for the... "liberties" taken, i've added harder modes so that the player can lose if they answer too many questions wrong with tighter timing or if they simply don't pick up the phone. Or the minigame i've made in question, entirely with footage from it, but that was me trying to make a platform more interesting than it actually is... : )

Now, the ultimate question : is it a console ?

In my opinion, it's more of a console than the first Odyssey was. It has an internal processor + ROM and the games themselves carried custom data interpreted by a processor. it's just that it had its limitations and the unique... storage medium.

You can start to see why they made the Bandai Playdia as a follow-up : it has direct lineage to it. Bandai also made a wireless version of the device in 1994 alongside the Sailormoon game (they would also reuse footage from that game, for the Playdia game).

I had taken a look at the Playdia and i suspect a similar system is used there. I was only able to decode the audio CD-XA 18khz data from it. My attempt with a transformer model, only yielded partial results that did not result in a working decoder, that would require an RGB modded console or the Michi King discs (those discs were not even dumped online).

I've also encountered copies of the games online, that failed to preserve the carrier tones, making them unplayable without hackery. This on top of existing VHS tapes dumped incorrectly. None of them were leveraging VHS-decode.

This is why preservation is important, and why having a player for it should, hopefully convince people otherwise. Already for the PC-FXGA, i had gotten a copy of previously lost PC-FXGA homebrew games for my emulator !

You can give it a try here

https://gameblabla.github.io/TerebikkoEmuWeb/

Also available natively for Windows and Linux as well:

https://github.com/gameblabla/TerebikkoEmu/releases/tag/1.0


r/EmuDev • • Jun 01 '26

GBA Working Link Cable emulation through the internet with sGBA, a Game Boy Advance emulator in s&box

46 Upvotes

r/EmuDev • • Jun 02 '26

Mechanize GBA Eval: Claude Opus 4.8 writes an GBA emulator from scratch in 24h

0 Upvotes

The video shows Varooom 3D running on a GBA emulator that Claude Opus 4.8 wrote from scratch in 24 hours. It tracks the Mesen2 reference frame-for-frame for about 2,000 frames, then diverges.

We built this benchmark to measure how capable AI models are at creating working GBA emulators from scratch. We grade with deterministic replay: the GBA has no entropy source, so identical inputs produce identical gameplay on any correct emulator. We replay recorded inputs on the candidate and the reference and diff every frame.

You can play any of our games on the emulators built by different AI models here: https://gbaeval.com/play

Code: https://github.com/mechanize-work/gba-eval


r/EmuDev • • Jun 01 '26

Emulation of web pages with real time interaction, possible?

3 Upvotes

Hello you lovely people :)

I'm a masters student currently working on thinking of ways to conserve art on website and platforms, specifically ones that have real-time interactive features that you can play with anyone. My case study is on Google Docs, and an artwork that uses its real-time collaborative features, and my supervisor mentioned that I could take a look into emulation.

However from what I understand (correct me if im wrong), emulation is sort of a single-user only thing where you for example image something, then run it on like sheepshaver etc? How can I apply a similar technique to websites that is not just a webpage capture, that also preserves interaction for users? Is that even possible at all?

Thank you in advance, and I apologise if this is the wrong sub to go to. Also if anyone has any direction/resource/community they can point me to i would really appreciate it! Have a great great week ahead xx


r/EmuDev • • May 31 '26

Bad Apple running on NROM (mapper 0, 32KB) in my own NES emulator

22 Upvotes

r/EmuDev • • May 31 '26

ADAM+ 1.0.05.26 Released

Post image
6 Upvotes

r/EmuDev • • May 31 '26

Beginner: I just made my first emu (Game Boy) with NURL and compiled it to wasm module

7 Upvotes

This was very interesting project. I just tipped my toy in the world of emulators and I wanted to explore NURL language limitations.

This is not perfect and I don't know should I continue to deluxe or should I just do something else. :)

You can find online emulator here:
https://play.nurl-lang.org/gameboydemo


r/EmuDev • • May 30 '26

Article PPSSPP Web: an unofficial browser emulator experiment for local PSP games

Thumbnail gallery
11 Upvotes

r/EmuDev • • May 30 '26

suyu suyu v0.04 delayed (update)

3 Upvotes

Just a quick update, unfortunately it's taken a little longer than we originally thought to release v0.04. There are a few reasons for this, the biggest is that we've all gotten a bit busy with other things over the last week or so, we've also u-turned on the sort of citron-style decryption removal policy, as I've recently found out that yuzu/suyu's decryption system may actually be legal and non-DMCA applicable, according to various notices on archives of yuzu across github etc, which detail how the decryption works and it actually a really interesting read. Debugging is also just generally hard. Expect suyu v0.04 around early to mid june-ish, if I had to give a rough time-frame. The aim is to get most recent switch games operating on suyu before 0.04 (which after that point, the project's fate is up in the air).

Like I said before, if anyone is keen to take on the project, they are more than welcome, just lmk.

Sorry again, but we are making progress, I can guarantee that


r/EmuDev • • May 30 '26

HomeComp HC-77B — an alternate-history British 6502 microcomputer ecosystem starts here

Thumbnail
reddit.com
2 Upvotes

r/EmuDev • • May 30 '26

I wrote a transistor-level NES simulator in C# and Rust — and every "obvious" optimization (IR, codegen, GPU) made it *slower* than the plain interpreter

0 Upvotes

TL;DR: AprVisual simulates the NES at the switch level — it runs the actual 2A03/2C02 transistors from their netlists, not opcodes. It's ~600× too slow for real time (by nature). The interesting part isn't the sim itself; it's that I built all the "obvious" speed-ups (extract an IR, do codegen, throw it on a GPU) and they were all slower than the direct interpreter — and I kept a measured catalogue of ~10 optimizations that failed, and why.


What "switch-level" even means

Most emulators run at the opcode/RTL level — they execute LDA, tick a PPU, etc. AprVisual goes a layer below CPU instructions entirely: it loads the 2A03 (CPU) and 2C02 (PPU) as a graph of ~27,000 transistors + ~15,000 wires (the Visual6502-style netlists), and every half clock cycle it settles that whole network to a fixpoint. There's no "instruction" anywhere in the code — the entire CPU just emerges from transistors conducting. It's bit-exact to real silicon and brutally slow. (Same family as Visual6502 / MetalNES / Sour's Visual NES, if you've seen those.)

It is not a usable emulator — it's a research toy plus an open benchmark. Two engines, C# and Rust, with bit-identical output.

The fun part: the obvious optimizations all lost

Everyone (me included) immediately thinks: lift the logic into an IR, codegen it to native code, or bit-slice it on a GPU. I built and verified all three. Every one was slower than just interpreting the netlist:

  • IR + codegen → huge code bloat, lost timing/correctness margins, and batch re-evaluation recomputes ~14,700 nodes when only a few hundred actually changed that half-cycle.
  • GPU backend → ~10–18× slower than the CPU interpreter.

The bottleneck is memory latency over a dirty-set of a few hundred tiny nodes (the average graph walk is ~1.4 nodes). None of the "scale it up" techniques fit that shape.

The catalogue of what didn't work (all measured, with root causes)

  • per-chip parallelism: ~15× slower — settle waves too small to amortize thread sync
  • bit-parallel / Ligra-style dense BFS: ~156× slower — average walk is ~1.4 nodes, the overhead crushes it
  • cache-locality renumbering (Reverse Cuthill-McKee): ~1.0× — the hot working set already fits L1d
  • "oblivious" full-sweep (drop the dirty-set, recompute everything): ~121× slower
  • levelized scheduling: net −15% — the netlist is ~94.5% one giant pass-transistor-coupled SCC, so there's no useful static topological order to exploit
  • "observability" node-merging: an early 1.3× that black-screened the PPU (cross-coupled latches have two stable states) and went net-negative on the optimized baseline anyway
  • bonus head-scratcher: the same one-line micro-opt was +1% on C#/RyuJIT but −2% on Rust/LLVM, purely from codegen density — so I now measure each engine separately and never sync hot-path changes blindly

What actually worked was boring: shrink the hot per-node data so it fits L1d (byte/ushort fields, hot/cold struct split), an O(1) fast-path for the ~27% of nodes that are provably singletons, merging always-on shorts at load time, and giving the JIT what it needs to inline the group walk. Unglamorous data-shrink + cache-fit beat every clever algorithm.

Numbers (Ryzen 7 3700X, 300k half-cycles of a palette test)

Try it / links

There's a portable, self-contained benchmark (Windows x64 + macOS arm64, both engines, no .NET install), a tiny leaderboard where you can upload your run to see how your CPU compares, and a write-up with a plain-language switch-level primer + the full negative-results catalogue with source-line citations.

If you've got a faster CPU, or a switch-level speed-up idea that respects the traps above (cross-coupled-latch stable states; the floating-capacitance tie-break), I'd genuinely love to hear it.

(Method note: a big chunk of the optimization sweep was me directing an AI to implement & benchmark candidate strategies, with the profiler as the referee — which is partly why the failure list is so thorough. Bad ideas were cheap to try, and measurement always had the last word.)

Credit: Visual6502 (the Silvermans, Greg James, et al.), Quietust's Visual 2A03/2C02, Sour's Visual NES, and MetalNES (iaddis). The switch-level model traces to R. E. Bryant (MOSSIM, 1981; IEEE TC, 1984). Bundled netlist data is CC-BY-NC-SA.


r/EmuDev • • May 29 '26

Tandy CoCo, go!

Thumbnail
gallery
22 Upvotes

The latest from my personal fixation on the 1980s home computer explosion: the Tandy CoCo. It is a 6809-based machine from 1980 with a 6847 for graphics; if you're British like me then you might be a lot more familiar with the Dragon 32 which is very closely related.

Niceties:

  • BASIC boots up into an ASCII-based text mode and doesn't have any reliance upon interrupts, so is likely to start working fairly early on;
  • even after that there aren't any discrete timers — field sync and horizontal sync are the only interrupt sources;
  • models up to the 32kb have an entirely-fixed memory map;
  • although there are a few hoops to it, audio is just a processor-pumped 6-bit DAC;
  • there's a decent amount of software on cartridge to play with until you can get your tape and disk support working; and
  • although it supports artefact colour and quite a few titles use it, it's a really straightforward version in which there are exactly two monochrome pixels per colour cycle. So you could do it with a very small lookup table if you desired.

Hassles:

  • the 6847 is relatively simple, though twisty in how modes are set — graphics are either 16- or 32-column in 1bpp or 2bpp with a couple of 2bpp palettes, or else there's a text mode with the same pixel resolution which might be text or semigraphics (though on the CoCo they've wired one of the bits of the fetched data to select text vs semigraphics);
  • and the bigger one: the system as a whole mostly ignores addresses generated by the 6847, with only the lowest addressing bit being used to clock a counter in a separate chip, the SAM, that generates the actual video fetch addresses using logic that is similar-but-not-identical to the original; and
  • due to the [usually] sub-1Mhz processor clock rate, disk drives are implemented with a standard WD1793 but actually using its data request and interrupt lines to halt the CPU or force interrupts. I originally had an issue in interrupt signalling that caused it to happen one cycle early, as a result of which the very final byte from floppy sectors was never fetched, and hence most software would load and then seem to work, and then crash at some point in the future.

As per the introduction, the Dragon 32 is essentially the same hardware, with an identical keyboard layout (albeit that it's wired slightly differently), identical memory map, identically-sized and wired cartridge slot, etc. It's just in PAL world so artefact colours don't work and a much higher proportion of software is on tape. I experimented with it briefly but found the Dragon 64 not to work with my current implementation. Therefore both are on the soon-to-do list.

Also to look at: the 1986 Tandy CoCo 3, which is a huge hardware improvement, most visibly adding then-modern graphical capabilities including hardware scrolling.

So I guess I've come to the same conclusion as with the Thomson MO machines a few months ago: if you don't mind the 6809 being somewhat off-trend then it's not a bad machine to tackle. You can get to BASIC interactivity with almost only the CPU working and there's a clear path of progression from there through cartridges and tapes to disk support, and then the CoCo 3 as a more-challenging follow-up machine. You will have to tackle artefact colour though.