I've decided to learn about the historically famous
MOS 6502 chip to build my own computer.
These are notes made during my
learning, designing and testing phases; I'm hoping they'll help you,
A Path to Learning 6502
- Get a reliable flash drive and install EVERYTHING on it; mine is labeled
- Download "VASM assembler" for the 6502 for Windows 10 from
http://www.ibaug.de/vasm/vasm6502.zip and install it on "J:" in a folder/directory named "Vasm".
You'll need to copy the files from "J:\VASM\vasm6502_oldstyle\win\win10"
- Search for the file location of "Command Prompt" on your
Windows PC and copy its link to your J: drive
- Startup your Command Prompt link which should take you to your home directory
"C:\Users\prefo" for me
- Create a text file named "J.bat" and drop it in your home directory.
The contents of the file are:
- Confirm its contents by typing:
- Now you can type "J.bat" or "J" to change to your J drive and the
Vasm folder (J:\VASM).
- Within J:\Vasm, create a text file named "Vasm.bat". (Here is a copy
saved as "Vasm.txt" because Windows
won't permit ".bat" files to be downloaded. It must renamed to "Vasm.bat" in order to
run.) The contents of the file are:
vasm6502_oldstyle.exe -Fbin -dotdir
- Copy my "VIA.asm" file to your "J:\Vasm" folder
- Execute "Vasm.bat" by typing:
- This will cause "Vasm6502_oldstyle.exe" to run and assemble "VIA.asm" into "a.out"
which you can then examine with a hex editor like HxD. Actually, the
batch file starts up HxD automatically
- Install a hex editor (HxD20) into J:\HxD from site
This is a good start!
Here are some valuable resources:
- Bookmark http://www.6502.org
Assembly Language Programming
- Cheat sheet:
6502 Instruction Set
Instance Reference Card. I had this one laminated at
Staples for $4
- 6502 instructions
cheat sheet... and another
- WDC 65xx integrated circuits
- 20x4 LCD display panel
- ROM programming tool:
XGecu TL866II Plus
Learning Info and Other References:
- Watch Ben Eater's nine Youtube video set:
Build a 65c02-based
computer from scratch
- Some videos on building a 6502:
- Life With David Youtube video
watch order list
- David Murray's six Youtube
video set: Commander X16
- Grant Searle
design: 6502 SBC with only 7 chips
- List of Assemblers and
(integrated development environments)
Programming Tips for the 65c02
- Udemy training
course: Learn Assembly Language by Making Games for the Atari
Book: Programming the 65816: Including the 6502, etc.
- WDC Single Board Computer
development board: W65C265SXB SBC