src/mess/drivers/pcw.c
| r5401 | r5402 | |
| 402 | 402 | pcw_banks[offset] = data; |
| 403 | 403 | |
| 404 | 404 | pcw_update_mem(space->machine, offset, data); |
| 405 | //popmessage("RAM Banks: %02x %02x %02x %02x",pcw_banks[0],pcw_banks[1],pcw_banks[2],pcw_banks[3]); |
| 405 | 406 | } |
| 406 | 407 | |
| 407 | 408 | static WRITE8_HANDLER(pcw_bank_force_selection_w) |
| r5401 | r5402 | |
| 456 | 457 | /* reboot */ |
| 457 | 458 | case 1: |
| 458 | 459 | { |
| 460 | cputag_set_input_line(space->machine, "maincpu", INPUT_LINE_RESET, PULSE_LINE); |
| 459 | 461 | popmessage("SYS: Reboot"); |
| 460 | 462 | } |
| 461 | 463 | break; |
| r5401 | r5402 | |
| 595 | 597 | /* from Jacob Nevins docs */ |
| 596 | 598 | UINT8 ret = pcw_get_sys_status(space->machine); |
| 597 | 599 | |
| 598 | | LOG(("SYS: Status port returning %02x\n",ret)); |
| 600 | // LOG(("SYS: Status port returning %02x\n",ret)); |
| 599 | 601 | return ret; |
| 600 | 602 | } |
| 601 | 603 | |
| r5401 | r5402 | |
| 766 | 768 | { |
| 767 | 769 | fdc_interrupt_code = 2; |
| 768 | 770 | floppy_drive_set_geometry(image_from_devtype_and_index(machine, IO_FLOPPY, 0), FLOPPY_DRIVE_DS_80); |
| 771 | floppy_drive_set_geometry(image_from_devtype_and_index(machine, IO_FLOPPY, 1), FLOPPY_DRIVE_DS_80); |
| 769 | 772 | } |
| 770 | 773 | |
| 771 | 774 | static MACHINE_RESET( pcw ) |
| r5401 | r5402 | |
| 773 | 776 | /* ram paging is actually undefined at power-on */ |
| 774 | 777 | pcw_bank_force = 0x00; |
| 775 | 778 | |
| 776 | | pcw_banks[0] = 0x00; |
| 777 | | pcw_banks[1] = 0x01; |
| 778 | | pcw_banks[2] = 0x02; |
| 779 | | pcw_banks[3] = 0x03; |
| 779 | pcw_banks[0] = 0x80; |
| 780 | pcw_banks[1] = 0x81; |
| 781 | pcw_banks[2] = 0x82; |
| 782 | pcw_banks[3] = 0x83; |
| 780 | 783 | |
| 781 | 784 | pcw_update_mem(machine, 0, pcw_banks[0]); |
| 782 | 785 | pcw_update_mem(machine, 1, pcw_banks[1]); |