return Z1 and Z2 from TSC (fix scummvm mouse); and fix a creepy looking bug with IME setting in swi intrWaitARM
This commit is contained in:
parent
8d72769735
commit
80e807c6da
|
@ -3897,13 +3897,16 @@ void FASTCALL _MMU_ARM7_write16(u32 adr, u16 val)
|
|||
case 0x20 :
|
||||
val = 0;
|
||||
break;
|
||||
case 0x30 :
|
||||
val = 0;
|
||||
case 0x30: //Z1
|
||||
//used for pressure calculation - must be nonzero or else some softwares will think the stylus is up.
|
||||
if(nds.isTouch) val = 2048;
|
||||
else val = 0;
|
||||
break;
|
||||
case 0x40 :
|
||||
val = 0;
|
||||
case 0x40: //Z2
|
||||
//used for pressure calculation. we dont support pressure calculation so just return something.
|
||||
val = 2048;
|
||||
break;
|
||||
case 0x50 :
|
||||
case 0x50:
|
||||
if(spicnt & 0x800)
|
||||
{
|
||||
if(partie)
|
||||
|
|
|
@ -256,6 +256,7 @@ TEMPLATE u32 intrWaitARM()
|
|||
//if(!noDiscard)
|
||||
// intrFlag &= cpu->newIrqFlags;
|
||||
|
||||
MMU.reg_IME[PROCNUM] = 1;
|
||||
_MMU_write32<PROCNUM>(0x04000208, 1); // set IME=1
|
||||
|
||||
if (intrFlag)
|
||||
|
|
Loading…
Reference in New Issue