jarlfenrir wrote:
I'm writting MCS6502 emulator, and i want to know how this processor is dealing with devices like keyboard, display, hard drive or other.
I know it's using memory mapped to device registers, but i want to know how reading from keyboard or writting to screen is accomplished by programmer.
You should download and play with a copy of the Kowalski simulator to get some ideas on how you might proceed. The K-sim simulates the 6502 (or 65C02) and has an I/O "console," as well as the ability to generate regularly spaced (jiffy) IRQs. It doesn't emulate a particular machine however.
I guess the question you will have to settle is exactly what you want the finish product to do.