基于Postgres的纯SQL实现的MOS 6502 8位微处理器
MOS tech 6502 8-bit microprocessor in pure SQL powered by Postgres

原始链接: https://github.com/lasect/pg_6502

一个完全在PostgreSQL中运行的MOS 6502 CPU模拟器。CPU寄存器、标志和64KB内存是数据库表;每个指令都是一个存储过程。 # 启动PostgreSQL docker compose up -d # 加载模式和测试二进制文件 make reset # 运行Klaus 6502功能测试 make test **表描述** pg6502.cpu 单行:A, X, Y, SP, PC + 状态标志 pg6502.mem 64KB内存,每字节一行 MIT 许可证 — 参见 LICENSE 文件。

黑客新闻 新的 | 过去的 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 MOS 技术 6502 8位微处理器,纯SQL实现,由Postgres驱动 (github.com/lasect) 8 分,adunk 发表于 2小时前 | 隐藏 | 过去的 | 收藏 | 讨论 帮助 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请YC | 联系 搜索:
相关文章

原文

MOS 6502 CPU emulator running entirely in PostgreSQL. CPU registers, flags, and 64KB memory are database tables; every opcode is a stored procedure.

# Start PostgreSQL
docker compose up -d

# Load schema and test binary
make reset

# Run Klaus 6502 Functional Test
make test
Table Description
pg6502.cpu Single row: A, X, Y, SP, PC + status flags
pg6502.mem 64KB of memory, one row per byte

MIT License — see LICENSE file.

联系我们 contact @ memedata.com