Posted May 22, 2022 by Negative(-11) Games Division
#programming #emulator #SAP #Assembly
About a year ago, I put together a visual emulator based on the Simple-As-Possible architecture from Digital Computer Electronics: 3rd Edition (Malvino & Brown), tossed it on GitHub, and kind of forgot about it. While digging through some old projects, I came across it and decided to upload it to Itch.io.
Background
If you're familiar with computers based on the the SAP architecture, then you'll know that this is a very basic version. If you've ever seen the Ben Eater computer, it has a very similar architecture and approach. Specifically, it is based on components described for SAP-1, as presented in chapter 10 of the aforementioned book. I've added a few ideas to allow for translation from theoretical hardware to usable software: visual display of Code and RAM values, program load/save, and clock speeds with step mode.
What can you do with it?
How it was built
The emulator was written using Ebiten, the self-described "dead simple 2D game library for Go". As an experienced Gopher, I was very interested in writing something purely in Go, and Ebiten worked perfectly.