/dports/emulators/mess/mame-mame0226/src/devices/bus/apricot/expansion/ |
H A D | winchester.cpp | 85 m_ram_ptr(0), in apricot_winchester_device() 143 data = m_ram[m_ram_ptr]; in hdc_data_r() 145 m_ram_ptr++; in hdc_data_r() 157 m_ram[m_ram_ptr] = data; in hdc_data_w() 158 if (m_ram_ptr < 0x1fff) in hdc_data_w() 159 m_ram_ptr++; in hdc_data_w() 217 m_ram_ptr = 0; in WRITE_LINE_MEMBER() 240 if (m_ram_ptr < 0x1fff) in data_r() 241 m_ram_ptr++; in data_r() 256 if (m_ram_ptr < 0x1fff) in data_w() [all …]
|
/dports/emulators/mame/mame-mame0226/src/devices/bus/apricot/expansion/ |
H A D | winchester.cpp | 85 m_ram_ptr(0), in apricot_winchester_device() 143 data = m_ram[m_ram_ptr]; in hdc_data_r() 145 m_ram_ptr++; in hdc_data_r() 157 m_ram[m_ram_ptr] = data; in hdc_data_w() 158 if (m_ram_ptr < 0x1fff) in hdc_data_w() 159 m_ram_ptr++; in hdc_data_w() 217 m_ram_ptr = 0; in WRITE_LINE_MEMBER() 240 if (m_ram_ptr < 0x1fff) in data_r() 241 m_ram_ptr++; in data_r() 256 if (m_ram_ptr < 0x1fff) in data_w() [all …]
|
/dports/emulators/mess/mame-mame0226/src/devices/bus/ti99/gromport/ |
H A D | gkracker.cpp | 141 m_ram_ptr(nullptr), in ti99_gkracker_device() 194 *value = m_ram_ptr[m_grom_address]; in readz() 218 *value = m_ram_ptr[offset | base]; in readz() 282 m_ram_ptr[m_grom_address] = data; in write() 359 memset(m_ram_ptr, 0, 81920); in nvram_default() 361 m_ram_ptr[0x6000] = 0xaa; in nvram_default() 362 m_ram_ptr[0x6001] = 0x01; in nvram_default() 363 m_ram_ptr[0x6002] = 0x01; in nvram_default() 365 m_ram_ptr[0x6006] = 0x60; in nvram_default() 366 m_ram_ptr[0x6007] = 0x20; in nvram_default() [all …]
|
H A D | cartridges.cpp | 114 m_pcb->m_ram_ptr = nullptr; in prepare_cartridge() 191 m_pcb->m_ram_ptr = &m_pcb->m_nvram[0]; in prepare_cartridge() 200 m_pcb->m_ram_ptr = &m_pcb->m_ram[0]; in prepare_cartridge() 473 m_ram_ptr(nullptr), in ti99_cartridge_pcb() 546 m_ram_ptr[offset & 0x1fff] = data; in write() 766 m_ram_ptr[offset & 0x0fff] = data; in write() 812 if (m_ram_ptr != nullptr) in readz() 969 if (m_ram_ptr != nullptr) in write() 970 m_ram_ptr[offset & 0x03ff] = data; in write() 1348 if (m_ram_ptr != nullptr) in readz() [all …]
|
/dports/emulators/mame/mame-mame0226/src/devices/bus/ti99/gromport/ |
H A D | gkracker.cpp | 141 m_ram_ptr(nullptr), in ti99_gkracker_device() 194 *value = m_ram_ptr[m_grom_address]; in readz() 218 *value = m_ram_ptr[offset | base]; in readz() 282 m_ram_ptr[m_grom_address] = data; in write() 359 memset(m_ram_ptr, 0, 81920); in nvram_default() 361 m_ram_ptr[0x6000] = 0xaa; in nvram_default() 362 m_ram_ptr[0x6001] = 0x01; in nvram_default() 363 m_ram_ptr[0x6002] = 0x01; in nvram_default() 365 m_ram_ptr[0x6006] = 0x60; in nvram_default() 366 m_ram_ptr[0x6007] = 0x20; in nvram_default() [all …]
|
H A D | cartridges.cpp | 114 m_pcb->m_ram_ptr = nullptr; in prepare_cartridge() 191 m_pcb->m_ram_ptr = &m_pcb->m_nvram[0]; in prepare_cartridge() 200 m_pcb->m_ram_ptr = &m_pcb->m_ram[0]; in prepare_cartridge() 473 m_ram_ptr(nullptr), in ti99_cartridge_pcb() 546 m_ram_ptr[offset & 0x1fff] = data; in write() 766 m_ram_ptr[offset & 0x0fff] = data; in write() 812 if (m_ram_ptr != nullptr) in readz() 969 if (m_ram_ptr != nullptr) in write() 970 m_ram_ptr[offset & 0x03ff] = data; in write() 1348 if (m_ram_ptr != nullptr) in readz() [all …]
|
/dports/emulators/mess/mame-mame0226/src/mame/drivers/ |
H A D | superga2.cpp | 80 uint8_t *m_ram_ptr; member in superga2_state 92 m_ram_ptr = m_ram->pointer(); in machine_start() 101 m_video->m_ram_ptr = m_ram_ptr; in machine_start() 102 m_video->m_aux_ptr = m_ram_ptr; in machine_start() 112 memcpy(&m_ram_ptr[0x1100], user1, 0x8000); in machine_reset() 173 return m_ram_ptr[offset]; in ram_r() 183 m_ram_ptr[offset] = data; in ram_w()
|
H A D | agat.cpp | 198 uint8_t *m_ram_ptr; member in agat_base_state 361 m_ram_ptr = m_ram->pointer(); in machine_start() 450 membank("bank0")->set_base(m_ram_ptr + 0x0000); in machine_reset() 451 membank("bank1")->set_base(m_ram_ptr + 0x2000); in machine_reset() 452 membank("bank2")->set_base(m_ram_ptr + 0x4000); in machine_reset() 791 return m_ram_ptr[offset]; in agat7_ram_r() 801 return m_ram_ptr[offset]; in agat7_ram_r() 803 return m_ram_ptr[offset + 16384]; in agat7_ram_r() 816 m_ram_ptr[offset] = data; in agat7_ram_w() 826 m_ram_ptr[offset] = data; in agat7_ram_w() [all …]
|
H A D | apple2gs.cpp | 564 uint8_t *m_ram_ptr; member in apple2gs_state 1221 m_ram_ptr = m_ram->pointer(); in machine_start() 1264 m_video->m_ram_ptr = m_megaii_ram; in machine_start() 3405 m_ram_ptr[offset+0x400] = data; in b0ram0400_w() 3415 m_ram_ptr[offset+0x800] = data; in b0ram0800_w() 3429 m_ram_ptr[offset+0x2000] = data; in b0ram2000_w() 3439 m_ram_ptr[offset+0x4000] = data; in b0ram4000_w() 3457 m_ram_ptr[offset+0x10400] = data; in b1ram0400_w() 3467 m_ram_ptr[offset+0x10800] = data; in b1ram0800_w() 3477 m_ram_ptr[offset+0x12000] = data; in b1ram2000_w() [all …]
|
H A D | tk2000.cpp | 91 uint8_t *m_ram_ptr; member in tk2000_state 134 m_ram_ptr = m_ram->pointer(); in machine_start() 151 m_video->m_ram_ptr = m_ram_ptr; in machine_start() 152 m_video->m_aux_ptr = m_ram_ptr; in machine_start() 296 return m_ram_ptr[offset + 0xc100]; in c100_r() 301 m_ram_ptr[offset + 0xc100] = data; in c100_w() 431 return m_ram_ptr[address % m_ram_size]; // FIX: this seems to work, but is it right!? in read_floatingbus() 442 return m_ram_ptr[offset]; in ram_r() 452 m_ram_ptr[offset] = data; in ram_w()
|
H A D | mac128.cpp | 265 u16 *m_ram_ptr, *m_rom_ptr; member in mac128_state 275 m_ram_ptr = (u16*)m_ram->pointer(); in machine_start() 337 return m_ram_ptr[offset & m_ram_mask]; in ram_r() 344 COMBINE_DATA(&m_ram_ptr[offset & m_ram_mask]); in ram_w() 351 COMBINE_DATA(&m_ram_ptr[offset & m_ram_mask]); in ram_w_se() 356 return m_ram_ptr[offset & m_ram_mask]; in ram_600000_r() 361 COMBINE_DATA(&m_ram_ptr[offset & m_ram_mask]); in ram_600000_w() 466 mac_snd_buf_ptr = (uint16_t *)(m_ram_ptr + m_ram_size - MAC_MAIN_SND_BUF_OFFSET); in TIMER_CALLBACK_MEMBER() 470 mac_snd_buf_ptr = (uint16_t *)(m_ram_ptr + m_ram_size - MAC_ALT_SND_BUF_OFFSET); in TIMER_CALLBACK_MEMBER() 816 uint16_t const *video_ram = (const uint16_t *) (m_ram_ptr + video_base); in screen_update_mac()
|
H A D | alphatro.cpp | 119 uint8_t *m_ram_ptr; member in alphatro_state 199 return m_ram_ptr[offset]; in ram0000_r() 210 m_ram_ptr[offset] = data; in ram0000_w() 218 uint8_t alphatro_state::ram6000_r(offs_t offset) { return m_ram_ptr[offset+0x6000]; } in ram6000_r() 219 void alphatro_state::ram6000_w(offs_t offset, uint8_t data) { m_ram_ptr[offset+0x6000] = data; } in ram6000_w() 220 uint8_t alphatro_state::rama000_r(offs_t offset) { return m_ram_ptr[offset+0xa000]; } in rama000_r() 221 void alphatro_state::rama000_w(offs_t offset, uint8_t data) { m_ram_ptr[offset+0xa000] = data; } in rama000_w() 222 uint8_t alphatro_state::rame000_r(offs_t offset) { return m_ram_ptr[offset+0xe000]; } in rame000_r() 223 void alphatro_state::rame000_w(offs_t offset, uint8_t data) { m_ram_ptr[offset+0xe000] = data; } in rame000_w() 604 m_ram_ptr = m_ram->pointer(); in machine_reset()
|
H A D | apple1.cpp | 123 uint8_t *m_ram_ptr, *m_char_ptr; member in apple1_state 224 memcpy(m_ram_ptr + start, &data[12], snapsize - 12); in SNAPSHOT_LOAD_MEMBER() 385 m_ram_ptr = m_ram->pointer(); in machine_start() 418 return m_ram_ptr[offset]; in ram_r() 428 m_ram_ptr[offset] = data; in ram_w()
|
/dports/emulators/mame/mame-mame0226/src/mame/drivers/ |
H A D | superga2.cpp | 80 uint8_t *m_ram_ptr; member in superga2_state 92 m_ram_ptr = m_ram->pointer(); in machine_start() 101 m_video->m_ram_ptr = m_ram_ptr; in machine_start() 102 m_video->m_aux_ptr = m_ram_ptr; in machine_start() 112 memcpy(&m_ram_ptr[0x1100], user1, 0x8000); in machine_reset() 173 return m_ram_ptr[offset]; in ram_r() 183 m_ram_ptr[offset] = data; in ram_w()
|
H A D | agat.cpp | 198 uint8_t *m_ram_ptr; member in agat_base_state 361 m_ram_ptr = m_ram->pointer(); in machine_start() 450 membank("bank0")->set_base(m_ram_ptr + 0x0000); in machine_reset() 451 membank("bank1")->set_base(m_ram_ptr + 0x2000); in machine_reset() 452 membank("bank2")->set_base(m_ram_ptr + 0x4000); in machine_reset() 791 return m_ram_ptr[offset]; in agat7_ram_r() 801 return m_ram_ptr[offset]; in agat7_ram_r() 803 return m_ram_ptr[offset + 16384]; in agat7_ram_r() 816 m_ram_ptr[offset] = data; in agat7_ram_w() 826 m_ram_ptr[offset] = data; in agat7_ram_w() [all …]
|
H A D | apple2gs.cpp | 564 uint8_t *m_ram_ptr; member in apple2gs_state 1221 m_ram_ptr = m_ram->pointer(); in machine_start() 1264 m_video->m_ram_ptr = m_megaii_ram; in machine_start() 3405 m_ram_ptr[offset+0x400] = data; in b0ram0400_w() 3415 m_ram_ptr[offset+0x800] = data; in b0ram0800_w() 3429 m_ram_ptr[offset+0x2000] = data; in b0ram2000_w() 3439 m_ram_ptr[offset+0x4000] = data; in b0ram4000_w() 3457 m_ram_ptr[offset+0x10400] = data; in b1ram0400_w() 3467 m_ram_ptr[offset+0x10800] = data; in b1ram0800_w() 3477 m_ram_ptr[offset+0x12000] = data; in b1ram2000_w() [all …]
|
H A D | tk2000.cpp | 91 uint8_t *m_ram_ptr; member in tk2000_state 134 m_ram_ptr = m_ram->pointer(); in machine_start() 151 m_video->m_ram_ptr = m_ram_ptr; in machine_start() 152 m_video->m_aux_ptr = m_ram_ptr; in machine_start() 296 return m_ram_ptr[offset + 0xc100]; in c100_r() 301 m_ram_ptr[offset + 0xc100] = data; in c100_w() 431 return m_ram_ptr[address % m_ram_size]; // FIX: this seems to work, but is it right!? in read_floatingbus() 442 return m_ram_ptr[offset]; in ram_r() 452 m_ram_ptr[offset] = data; in ram_w()
|
H A D | mac128.cpp | 265 u16 *m_ram_ptr, *m_rom_ptr; member in mac128_state 275 m_ram_ptr = (u16*)m_ram->pointer(); in machine_start() 337 return m_ram_ptr[offset & m_ram_mask]; in ram_r() 344 COMBINE_DATA(&m_ram_ptr[offset & m_ram_mask]); in ram_w() 351 COMBINE_DATA(&m_ram_ptr[offset & m_ram_mask]); in ram_w_se() 356 return m_ram_ptr[offset & m_ram_mask]; in ram_600000_r() 361 COMBINE_DATA(&m_ram_ptr[offset & m_ram_mask]); in ram_600000_w() 466 mac_snd_buf_ptr = (uint16_t *)(m_ram_ptr + m_ram_size - MAC_MAIN_SND_BUF_OFFSET); in TIMER_CALLBACK_MEMBER() 470 mac_snd_buf_ptr = (uint16_t *)(m_ram_ptr + m_ram_size - MAC_ALT_SND_BUF_OFFSET); in TIMER_CALLBACK_MEMBER() 816 uint16_t const *video_ram = (const uint16_t *) (m_ram_ptr + video_base); in screen_update_mac()
|
H A D | alphatro.cpp | 119 uint8_t *m_ram_ptr; member in alphatro_state 199 return m_ram_ptr[offset]; in ram0000_r() 210 m_ram_ptr[offset] = data; in ram0000_w() 218 uint8_t alphatro_state::ram6000_r(offs_t offset) { return m_ram_ptr[offset+0x6000]; } in ram6000_r() 219 void alphatro_state::ram6000_w(offs_t offset, uint8_t data) { m_ram_ptr[offset+0x6000] = data; } in ram6000_w() 220 uint8_t alphatro_state::rama000_r(offs_t offset) { return m_ram_ptr[offset+0xa000]; } in rama000_r() 221 void alphatro_state::rama000_w(offs_t offset, uint8_t data) { m_ram_ptr[offset+0xa000] = data; } in rama000_w() 222 uint8_t alphatro_state::rame000_r(offs_t offset) { return m_ram_ptr[offset+0xe000]; } in rame000_r() 223 void alphatro_state::rame000_w(offs_t offset, uint8_t data) { m_ram_ptr[offset+0xe000] = data; } in rame000_w() 604 m_ram_ptr = m_ram->pointer(); in machine_reset()
|
H A D | apple1.cpp | 123 uint8_t *m_ram_ptr, *m_char_ptr; member in apple1_state 224 memcpy(m_ram_ptr + start, &data[12], snapsize - 12); in SNAPSHOT_LOAD_MEMBER() 385 m_ram_ptr = m_ram->pointer(); in machine_start() 418 return m_ram_ptr[offset]; in ram_r() 428 m_ram_ptr[offset] = data; in ram_w()
|
/dports/emulators/mess/mame-mame0226/src/mame/machine/ |
H A D | lisa.cpp | 816 …figure((address & 0xffc000), (address & 0xffc000) + 0x003fff, 0xffffff, m_ram_ptr + mapped_address… 898 m_ram_ptr = memregion("maincpu")->base() + RAM_OFFSET; in init_lisa2() 911 m_ram_ptr = memregion("maincpu")->base() + RAM_OFFSET; in init_lisa210() 924 m_ram_ptr = memregion("maincpu")->base() + RAM_OFFSET; in init_mac_xl() 948 m_ram_ptr = memregion("maincpu")->base() + RAM_OFFSET; in machine_reset() 973 m_videoram_ptr = (uint16_t *) m_ram_ptr; in machine_reset() 1283 answer = *(uint16_t *)(m_ram_ptr + address); in lisa_r() 1301 answer = *(uint16_t *)(m_ram_ptr + address); in lisa_r() 1485 COMBINE_DATA((uint16_t *) (m_ram_ptr + address)); in lisa_w() 1524 COMBINE_DATA((uint16_t *) (m_ram_ptr + address)); in lisa_w() [all …]
|
/dports/emulators/mame/mame-mame0226/src/mame/machine/ |
H A D | lisa.cpp | 816 …figure((address & 0xffc000), (address & 0xffc000) + 0x003fff, 0xffffff, m_ram_ptr + mapped_address… 898 m_ram_ptr = memregion("maincpu")->base() + RAM_OFFSET; in init_lisa2() 911 m_ram_ptr = memregion("maincpu")->base() + RAM_OFFSET; in init_lisa210() 924 m_ram_ptr = memregion("maincpu")->base() + RAM_OFFSET; in init_mac_xl() 948 m_ram_ptr = memregion("maincpu")->base() + RAM_OFFSET; in machine_reset() 973 m_videoram_ptr = (uint16_t *) m_ram_ptr; in machine_reset() 1283 answer = *(uint16_t *)(m_ram_ptr + address); in lisa_r() 1301 answer = *(uint16_t *)(m_ram_ptr + address); in lisa_r() 1485 COMBINE_DATA((uint16_t *) (m_ram_ptr + address)); in lisa_w() 1524 COMBINE_DATA((uint16_t *) (m_ram_ptr + address)); in lisa_w() [all …]
|
/dports/emulators/mess/mame-mame0226/src/mame/video/ |
H A D | apple2.cpp | 450 uint8_t const code = m_ram_ptr[address]; in lores_update() 488 uint8_t const code = m_ram_ptr[address]; in lores_update() 566 uint8_t const code = m_ram_ptr[address]; in dlores_update() 629 uint8_t const code = m_ram_ptr[address]; in dlores_update() 731 uint8_t const *const aux_page = m_aux_ptr ? m_aux_ptr : m_ram_ptr; in text_update() 766 plot_text_character(bitmap, col * 14 + 7, row, 1, m_ram_ptr[address], in text_update() 783 plot_text_character(bitmap, col * 14, row, 2, m_ram_ptr[address], fg, bg); in text_update() 968 uint8_t const *const vram = &m_ram_ptr[(m_page2 ? 0x4000 : 0x2000)]; in hgr_update() 1130 uint8_t const *const vram = &m_ram_ptr[(m_page2 ? 0xa000 : 0x2000)]; in hgr_update_tk2000() 1254 uint8_t const *const vram = &m_ram_ptr[page]; in dhgr_update() [all …]
|
H A D | k001005.cpp | 1188 , m_ram_ptr(0) in k001005_device() 1214 save_item(NAME(m_ram_ptr)); in device_start() 1227 m_ram_ptr = 0; in device_reset() 1298 if (m_ram_ptr >= 0x400000) in read() 1300 return m_ram[1][(m_ram_ptr++) & 0x3fffff]; in read() 1304 return m_ram[0][(m_ram_ptr++) & 0x3fffff]; in read() 1431 m_ram_ptr = data; in write() 1435 if (m_ram_ptr >= 0x400000) in write() 1437 m_ram[1][(m_ram_ptr++) & 0x3fffff] = data & 0xffff; in write() 1441 m_ram[0][(m_ram_ptr++) & 0x3fffff] = data & 0xffff; in write()
|
/dports/emulators/mame/mame-mame0226/src/mame/video/ |
H A D | apple2.cpp | 450 uint8_t const code = m_ram_ptr[address]; in lores_update() 488 uint8_t const code = m_ram_ptr[address]; in lores_update() 566 uint8_t const code = m_ram_ptr[address]; in dlores_update() 629 uint8_t const code = m_ram_ptr[address]; in dlores_update() 731 uint8_t const *const aux_page = m_aux_ptr ? m_aux_ptr : m_ram_ptr; in text_update() 766 plot_text_character(bitmap, col * 14 + 7, row, 1, m_ram_ptr[address], in text_update() 783 plot_text_character(bitmap, col * 14, row, 2, m_ram_ptr[address], fg, bg); in text_update() 968 uint8_t const *const vram = &m_ram_ptr[(m_page2 ? 0x4000 : 0x2000)]; in hgr_update() 1130 uint8_t const *const vram = &m_ram_ptr[(m_page2 ? 0xa000 : 0x2000)]; in hgr_update_tk2000() 1254 uint8_t const *const vram = &m_ram_ptr[page]; in dhgr_update() [all …]
|