mirror of https://github.com/PCSX2/pcsx2.git
optimized some retarded code...
git-svn-id: http://pcsx2-playground.googlecode.com/svn/trunk@157 a6443dda-0b58-4228-96e9-037be469359c
This commit is contained in:
parent
8039cdd8b7
commit
c3f5932904
|
@ -784,7 +784,7 @@ void hwWrite16(u32 mem, u16 value)
|
||||||
}
|
}
|
||||||
|
|
||||||
void hwWrite32(u32 mem, u32 value) {
|
void hwWrite32(u32 mem, u32 value) {
|
||||||
int i;
|
//int i;
|
||||||
|
|
||||||
//IPU regs
|
//IPU regs
|
||||||
if ((mem>=0x10002000) && (mem<0x10003000)) {
|
if ((mem>=0x10002000) && (mem<0x10003000)) {
|
||||||
|
@ -1033,13 +1033,19 @@ void hwWrite32(u32 mem, u32 value) {
|
||||||
HW_LOG("DMAC_STAT Write 32bit %x\n", value);
|
HW_LOG("DMAC_STAT Write 32bit %x\n", value);
|
||||||
#endif
|
#endif
|
||||||
psHu16(0xe010)&= ~(value & 0xffff); // clear on 1
|
psHu16(0xe010)&= ~(value & 0xffff); // clear on 1
|
||||||
|
/*
|
||||||
value = value >> 16;
|
value = value >> 16;
|
||||||
|
|
||||||
for (i=0; i<16; i++) { // reverse on 1
|
for (i=0; i<16; i++) { // reverse on 1
|
||||||
if (value & (1<<i)) {
|
if (value & (1<<i)) {
|
||||||
if (psHu16(0xe012) & (1<<i)) psHu16(0xe012)&= ~(1<<i);
|
if (psHu16(0xe012) & (1<<i)) psHu16(0xe012)&= ~(1<<i);
|
||||||
else psHu16(0xe012)|= 1<<i;
|
else psHu16(0xe012)|= 1<<i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
//just XOR it! :p
|
||||||
|
psHu16(0xe012) ^= (u16)(value >> 16);
|
||||||
|
|
||||||
if ((cpuRegs.CP0.n.Status.val & 0x10807) == 0x10801)
|
if ((cpuRegs.CP0.n.Status.val & 0x10807) == 0x10801)
|
||||||
cpuTestDMACInts();
|
cpuTestDMACInts();
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue