Emulator with PC I/O Support
Posted: Fri Jan 15, 2016 5:48 pm
I started an experimental emulator project with PC I/O support, inspired by this thread:
6502 or W65C816S to X86 Assembly Language
I/O is done by strobing certain "magic" addresses. For example, this might output a character to the terminal:
(Note that the STA is trapped and ignored, and control is given to the I/O routine instead.)
The emulator is kinda working but there is no I/O yet besides a simple test. Keyboard, text, and file support should be possible, although I intend to keep it all pretty basic. Probably should be finishing existing projects instead of starting new ones, but oh well.
The code thus far:
https://github.com/Mortis69/6502PC
6502 or W65C816S to X86 Assembly Language
I/O is done by strobing certain "magic" addresses. For example, this might output a character to the terminal:
Code: Select all
lda #'X'
sta $FFF0
The emulator is kinda working but there is no I/O yet besides a simple test. Keyboard, text, and file support should be possible, although I intend to keep it all pretty basic. Probably should be finishing existing projects instead of starting new ones, but oh well.
The code thus far:
https://github.com/Mortis69/6502PC