Skip to content

lukepeterson/go8080assembler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intel 8080 CPU assembler in Go

This is my Intel 8080 CPU assembler, which I wrote to support my Intel 8080 CPU emulator.

It takes a newline separated string of Intel 8080 instructions, performs a lexical analysis on the input, parses and validates the tokens, and then converts the tokens to an assembled byte code.

Tests Go Report Card GitHub release

Features

  • ✅ Lexer
  • ✅ Parser
  • ✅ Comment support
  • ✅ Label support
  • ✅ Supports all 244 8080 CPU instructions

TODO

  • Data support (eg, DB, DW)
  • Input from STDIN
  • Write some tests for assembler.go

Usage

See main.go for examples on how to use both the lexer and the parser.

Running tests

Run go test ./....