mirror of
https://github.com/libretro/Genesis-Plus-GX.git
synced 2024-11-24 08:49:53 +00:00
[Core/MS] improved SG-1000 & Mark-III hardware emulation
This commit is contained in:
parent
d08b903a11
commit
2a5592cd25
@ -324,6 +324,12 @@ void io_reset(void)
|
||||
/* Control registers */
|
||||
io_reg[0x0E] = 0x00;
|
||||
io_reg[0x0F] = 0xFF;
|
||||
|
||||
/* on SG-1000 & Mark-III, TH is not connected (always return 1) */
|
||||
if (system_hw < SYSTEM_SMS)
|
||||
{
|
||||
io_reg[0x0F] = 0xF5;
|
||||
}
|
||||
}
|
||||
|
||||
/* Reset connected peripherals */
|
||||
|
@ -648,6 +648,9 @@ void z80_sg_port_w(unsigned int port, unsigned char data)
|
||||
case 0x41:
|
||||
{
|
||||
SN76489_Write(Z80.cycles, data);
|
||||
|
||||
/* Z80 !WAIT input is tied to SN76489AN chip READY pin (held low for 32 clocks after each write access) */
|
||||
Z80.cycles += (32 * 15);
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user