Jump to content

6502

From MattWiki

First start by installing the needed software on your computer.

apt -y install build-essential pkg-config git libusb-1.0-0-dev

Next download, compile, & install the minipro software

cd && rm -rf minipro
git clone https://gitlab.com/DavidGriffith/minipro.git && \
cd minipro && make && make install

Next download, compile, & install the vasm software

cd && rm -rf vasm
wget -c http://sun.hasenbraten.de/vasm/release/vasm.tar.gz && \
tar -xzf vasm.tar.gz && cd vasm/ && make CPU=6502 SYNTAX=oldstyle && \
cp vasm6502_oldstyle /usr/local/bin/

Next download the source hello-world.s file

cd; wget https://eater.net/downloads/hello-world-final.s

Now you can compile the source of the hello-world.s file

vasm6502_oldstyle -dotdir -Fbin hello-world-final.s

Check out the out put file

hexdump -C a.out

upload it to the eprom

minipro -p AT28C256 -w a.out


Windows[edit | edit source]

cd C:\Users\Owner\OneDrive\Documents\Eletrontics\6502\Source_Code
..\Tools\vasm6502\vasm6502_oldstyle.exe -c02 -dotdir -Fbin hello-world-final.s -o hello-world-final.bin
..\Tools\hexdump.exe .\hello-world-final.bin