5 ms·
Tiny Emus: 8-Bit emulators
- flohofwoe 8y agoAuthor here. The most recent change is that I started adding debugging UIs to the emulators, using the excellent Dear ImGui (https://github.com/ocornut/imgui https://github.com/ocornut/imgui). The UI is in a separate version of the emulator, launched with the little "UI" button in the top right corner of the image panels (e.g. https://floooh.github.io/tiny8bit/kc85-ui.html?type=kc85_4 https://floooh.github.io/tiny8bit/kc85-ui.html?type=kc85_4). The UI is updated once per 60Hz frame, so you only see a per-frame snapshot of the microchip pins which on its own isn't that useful yet except for a nice blinkenlight effect, but it will make a lot more sense once a step-debugging window is added. This will let you inspect the pins after each CPU instruction (still not as accurate as the emulation, which is running with machine-cycle granularity on Z80, and clock-cycle granularity on 6502 machines. The emulators are written in C(99), with some platform-specific bits written in Objective-C and Javascript, and in C++ for the UI parts (since Dear ImGui is implemented in C++). Apart from the WebAssembly version, Win32, Linux, OSX and iOS is also supported, but you need to compile those yourself :)
- titzer 8y agoThis is super cool! And it's awesome that it uses WebAssembly.
- FullyFunctional 8y agoThis is incredible. I first thought it was just screenshots. Anyway to contact you offline? I want to suggest Nascom 2 support.
- z3phyr 8y agoWriting emulators is a lot of fun. Great stuff here :) Kudos!!! A little off-topic: I end up doing a sub par job at writing some classic 8-bit emulators myself. At first it looks pretty straightforward, but becomes daunting as I progress, end up losing motivation for a couple of days before starting yet another project. How do you correctly learn this magic?
- flohofwoe 8y agoTrue, in the beginning it's tough because it takes so long until you can actually run small emulated programs and even then there's no real emulated computer yet, just a CPU. What kept me motivated was that I really wanted to play the games I wrote as teenager again and there were only very few existing emulators for this system, and none as easy to get running as just navigating to a webpage. There was also a bit of (unfounded) fear that those games would be lost since my own cassette tapes have rotted (unfounded because other people took care during the 90's to digitize the tapes and put them on the internet). Once I had the first machine working (which required Z80 CPU, CTC and PIO emulations), it was fairly easy to build emulators for the other East German 8-bitters, and after that for the ZX Spectrum, and with each new machine it becomes easier and the chip emulations become better... Another factor is that the emulators are only like a fallback project which I return to when I don't feel like doing something else (usually I reserve my Christmas vacation for this), and the emulators are also a nice testbed for my other projects (the sokol cross-platform headers, and generally doing WebAssembly stuff). These are small complete applications, yet built from very little code, so they're quite easy to maintain and experiment with.
- silverfrost 8y agoHow do I load a game into the 48K Emulator - I notice there are some in the github repo.
- flohofwoe 8y agoIf it's the right file format (.z80 snapshot file), you can drag'n'drop local files into the browser window while the correct ZX version is running (48K vs 128).
- robertsd247 8y agoI am wondering if there is any value of having old hardware around anymore.
- Tor3 8y ago> I am wondering if there is any value of having old hardware around anymore. It's definitely useful when you write emulators.. particularly if you're writing the only one in existence (and that's not so unusual, if you're targeting a relatively obscure mini, for example). I've written two emulators/simulators, I have hardware for one of them and that'll let me figure out the missing corner cases (not documented, or poorly documented), but I don't have hardware for the other one - and there are three or four undocumented areas. I wish I had the hardware. This is hardware I used to work on in the eighties and early nineties. One day you kind of wake up to the fact that it's all gone, from everywhere. It's another story if you just using (already existing) emulators. But for many people it's not really the same thing. It could be the speed, the mechanics, the hands-on.. heck, I lost the interest in pinball arcade machines when they replaced the mechanical score counter with LED counters. Can't really explain it, but the magic somehow evaporated.
- sehugg 8y agoThere's still no way to emulate 32-bit iOS apps.
- Wowfunhappy 8y agoI am very worried that a lot of iOS games are going to be completely lost to time, due to how locked down the platform is.
- VikingCoder 8y ago> I am very worried ... how locked down the platform is. Yeah, me, too.
- kerouanton 8y ago