I started an experimental emulator project with PC I/O support, inspired by this thread:
6502 or W65C816S to X86 Assembly LanguageI/O is done by strobing certain "magic" addresses. For example, this might output a character to the terminal:
Code:
lda #'X'
sta $FFF0
(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