Previous 15994 Revisions Next

r3554 Wednesday 19th November, 2008 at 13:23:10 UTC by Miodrag Milanović
[PECOM] Put exact address match
[src/mess/machine]pecom.c

src/mess/machine/pecom.c
r3553r3554
9191      Address is available on address bus during reading of value from port, and that is 
9292      used to determine keyboard line reading
9393   */
94   UINT16 addr = cpunum_get_reg(0,CDP1802_R0 + cpunum_get_reg(0,CDP1802_X)) & 0xff;
94   UINT16 addr = cpunum_get_reg(0,CDP1802_R0 + cpunum_get_reg(0,CDP1802_X));
9595   /* just in case somone is reading non existing ports */
96   if (addr<0xca || addr>0xe3) return 0; 
97   return input_port_read(machine, keynames[addr - 0xca]) & 0x03;
96   if (addr<0x7cca || addr>0x7ce3) return 0; 
97   return input_port_read(machine, keynames[addr - 0x7cca]) & 0x03;
9898}
9999 
100100/* CDP1802 Interface */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team