7/13/2026 at 7:52:42 AM
FYI this is a heavily outdated URL (the one with '-preview' in it, last updated in 2021) which I had created at some point to test some things.The proper and uptodate URL is:
https://floooh.github.io/tiny8bit/
Apart from the 'pin-emulation' the other interesting feature is that the CPUs are 'cycle stepped', e.g. the CPU no longer has a special 'controller role' in the system but is just 'ticked along' with all the other chips. This blog post describes how that works for the Z80 emulation (the instruction decoder is still a big switch-case, but with one case-prong per instruction cycle instead one prong per whole instruction: https://floooh.github.io/2021/12/17/cycle-stepped-z80.html)
I didn't really get around to work on the project since 2023 though (and before that I worked on it mainly as a 'vacation project' over the Christmas breaks), I mostly just updated the sokol and Dear ImGui dependencies since then, and sometimes added new scene demos appearing on https://www.pouet.net/ and https://csdb.dk/.
by flohofwoe
7/13/2026 at 12:50:28 PM
Unrelated, but thanks for your chips project! We've used it in BizHawk as part of our CPC emulator core.by YoshiRulz
7/13/2026 at 8:59:46 AM
Browsing the repo linked on the page: https://github.com/floooh/chips-testI see references to files in a "chips" directory. For example "chips/m6502.h". But those are missing? Where can they be found?
Like the concept! Reminds me somewhat of simulating a design in a hardware description language (eg. Verilator). Or the concept of 'drivers' in MAME (dunno if those emulate cycle-by-cycle btw).
So I'd welcome the opportunity to dive into how it's done on a code level.
by RetroTechie
7/13/2026 at 9:10:00 AM
The actual emulator code lives here (all in STB-style headers):https://github.com/floooh/chips
The chips-test repo has the 'integration' code which assembles the headers into executables:
https://github.com/floooh/chips-test
There's also a similar project in Zig (but less complete, it's more like an experiment what the same implementation ideas would look like in Zig) that might be a bit more readable and with everything in one place:
https://github.com/floooh/chipz
E.g. start reading the top-level emulator executables:
https://github.com/floooh/chipz/tree/main/emus
...and then move your way down to the system implementations:
https://github.com/floooh/chipz/tree/main/src/systems
...and finally to the chip emulators:
by flohofwoe
7/13/2026 at 10:16:50 AM
Thx for those links!by RetroTechie
7/13/2026 at 6:57:45 PM
Sokol is the best, thank you for your ongoing work :) And please open a patreon or something!by kkukshtel