summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/stvprot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/stvprot.c')
-rw-r--r--src/mame/machine/stvprot.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mame/machine/stvprot.c b/src/mame/machine/stvprot.c
index 848a46561ec..83d221df4b8 100644
--- a/src/mame/machine/stvprot.c
+++ b/src/mame/machine/stvprot.c
@@ -114,7 +114,7 @@ static UINT8 char_offset; //helper to jump the decoding of the NULL chars.
static READ32_HANDLER( twcup98_prot_r )
{
- UINT32 *ROM = (UINT32 *)space->machine().region("abus")->base();
+ UINT32 *ROM = (UINT32 *)space->machine().root_device().memregion("abus")->base();
if(a_bus[0] & 0x00010000)//protection calculation is activated
{
@@ -173,7 +173,7 @@ void install_twcup98_protection(running_machine &machine)
static READ32_HANDLER( sss_prot_r )
{
- UINT32 *ROM = (UINT32 *)space->machine().region("abus")->base();
+ UINT32 *ROM = (UINT32 *)space->machine().root_device().memregion("abus")->base();
if(a_bus[0] & 0x00010000)//protection calculation is activated
{
@@ -238,7 +238,7 @@ void install_sss_protection(running_machine &machine)
static READ32_HANDLER( rsgun_prot_r )
{
- UINT32 *ROM = (UINT32 *)space->machine().region("abus")->base();
+ UINT32 *ROM = (UINT32 *)space->machine().root_device().memregion("abus")->base();
if(a_bus[0] & 0x00010000)//protection calculation is activated
{
@@ -313,7 +313,7 @@ void install_rsgun_protection(running_machine &machine)
static READ32_HANDLER( elandore_prot_r )
{
- UINT32 *ROM = (UINT32 *)space->machine().region("abus")->base();
+ UINT32 *ROM = (UINT32 *)space->machine().root_device().memregion("abus")->base();
if(a_bus[0] & 0x00010000)//protection calculation is activated
{
@@ -420,7 +420,7 @@ static const UINT32 vector_prot[] = { 0x0603B1B2,0x234 };
static READ32_HANDLER( ffreveng_prot_r )
{
- UINT32 *ROM = (UINT32 *)space->machine().region("abus")->base();
+ UINT32 *ROM = (UINT32 *)space->machine().root_device().memregion("abus")->base();
if(a_bus[0] & 0x00010000)//protection calculation is activated
{
@@ -485,11 +485,11 @@ static READ32_HANDLER(astrass_prot_r)
if ( offset == 3 && ctrl_index != -1 )
{
UINT32 data = 0;
- UINT32 *prot_data = (UINT32 *)space->machine().region("user2")->base();
+ UINT32 *prot_data = (UINT32 *)space->machine().root_device().memregion("user2")->base();
data = prot_data[ctrl_index++];
- if ( ctrl_index >= space->machine().region("user2")->bytes()/4 )
+ if ( ctrl_index >= space->machine().root_device().memregion("user2")->bytes()/4 )
{
ctrl_index = -1;
}
@@ -533,7 +533,7 @@ static READ32_HANDLER( decathlt_prot_r )
{
// the offsets written to the protection device definitely only refer to 2 of the roms
// it's a fair assumption to say that only those 2 are connected to the protection device
- UINT8 *ROM = (UINT8 *)space->machine().region("abus")->base()+0x1000000;
+ UINT8 *ROM = (UINT8 *)space->machine().root_device().memregion("abus")->base()+0x1000000;
if (offset==2)
{