Skip to content

KaiWalter/go6502

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A 6502 emulator in Go

This project is just for me to learn Go by solving a familar problem - 6502 emulation. I'll will start with most simpliest form and then try to move my way up in the more sophisticated language constructs and toolings.

developed on Windows 11 + WSL2g/Ubuntu + SDL2
DISCLAIMER: .devcontainer is only suited for the pure 6502 emulation tests, not the Apple 1 emulation

key features

  • Apple 1 emulation converted from https://github.com/KaiWalter/olcApple1 - still WORK IN PROGRESS
  • PIA runs in Goroutines can communicates over channels with devices like keyboard and screen
  • Functional tests implemented with the testing framework, run with e.g. go test ./pkg/mos6502/ -test.v

open issues

installation

performance test

to compare with https://github.com/KaiWalter/rust6502

go build -ldflags "-s -w"
go test ./pkg/mos6502/ -test.v

2022-01-07 on GitHub Codespaces 4 cores, 8 GB RAM, 32 GB storage:

=== RUN   TestDecimal
--- PASS: TestDecimal (0.53s)
=== RUN   TestFunctional
--- PASS: TestFunctional (1.12s)

About

A 6502 emulator in Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published