Zellyn HunterandClaude Fable 5 fd7649dc77 Modernize: add go.mod, fix vet errors, trace to stderr
- Add go.mod (module github.com/zellyn/go6502, no external deps)
- Fix Fatalf/Fprintf arg-count vet errors in membuf_test and a2as
- Emit instruction traces to stderr so they don't interleave with
  program output on stdout

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-17 20:19:40 -04:00
2013-04-21 16:49:28 -07:00
2013-03-06 16:47:10 -08:00
2017-01-26 21:55:03 -06:00
2017-03-06 22:06:12 -05:00

go6502

A 6502 emulator, simulator, and assembler(s), written in Go.

Build Status No Maintenance Intended

This repository should probably be split up. It contains:

cpu

The actual 6502 CPU emulation.

TODOs:

  • Implement 65C02 variant
  • Implement undocumented instructions
  • Profile and speed up

visual

A go transliteration of an old version of https://github.com/mist64/perfect6502, the gate-level simulation of the 6502.

TODOs:

asm

A 6502 assembler, more-or-less compatible with several flavors of oldschool (and soon, modern) assemblers:

Oldschool:

  • SCMA
  • Merlin
  • "Redbook" (A and B) the flavor used in some Apple source listings.

Modern:

Languages
Go 98.7%
Shell 1.3%