summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/pgmcrypt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/pgmcrypt.c')
-rw-r--r--src/mame/machine/pgmcrypt.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/mame/machine/pgmcrypt.c b/src/mame/machine/pgmcrypt.c
index ab80d0d69ec..abcdfba493b 100644
--- a/src/mame/machine/pgmcrypt.c
+++ b/src/mame/machine/pgmcrypt.c
@@ -27,7 +27,7 @@ void pgm_kov_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.region("maincpu")->base()+0x100000);
+ UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x400000;
@@ -89,7 +89,7 @@ void pgm_kovsh_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.region("maincpu")->base()+0x100000);
+ UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x400000;
@@ -130,7 +130,7 @@ void pgm_dw2_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.region("maincpu")->base()+0x100000);
+ UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x80000;
@@ -172,7 +172,7 @@ void pgm_photoy2k_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.region("maincpu")->base()+0x100000);
+ UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x400000;
@@ -232,7 +232,7 @@ void pgm_pstar_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.region("maincpu")->base()+0x100000);
+ UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x100000;
@@ -272,7 +272,7 @@ void pgm_dw3_decrypt(running_machine &machine)
// UINT16 *src=(UINT16 *) (OP_ROM+0x100000);
int i;
- UINT16 *src = (UINT16 *) (machine.region("maincpu")->base()+0x100000);
+ UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x100000;
@@ -304,7 +304,7 @@ void pgm_killbld_decrypt(running_machine &machine)
// UINT16 *src=(UINT16 *) (OP_ROM+0x100000);
int i;
- UINT16 *src = (UINT16 *) (machine.region("maincpu")->base()+0x100000);
+ UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x200000;
@@ -343,7 +343,7 @@ static const UINT8 dfront_tab[256] = {
void pgm_dfront_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *)(machine.region("user1")->base());
+ UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x400000;
@@ -403,7 +403,7 @@ static const UINT8 ddp2_tab[256] = {
void pgm_ddp2_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *)(machine.region("user1")->base());
+ UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x200000;
@@ -457,7 +457,7 @@ static const UINT8 mm_tab[256] = {
void pgm_mm_decrypt(running_machine &machine) // and dw2001
{
int i;
- UINT16 *src = (UINT16 *)(machine.region("user1")->base());
+ UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x200000;
@@ -516,7 +516,7 @@ static const UINT8 kov2_tab[256] = {
void pgm_kov2_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *)(machine.region("user1")->base());
+ UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x200000;
@@ -572,7 +572,7 @@ static const UINT8 kov2p_tab[256] = {
void pgm_kov2p_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *)(machine.region("user1")->base());
+ UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x200000;
@@ -631,7 +631,7 @@ static const UINT8 puzzli2_tab[256] = {
void pgm_puzzli2_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.region("maincpu")->base()+0x100000);
+ UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x100000;
@@ -690,7 +690,7 @@ static const UINT8 theglad_tab[256] = {
void pgm_theglad_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *)(machine.region("user1")->base());
+ UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x200000;
@@ -750,7 +750,7 @@ static const UINT8 oldsplus_tab[256] = {
void pgm_oldsplus_decrypt(running_machine &machine)
{
int i;
- unsigned short *src = (unsigned short *)(machine.region("maincpu")->base()+0x100000);
+ unsigned short *src = (unsigned short *)(machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x400000;
@@ -810,7 +810,7 @@ static const UINT8 kovshp_tab[256] = {
void pgm_kovshp_decrypt(running_machine &machine)
{
int i;
- unsigned short *src = (unsigned short *)(machine.region("maincpu")->base()+0x100000);
+ unsigned short *src = (unsigned short *)(machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x400000;
@@ -870,7 +870,7 @@ static const UINT8 killbldp_tab[256] = {
void pgm_killbldp_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *)(machine.region("user1")->base());
+ UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x200000;
@@ -911,7 +911,7 @@ void pgm_killbldp_decrypt(running_machine &machine)
void pgm_svg_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *)(machine.region("user1")->base());
+ UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x800000;
@@ -968,7 +968,7 @@ static const unsigned char svgpcb_tab[0x100] = { // not checked
void pgm_svgpcb_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *)(machine.region("user1")->base());
+ UINT16 *src = (UINT16 *)(machine.root_device().memregion("user1")->base());
int rom_size = 0x800000;
@@ -1014,7 +1014,7 @@ static const UINT8 py2k2_tab[256] = {
void pgm_py2k2_decrypt(running_machine &machine) // and ddpdoj/ddpdojbl
{
int i;
- UINT16 *src = (UINT16 *) (machine.region("maincpu")->base()+0x100000);
+ UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base()+0x100000);
int rom_size = 0x400000;
@@ -1060,7 +1060,7 @@ static const unsigned char ket_tab[256] = {
void pgm_ket_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.region("maincpu")->base());
+ UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base());
int rom_size = 0x400000;
@@ -1106,7 +1106,7 @@ static const unsigned char espgal_tab[256] = {
void pgm_espgal_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.region("maincpu")->base());
+ UINT16 *src = (UINT16 *) (machine.root_device().memregion("maincpu")->base());
int rom_size = 0x400000;
@@ -1153,7 +1153,7 @@ static const UINT8 happy6in1_tab[256] = { // IGS0008RD1031215
void pgm_happy6_decrypt(running_machine &machine)
{
int i;
- UINT16 *src = (UINT16 *) (machine.region("user1")->base());
+ UINT16 *src = (UINT16 *) (machine.root_device().memregion("user1")->base());
int rom_size = 0x400000;