davidgiven / cowgol

A self-hosted Ada-inspired programming language for very small systems.
BSD 2-Clause "Simplified" License
238 stars 20 forks source link

Add an AC1082 8051-ish assembler. #121

Closed davidgiven closed 2 years ago

davidgiven commented 2 years ago

This is very CISCy, and the current assembler framework doesn't really like it, so this also creates cowasm2 which uses a lemon-based parser. This is rather bodged together in places and really wants better knowledge of the various 8051 address spaces, but it should generate 8051 code and most AC1082 code (i.e. the instructions which I can guess what they do).