summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2020-05-02 19:04:05 -0400
committer AJR <ajrhacker@users.noreply.github.com>2020-05-02 19:04:05 -0400
commit1daa2a1f24b2854f33924d9610c0775e61618be9 (patch)
tree6916717d9b1775a51000d3f2fb20f31fa18103e1
parent0894eb27f7c785e01b79e62ea4c5b14b5bd92a85 (diff)
naomigd: Eliminate get_read_ptr (nw)
-rw-r--r--src/mame/machine/naomigd.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mame/machine/naomigd.cpp b/src/mame/machine/naomigd.cpp
index 31f1e02e90a..3a9597e031d 100644
--- a/src/mame/machine/naomigd.cpp
+++ b/src/mame/machine/naomigd.cpp
@@ -918,8 +918,9 @@ void naomi_gdrom_board::device_start()
netpic = picdata[0x6ee];
// set data for security pic rom
- address_space &ps = m_securitycpu->space(AS_PROGRAM);
- memcpy((uint8_t*)ps.get_read_ptr(0), picdata, 0x1000);
+ uint8_t *picrom = static_cast<uint8_t*>(m_securitycpu->memregion(DEVICE_SELF)->base());
+ for(offs_t b=0;b<0x1000;b++)
+ picrom[BYTE_XOR_LE(b)] = picdata[b];
} else {
// use extracted pic data
// printf("This PIC key hasn't been converted to a proper PIC binary yet!\n");