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.
- ✅ Lexer
- ✅ Parser
- ✅ Comment support
- ✅ Label support
- ✅ Supports all 244 8080 CPU instructions
- Data support (eg,
DB
,DW
) - Input from
STDIN
- Write some tests for
assembler.go
See main.go
for examples on how to use both the lexer and the parser.
Run go test ./...
.