Пример #1
0
unsigned char __fastcall RastanZ80Read(unsigned short a)
{
	switch (a)
	{
	case (0x9001):
		return BurnYM2151ReadStatus();
	case (0xa001):
		return tc0140_slave_comm_r();
	default:
		bprintf(PRINT_NORMAL, _T("z80 read %x\n"),a);
		return 0xff;
	}
}
Пример #2
0
unsigned char __fastcall twinhawkZ80Read(unsigned short a)
{
	switch (a)
	{
	case (0xe000):
		return BurnYM2151ReadStatus();
	case (0xe001):
		return BurnYM2151ReadStatus();
	case (0xe201):
		return tc0140_slave_comm_r();
	default:
		return 0;
	}
}
Пример #3
0
unsigned char __fastcall SupermanZ80Read(unsigned short a)
{
	switch (a) {
		case (0xe000):
			return BurnYM2610Read(0);;
		case (0xe001):
			return BurnYM2610Read(1);
		case (0xe002):
			return BurnYM2610Read(2);
		case (0xe201):
			return tc0140_slave_comm_r();
	}

	return 0;
}