Skip to content

glouw/run6502

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RUN 6502

This is a fork of https://github.com/gianlucag/mos6502 that packages assembling and running a single 6502 .asm file with PC wake up address 0x0300. The wake up address can be modified within run.sh.

Libraries

First install the acme assembler:

mac: brew install acme
arch: pacman -S acme

Usage

./run.sh code.asm

Note that the .asm file requires a JSR to main as its first instruction, and that the main subroutine be terminated with the RTS.

JMP main ; MUST BE FIRST INSTRUCTION

; YOUR CODE GOES HERE

main:
    ; YOUR CODE GOES HERE
    RTS ; MUST TERMINATE MAIN

Once the RTS of main is executed (read, the stack pointer is set to 0xFF), the emulator will exit and the 6502 zero page will be printed.

About

A 6502 emulator that runs a single .asm file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published