src/mess/machine/pecom.c
| r3553 | r3554 | |
| 91 | 91 | Address is available on address bus during reading of value from port, and that is |
| 92 | 92 | used to determine keyboard line reading
|
| 93 | 93 | */
|
| 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));
|
| 95 | 95 | /* 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;
|
| 98 | 98 | }
|
| 99 | 99 | |
| 100 | 100 | /* CDP1802 Interface */
|