Skip to content

lukepeterson/go8080cpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intel 8080 CPU emulator in Go

An Intel 8080 CPU emulator, written in Go. This project uses my Intel 8080 CPU assembler, especially for running tests.

Tests Go Report Card GitHub release

Running some INR and DCR

Features

Instructions supported

  • ✅ Move, load and store
  • ✅ Stack operations
  • ❌ Jump
  • ❌ Call
  • ❌ Return
  • ❌ Restart
  • ✅ Increment and decrement
  • ✅ Add
  • ❌ Subtract
  • ❌ Logical
  • ❌ Rotate
  • ❌ Specials
  • ❌ Input/output
  • ❌ Control
  • ❌ Interrupts

TODO

  • ❌ Fix out-of-range errors when working at edge of 16-bit address space (POP H needs 0xFFFF+1 to work)
  • ❌ Force some wantErr errors in the CPU and detect them

Running tests

Run go test ./....