Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
16c550.asm
16c550_irq.asm
16c750.asm
6551.asm
6551_irq.asm
6850.asm
README.md
buffer.asm
buildbasmonrom.sh
buildit.sh
reset.asm
rruart.asm
sbc.asm
sbcmon.asm
upload.asm

README.md

6502 Monitor/Debugger for the RC2014

This is a simple 6502 Monitor/Debugger for the RC2014 6502 CPU Board.

This is derived from Daryl Rictor's monitor program (5.1.1 Lite), but heavily modified to provide a similar user interface as the RC2014 Z80 Monitor/Debugger.

The rights of Daryl and Ross Archer (who wrote the Intel HEX uploader) are respected. Daryl's website is at: http://sbc.rictor.org/. A webpage with Ross' original code is here.

Changes to the original code are copyright Ben Chong and freely licensed to the community.

A user guide will "soon" be available... In the meantime, typing '?' will show a list of commands.

The implementation of the Monitor/Debugger uses a BIOS approach to abstract the serial console code. The files 16C550.asm, 6850.asm and rruart.asm are the source files that are specific to each type of supported UART. The file sbc.asm allows you to select the UART.

Please check this blog article to see how you can get the RC2014 serial I/O card to work with the 6502 CPU.

The reset.asm file lists the APIs that can be called from other programs: input_char, check_input and output_char are serial console functions. You can invoke them usin the "jsr" command. The monitor entry point is at $ff00.

If you want to implement your own interrupt handling routines, check out irq_vector and nmi_vector in the sbcmon.asm source file. Be aware that with the IRQ handler, the X and A registers are already pushed onto the stack (check this out in reset.asm).

You can’t perform that action at this time.