Inspired by Ben Eater's 6502 project I've decided to try out my own experiments with it.
This repository contains several simple projects written for 6502 microprocessor. All code is meant to be compiled using VASM assembler.
Unfortunately I do not have a real 6502 computer right now, using Py65 emulator instead. While it is not a real thing, I'm trying to keep everything as close to Ben's design as possible. The main differences are with data output, as it can be seen by comparing the hello-world and hello-emulated projects.
For convenience, I've added simple makefiles for each project so that there is no need to enter long commands each time. Then one can use short commands to compile, run in an emulator or write to the EEPROM.
make
make run
make program
There are several subdirectories, each containing a self-contained project.
- hello-world - Ben Eater's finished "Hello, World!" program
- hello-emulated - "Hello, World!" adjusted for emulator
- bin2dec - Ben Eater's binary to decimal decoder (transcribed from video)
- double-dabble - Decode binary to decimal using Double dabble algorithm