src/mess/machine/comx35.c
| r4454 | r4455 | |
| 360 | 360 | static void set_active_bank(running_machine *machine) |
| 361 | 361 | { |
| 362 | 362 | comx35_state *state = machine->driver_data; |
| 363 | | const address_space *program = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM); |
| 363 | const address_space *program = cputag_get_address_space(machine, CDP1802_TAG, ADDRESS_SPACE_PROGRAM); |
| 364 | 364 | int bank = state->bank; |
| 365 | 365 | |
| 366 | 366 | switch (state->bank) |
| r4454 | r4455 | |
| 561 | 561 | MACHINE_START( comx35p ) |
| 562 | 562 | { |
| 563 | 563 | comx35_state *state = machine->driver_data; |
| 564 | | const address_space *program = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM); |
| 564 | const address_space *program = cputag_get_address_space(machine, CDP1802_TAG, ADDRESS_SPACE_PROGRAM); |
| 565 | 565 | |
| 566 | 566 | /* opbase handling for DOS Card */ |
| 567 | 567 | |
| r4454 | r4455 | |
| 671 | 671 | |
| 672 | 672 | static void image_fread_memory(const device_config *image, UINT16 addr, UINT32 count) |
| 673 | 673 | { |
| 674 | | void *ptr = memory_get_write_ptr(cpu_get_address_space(image->machine->cpu[0], ADDRESS_SPACE_PROGRAM), addr); |
| 674 | void *ptr = memory_get_write_ptr(cputag_get_address_space(image->machine, CDP1802_TAG, ADDRESS_SPACE_PROGRAM), addr); |
| 675 | 675 | |
| 676 | 676 | image_fread(image, ptr, count); |
| 677 | 677 | } |
| 678 | 678 | |
| 679 | 679 | QUICKLOAD_LOAD( comx35 ) |
| 680 | 680 | { |
| 681 | | const address_space *program = cpu_get_address_space(image->machine->cpu[0], ADDRESS_SPACE_PROGRAM); |
| 681 | const address_space *program = cputag_get_address_space(image->machine, CDP1802_TAG, ADDRESS_SPACE_PROGRAM); |
| 682 | 682 | |
| 683 | 683 | UINT8 header[16] = {0}; |
| 684 | 684 | int size = image_length(image); |
src/mess/drivers/comx35.c
| r4454 | r4455 | |
| 264 | 264 | |
| 265 | 265 | if (!driver_state->iden) |
| 266 | 266 | { |
| 267 | | cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_DMAOUT, HOLD_LINE); |
| 267 | cputag_set_input_line(device->machine, CDP1802_TAG, CDP1802_INPUT_LINE_DMAOUT, HOLD_LINE); |
| 268 | 268 | } |
| 269 | 269 | } |
| 270 | 270 | else |
| r4454 | r4455 | |
| 275 | 275 | |
| 276 | 276 | case CDP1802_STATE_CODE_S2_DMA: |
| 277 | 277 | // DMA acknowledge clears the DMAOUT request |
| 278 | | cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_DMAOUT, CLEAR_LINE); |
| 278 | cputag_set_input_line(device->machine, CDP1802_TAG, CDP1802_INPUT_LINE_DMAOUT, CLEAR_LINE); |
| 279 | 279 | break; |
| 280 | 280 | |
| 281 | 281 | case CDP1802_STATE_CODE_S3_INTERRUPT: |
| 282 | 282 | // interrupt acknowledge clears the INT request |
| 283 | | cpu_set_input_line(device->machine->cpu[0], CDP1802_INPUT_LINE_INT, CLEAR_LINE); |
| 283 | cputag_set_input_line(device->machine, CDP1802_TAG, CDP1802_INPUT_LINE_INT, CLEAR_LINE); |
| 284 | 284 | break; |
| 285 | 285 | } |
| 286 | 286 | } |