| Previous | 15994 Revisions | Next |
| r14971 Friday 20th April, 2012 at 00:33:48 UTC by R. Belmont |
|---|
| Apple II: Added state registration to cards. |
| [src/mess/machine] | a2cffa.c a2memexp.c a2mockingboard.c a2scsi.c a2scsi.h a2softcard.c a2softcard.h a2thunderclock.c |
| r14970 | r14971 | |
|---|---|---|
| 111 | 111 | { |
| 112 | 112 | // set_a2bus_device makes m_slot valid |
| 113 | 113 | set_a2bus_device(); |
| 114 | ||
| 115 | save_item(NAME(m_porta1)); | |
| 116 | save_item(NAME(m_porta2)); | |
| 114 | 117 | } |
| 115 | 118 | |
| 116 | 119 | void a2bus_mockingboard_device::device_reset() |
| r14970 | r14971 | |
|---|---|---|
| 75 | 75 | { |
| 76 | 76 | // set_a2bus_device makes m_slot valid |
| 77 | 77 | set_a2bus_device(); |
| 78 | ||
| 79 | save_item(NAME(m_bEnabled)); | |
| 80 | save_item(NAME(m_FirstZ80Boot)); | |
| 78 | 81 | } |
| 79 | 82 | |
| 80 | 83 | void a2bus_softcard_device::device_reset() |
| r14970 | r14971 | |
|---|---|---|
| 2 | 2 | |
| 3 | 3 | a2softcard.h |
| 4 | 4 | |
| 5 | Implementation of the | |
| 5 | Implementation of the | |
| 6 | 6 | |
| 7 | 7 | *********************************************************************/ |
| 8 | 8 |
| r14970 | r14971 | |
|---|---|---|
| 115 | 115 | m_rom = device().machine().region(this->subtag(tempstring, SCSI_ROM_REGION))->base(); |
| 116 | 116 | |
| 117 | 117 | memset(m_ram, 0, 8192); |
| 118 | ||
| 119 | save_item(NAME(m_ram)); | |
| 120 | save_item(NAME(m_rambank)); | |
| 121 | save_item(NAME(m_rombank)); | |
| 118 | 122 | } |
| 119 | 123 | |
| 120 | 124 | void a2bus_scsi_device::device_reset() |
| r14970 | r14971 | |
|---|---|---|
| 2 | 2 | |
| 3 | 3 | a2scsi.h |
| 4 | 4 | |
| 5 | Implementation of the Apple II | |
| 5 | Implementation of the Apple II SCSI | |
| 6 | 6 | |
| 7 | 7 | *********************************************************************/ |
| 8 | 8 |
| r14970 | r14971 | |
|---|---|---|
| 113 | 113 | |
| 114 | 114 | // patch default setting so slave device is enabled |
| 115 | 115 | m_rom[0x801] = 4; |
| 116 | ||
| 117 | save_item(NAME(m_lastdata)); | |
| 118 | save_item(NAME(m_writeprotect)); | |
| 119 | save_item(NAME(m_eeprom)); | |
| 116 | 120 | } |
| 117 | 121 | |
| 118 | 122 | void a2bus_cffa2000_device::device_reset() |
| r14970 | r14971 | |
| 222 | 226 | { |
| 223 | 227 | if (!m_writeprotect) |
| 224 | 228 | { |
| 225 | printf("Write %02x to EEPROM at %x\n", data, offset); | |
| 229 | // printf("Write %02x to EEPROM at %x (PC=%x)\n", data, offset, cpu_get_pc(&space.device())); | |
| 226 | 230 | m_eeprom[offset + 0x800] = data; |
| 227 | 231 | } |
| 228 | 232 | } |
| r14970 | r14971 | |
|---|---|---|
| 107 | 107 | |
| 108 | 108 | astring tempstring; |
| 109 | 109 | m_rom = device().machine().region(this->subtag(tempstring, THUNDERCLOCK_ROM_REGION))->base(); |
| 110 | ||
| 111 | save_item(NAME(m_dataout)); | |
| 110 | 112 | } |
| 111 | 113 | |
| 112 | 114 | void a2bus_thunderclock_device::device_reset() |
| r14970 | r14971 | |
|---|---|---|
| 108 | 108 | m_rom = device().machine().region(this->subtag(tempstring, MEMEXP_ROM_REGION))->base(); |
| 109 | 109 | |
| 110 | 110 | memset(m_ram, 0xff, 1024*1024*sizeof(UINT8)); |
| 111 | ||
| 112 | save_item(NAME(m_regs)); | |
| 113 | save_item(NAME(m_ram)); | |
| 114 | save_item(NAME(m_wptr)); | |
| 115 | save_item(NAME(m_liveptr)); | |
| 111 | 116 | } |
| 112 | 117 | |
| 113 | 118 | void a2bus_memexp_device::device_reset() |
| Previous | 15994 Revisions | Next |