private static void ics2115_0_word_w1(int offset, byte data) { switch (offset) { case 1: break; case 2: ICS2115.ics2115_w(3, data); break; } }
private static void ics2115_0_word_w(int offset, ushort data) { switch (offset) { case 1: ICS2115.ics2115_w(1, (byte)data); break; case 2: ICS2115.ics2115_w(2, (byte)data); ICS2115.ics2115_w(3, (byte)(data >> 8)); break; } }
public static void ZWriteHardware(ushort address, byte value) { if (address >= 0x8000 && address <= 0x8003) { int offset = address - 0x8000; ICS2115.ics2115_w(offset, value); } else if (address >= 0x8100 && address <= 0x81ff) { z80_l3_w(value); } else if (address >= 0x8200 && address <= 0x82ff) { Sound.soundlatch_w((ushort)value); } else if (address >= 0x8400 && address <= 0x84ff) { Sound.soundlatch2_w((ushort)value); } }