A Python Intel 8088 emulator that passes 99.31% of hardware test vectors. Started from tiny8086 as a reference, then used a test harness to drive Claude through the implementation -- Claude wrote the vast majority of the code.
The approach: set up a harness that runs test vectors captured from real 8088 hardware, feeds failures back to Claude, and lets it iterate. The AI handled the undocumented flag behaviors, the edge cases in string operations, the segment override prefixes -- all the tedious parts that make x86 emulation hard.
Boots FreeDOS, runs DOS programs, reproduces the quirks of the original chip.
github.com/ljk53/pyx86