tlcs900.c: Fake 'done serial sending' IRQ. Fixes SNK Gals' Fighter in the ngpc driver. (nw)

This commit is contained in:
Wilbert Pol 2013-01-14 19:35:30 +00:00
parent a9c1da60de
commit 235b191d31

View File

@ -8,7 +8,7 @@ Pocket emulation. The 900 and 900/M modes are not supported yet.
TODO:
- review cycle counts
- implement the remaining internal mcu features
- implement the remaining internal mcu features (serial transfer, etc)
- add support for 900 and 900/M modes
*******************************************************************/
@ -1086,6 +1086,11 @@ static WRITE8_HANDLER( tlcs900_internal_w )
case TLCS900_MAMR1:
break;
case TLCS900_SC0BUF:
// Fake finish sending data
cpustate->reg[TLCS900_INTES0] |= 0x80;
break;
case TLCS900_ADMOD:
/* Preserve read-only bits */
data = ( cpustate->reg[TLCS900_ADMOD] & 0xc0 ) | ( data & 0x3f );