Page 1 of 1

Emulator with PC I/O Support

Posted: Fri Jan 15, 2016 5:48 pm
by joe7
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:

Code: Select all

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. :oops:

The code thus far:
https://github.com/Mortis69/6502PC

Re: Emulator with PC I/O Support

Posted: Sun Feb 21, 2016 9:08 am
by mkarcz
Nice.
I'm doing something similar, project in progress, 6502 emulation, possibly something more in the future.
Rudimentary character I/O is supported.
Blog entry:
http://leisureprogramming.blogspot.com/ ... ation.html
Code:
https://github.com/makarcz/vm6502
I already had Tiny Basic running in my emulator.

Re: Emulator with PC I/O Support

Posted: Sun Feb 21, 2016 9:50 am
by BigEd
(Subscribed to both your blogs!)