mfld-fr / emu86

Intel IA16 emulator for embedded development
35 stars 6 forks source link

serial-8018x: add receive status and buffer #74

Closed cocus closed 3 years ago

cocus commented 3 years ago

Populates the R0BUF register when a character is read from the serial port. Also sets the RI (or RDR) bit on the S0STS (or STAT) register when a new character is read, and clear it when the emulated system reads the R0BUF.

cocus commented 3 years ago

I haven't fully tested these changes since I would need to fix the EOIs on ELKS and I'm too lazy to write a test code

cocus commented 3 years ago

Well, I forgot to mention that after adding the EOI support, I fully tested this with ELKS and it works fine. Since I've reused some defines, but changed their names slightly (but not their values), I think this is going to work with your R8810.

mfld-fr commented 3 years ago

Nice work, now I have a good starting point for my port, thank you !