src/mess/machine/ins8154.c
| r3819 | r3820 | |
| 88 | 88 | if (offset > 0x24) |
| 89 | 89 | { |
| 90 | 90 | logerror("INS8154 (%08x): Read from unknown offset %02x!\n", |
| 91 | | safe_cpu_get_pc( device->machine->cpu[0] ), offset); |
| 91 | cpu_get_pc( device->machine->cpu[0] ), offset); |
| 92 | 92 | return 0xff; |
| 93 | 93 | } |
| 94 | 94 | |
| r3819 | r3820 | |
| 138 | 138 | i->intf->out_a_func(device, 0, (data & i->odra) | (i->odra ^ 0xff)); |
| 139 | 139 | else |
| 140 | 140 | logerror("INS8154 (%08x): Write to port A but no write handler defined!\n", |
| 141 | | safe_cpu_get_pc( device->machine->cpu[0] ) ); |
| 141 | cpu_get_pc( device->machine->cpu[0] ) ); |
| 142 | 142 | } |
| 143 | 143 | } |
| 144 | 144 | |
| r3819 | r3820 | |
| 156 | 156 | i->intf->out_b_func(device, 0, (data & i->odrb) | (i->odrb ^ 0xff)); |
| 157 | 157 | else |
| 158 | 158 | logerror("INS8154 (%08x): Write to port B but no write handler defined!\n", |
| 159 | | safe_cpu_get_pc( device->machine->cpu[0] ) ); |
| 159 | cpu_get_pc( device->machine->cpu[0] ) ); |
| 160 | 160 | } |
| 161 | 161 | } |
| 162 | 162 | |
| r3819 | r3820 | |
| 168 | 168 | if (offset > 0x24) |
| 169 | 169 | { |
| 170 | 170 | logerror("INS8154 (%04x): Write %02x to invalid offset %02x!\n", |
| 171 | | safe_cpu_get_pc( device->machine->cpu[0] ), data, offset); |
| 171 | cpu_get_pc( device->machine->cpu[0] ), data, offset); |
| 172 | 172 | return; |
| 173 | 173 | } |
| 174 | 174 | |
| r3819 | r3820 | |
| 184 | 184 | |
| 185 | 185 | case 0x22: |
| 186 | 186 | LOG(("INS8154 (%04x): ODR for port A set to %02x\n", |
| 187 | | safe_cpu_get_pc( device->machine->cpu[0] ), data)); |
| 187 | cpu_get_pc( device->machine->cpu[0] ), data)); |
| 188 | 188 | i->odra = data; |
| 189 | 189 | break; |
| 190 | 190 | |
| 191 | 191 | case 0x23: |
| 192 | 192 | LOG(("INS8154 (%04x): ODR for port B set to %02x\n", |
| 193 | | safe_cpu_get_pc( device->machine->cpu[0] ), data)); |
| 193 | cpu_get_pc( device->machine->cpu[0] ), data)); |
| 194 | 194 | i->odrb = data; |
| 195 | 195 | break; |
| 196 | 196 | |
| 197 | 197 | case 0x24: |
| 198 | 198 | LOG(("INS8154 (%04x): MDR set to %02x\n", |
| 199 | | safe_cpu_get_pc( device->machine->cpu[0] ), data)); |
| 199 | cpu_get_pc( device->machine->cpu[0] ), data)); |
| 200 | 200 | i->mdr = data; |
| 201 | 201 | break; |
| 202 | 202 | |
src/mess/machine/6530miot.c
| r3819 | r3820 | |
| 227 | 227 | if (port->out_func != NULL) |
| 228 | 228 | (*port->out_func)(device, data, olddata); |
| 229 | 229 | else |
| 230 | | logerror("6530MIOT chip %s: Port %c is being written to but has no handler. PC: %08X - %02X\n", device->tag, 'A' + (offset & 1), safe_cpu_get_pc(device->machine->cpu[0]), data); |
| 230 | logerror("6530MIOT chip %s: Port %c is being written to but has no handler. PC: %08X - %02X\n", device->tag, 'A' + (offset & 1), cpu_get_pc(device->machine->cpu[0]), data); |
| 231 | 231 | } |
| 232 | 232 | } |
| 233 | 233 | } |
| r3819 | r3820 | |
| 289 | 289 | port->in = (*port->in_func)(device, port->in); |
| 290 | 290 | } |
| 291 | 291 | else |
| 292 | | logerror("6530MIOT chip %s: Port %c is being read but has no handler. PC: %08X\n", device->tag, 'A' + (offset & 1), safe_cpu_get_pc(device->machine->cpu[0])); |
| 292 | logerror("6530MIOT chip %s: Port %c is being read but has no handler. PC: %08X\n", device->tag, 'A' + (offset & 1), cpu_get_pc(device->machine->cpu[0])); |
| 293 | 293 | |
| 294 | 294 | /* apply the DDR to the result */ |
| 295 | 295 | val = (out & port->ddr) | (port->in & ~port->ddr); |
src/mess/machine/lisa.c
| r3819 | r3820 | |
| 1605 | 1605 | if ((time_in_frame >= 364) && (time_in_frame <= 375)) |
| 1606 | 1606 | { |
| 1607 | 1607 | answer = videoROM_ptr[videoROM_address|0x80] << 8; |
| 1608 | | logerror("reading1 %06X=%04x PC=%06x time=%d\n", address, answer,safe_cpu_get_pc(space->machine->cpu[0]),time_in_frame); |
| 1608 | logerror("reading1 %06X=%04x PC=%06x time=%d\n", address, answer, cpu_get_pc(space->machine->cpu[0]), time_in_frame); |
| 1609 | 1609 | } |
| 1610 | 1610 | else |
| 1611 | 1611 | { |
| 1612 | 1612 | answer = videoROM_ptr[videoROM_address] << 8; |
| 1613 | | logerror("reading2 %06X=%04x PC=%06x time=%d\n", address, answer,safe_cpu_get_pc(space->machine->cpu[0]),time_in_frame); |
| 1613 | logerror("reading2 %06X=%04x PC=%06x time=%d\n", address, answer, cpu_get_pc(space->machine->cpu[0]), time_in_frame); |
| 1614 | 1614 | } |
| 1615 | 1615 | } |
| 1616 | 1616 | |
| r3819 | r3820 | |
| 1871 | 1871 | seg &= ~2; |
| 1872 | 1872 | break; |
| 1873 | 1873 | case 0x0010: /* SETUP register SET */ |
| 1874 | | logerror("setup SET PC=%x\n", safe_cpu_get_pc(machine->cpu[0])); |
| 1874 | logerror("setup SET PC=%x\n", cpu_get_pc(machine->cpu[0])); |
| 1875 | 1875 | setup = 1; |
| 1876 | 1876 | break; |
| 1877 | 1877 | case 0x0012: /* SETUP register RESET */ |
| 1878 | | logerror("setup UNSET PC=%x\n", safe_cpu_get_pc(machine->cpu[0])); |
| 1878 | logerror("setup UNSET PC=%x\n", cpu_get_pc(machine->cpu[0])); |
| 1879 | 1879 | setup = 0; |
| 1880 | 1880 | break; |
| 1881 | 1881 | case 0x001A: /* Enable Vertical Retrace Interrupt */ |
| 1882 | | logerror("enable retrace PC=%x\n", safe_cpu_get_pc(machine->cpu[0])); |
| 1882 | logerror("enable retrace PC=%x\n", cpu_get_pc(machine->cpu[0])); |
| 1883 | 1883 | VTMSK = 1; |
| 1884 | 1884 | break; |
| 1885 | 1885 | case 0x0018: /* Disable Vertical Retrace Interrupt */ |
| 1886 | | logerror("disable retrace PC=%x\n", safe_cpu_get_pc(machine->cpu[0])); |
| 1886 | logerror("disable retrace PC=%x\n", cpu_get_pc(machine->cpu[0])); |
| 1887 | 1887 | VTMSK = 0; |
| 1888 | 1888 | set_VTIR(machine, 2); |
| 1889 | 1889 | break; |
| r3819 | r3820 | |
| 2017 | 2017 | else |
| 2018 | 2018 | answer |= 0x04; |
| 2019 | 2019 | /* huh... we need to emulate some other bits */ |
| 2020 | | logerror("read status PC=%x val=%x\n", safe_cpu_get_pc(space->machine->cpu[0]),answer); |
| 2020 | logerror("read status PC=%x val=%x\n", cpu_get_pc(space->machine->cpu[0]),answer); |
| 2021 | 2021 | |
| 2022 | 2022 | break; |
| 2023 | 2023 | } |