case 0x003: /* TC */
if(CPU_TYPE_IS_040_PLUS(CPU_TYPE))
{
- REG_DA[(word2 >> 12) & 15] = m68ki_cpu.mmu_tc;
+ REG_DA[(word2 >> 12) & 15] = state->mmu_tc;
return;
}
m68ki_exception_illegal(state);
case 0x004: /* ITT0 */
if(CPU_TYPE_IS_040_PLUS(CPU_TYPE))
{
- REG_DA[(word2 >> 12) & 15] = m68ki_cpu.mmu_itt0;
+ REG_DA[(word2 >> 12) & 15] = state->mmu_itt0;
return;
}
m68ki_exception_illegal(state);
case 0x005: /* ITT1 */
if(CPU_TYPE_IS_040_PLUS(CPU_TYPE))
{
- REG_DA[(word2 >> 12) & 15] = m68ki_cpu.mmu_itt1;
+ REG_DA[(word2 >> 12) & 15] = state->mmu_itt1;
return;
}
m68ki_exception_illegal(state);
case 0x006: /* DTT0 */
if(CPU_TYPE_IS_040_PLUS(CPU_TYPE))
{
- REG_DA[(word2 >> 12) & 15] = m68ki_cpu.mmu_dtt0;
+ REG_DA[(word2 >> 12) & 15] = state->mmu_dtt0;
return;
}
m68ki_exception_illegal(state);
case 0x007: /* DTT1 */
if(CPU_TYPE_IS_040_PLUS(CPU_TYPE))
{
- REG_DA[(word2 >> 12) & 15] = m68ki_cpu.mmu_dtt1;
+ REG_DA[(word2 >> 12) & 15] = state->mmu_dtt1;
return;
}
m68ki_exception_illegal(state);
case 0x805: /* MMUSR */
if(CPU_TYPE_IS_040_PLUS(CPU_TYPE))
{
- REG_DA[(word2 >> 12) & 15] = m68ki_cpu.mmu_sr_040;
+ REG_DA[(word2 >> 12) & 15] = state->mmu_sr_040;
return;
}
m68ki_exception_illegal(state);
case 0x806: /* URP */
if(CPU_TYPE_IS_040_PLUS(CPU_TYPE))
{
- REG_DA[(word2 >> 12) & 15] = m68ki_cpu.mmu_urp_aptr;
+ REG_DA[(word2 >> 12) & 15] = state->mmu_urp_aptr;
return;
}
m68ki_exception_illegal(state);
case 0x807: /* SRP */
if(CPU_TYPE_IS_040_PLUS(CPU_TYPE))
{
- REG_DA[(word2 >> 12) & 15] = m68ki_cpu.mmu_srp_aptr;
+ REG_DA[(word2 >> 12) & 15] = state->mmu_srp_aptr;
return;
}
m68ki_exception_illegal(state);
case 0x003: /* TC */
if (CPU_TYPE_IS_040_PLUS(CPU_TYPE))
{
- m68ki_cpu.mmu_tc = REG_DA[(word2 >> 12) & 15];
+ state->mmu_tc = REG_DA[(word2 >> 12) & 15];
- if (m68ki_cpu.mmu_tc & 0x8000)
+ if (state->mmu_tc & 0x8000)
{
- m68ki_cpu.pmmu_enabled = 1;
+ state->pmmu_enabled = 1;
}
else
{
- m68ki_cpu.pmmu_enabled = 0;
+ state->pmmu_enabled = 0;
}
return;
}
case 0x004: /* ITT0 */
if (CPU_TYPE_IS_040_PLUS(CPU_TYPE))
{
- m68ki_cpu.mmu_itt0 = REG_DA[(word2 >> 12) & 15];
+ state->mmu_itt0 = REG_DA[(word2 >> 12) & 15];
return;
}
m68ki_exception_illegal(state);
case 0x005: /* ITT1 */
if (CPU_TYPE_IS_040_PLUS(CPU_TYPE))
{
- m68ki_cpu.mmu_itt1 = REG_DA[(word2 >> 12) & 15];
+ state->mmu_itt1 = REG_DA[(word2 >> 12) & 15];
return;
}
m68ki_exception_illegal(state);
case 0x006: /* DTT0 */
if (CPU_TYPE_IS_040_PLUS(CPU_TYPE))
{
- m68ki_cpu.mmu_dtt0 = REG_DA[(word2 >> 12) & 15];
+ state->mmu_dtt0 = REG_DA[(word2 >> 12) & 15];
return;
}
m68ki_exception_illegal(state);
case 0x007: /* DTT1 */
if (CPU_TYPE_IS_040_PLUS(CPU_TYPE))
{
- m68ki_cpu.mmu_dtt1 = REG_DA[(word2 >> 12) & 15];
+ state->mmu_dtt1 = REG_DA[(word2 >> 12) & 15];
return;
}
m68ki_exception_illegal(state);
case 0x805: /* MMUSR */
if (CPU_TYPE_IS_040_PLUS(CPU_TYPE))
{
- m68ki_cpu.mmu_sr_040 = REG_DA[(word2 >> 12) & 15];
+ state->mmu_sr_040 = REG_DA[(word2 >> 12) & 15];
return;
}
m68ki_exception_illegal(state);
case 0x806: /* URP */
if (CPU_TYPE_IS_040_PLUS(CPU_TYPE))
{
- m68ki_cpu.mmu_urp_aptr = REG_DA[(word2 >> 12) & 15];
+ state->mmu_urp_aptr = REG_DA[(word2 >> 12) & 15];
return;
}
m68ki_exception_illegal(state);
case 0x807: /* SRP */
if (CPU_TYPE_IS_040_PLUS(CPU_TYPE))
{
- m68ki_cpu.mmu_srp_aptr = REG_DA[(word2 >> 12) & 15];
+ state->mmu_srp_aptr = REG_DA[(word2 >> 12) & 15];
return;
}
m68ki_exception_illegal(state);