Back to browse
GitHub Repository

the MOS tech 6502 8-bit microprocessor in pure SQL powered by postgres

63 starsPLpgSQL

MOS Tech 6502 emulated in pure Postgres

by heywinit·Apr 13, 2026·2 points·0 comments

AI Analysis

●●●●GemWizardryZero to OneRabbit Hole

Pure SQL 6502 emulation with opcodes as stored procedures—no external code anywhere.

Strengths
  • Every CPU opcode implemented as PostgreSQL stored procedures with no external dependencies
  • 64KB memory and all registers mapped to database tables for SQL querying
  • Passes Klaus 6502 Functional Test suite proving actual CPU correctness
Weaknesses
  • Performance inherently limited by SQL execution overhead for each instruction
  • Niche appeal with no practical production use case beyond demonstration
Target Audience

Database engineers, retro computing enthusiasts, PostgreSQL power users

Similar Projects

Other●●Solid

I Emulated My Childhood

Hand-built Spectrum emulator running real 1980s games; nostalgia meets genuine technical depth.

Rabbit HoleCozy
sklivvz1971
203mo ago
Hardware●●●●Gem

m6502, a 6502 CPU for FPGAs and Tiny Tapeout

Cycle-accurate 6502 core at ~950 LUTs, shipping to real silicon via Tiny Tapeout.

WizardryZero to OneNiche Gem
chrismoos
513mo ago