/[pcsx2_0.9.7]/trunk/pcsx2/VUops.cpp
ViewVC logotype

Diff of /trunk/pcsx2/VUops.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 62 by william, Tue Sep 7 11:08:22 2010 UTC revision 273 by william, Fri Nov 12 01:10:22 2010 UTC
# Line 1578  static __fi void _vuMR32(VURegs * VU) { Line 1578  static __fi void _vuMR32(VURegs * VU) {
1578    
1579  __fi u32* GET_VU_MEM(VURegs* VU, u32 addr)              // non-static, also used by sVU for now.  __fi u32* GET_VU_MEM(VURegs* VU, u32 addr)              // non-static, also used by sVU for now.
1580  {  {
1581          if( VU == &vuRegs[1] ) return (u32*)(vuRegs[1].Mem+(addr&0x3fff));          if (VU == &vuRegs[1])
1582          if( addr & 0x4000 ) return (u32*)(vuRegs[1].VF+(addr&0x3f0)); // get VF and VI regs (they're mapped to 0x4xx0 in VU0 mem!)                  return (u32*)(vuRegs[1].Mem + (addr & 0x3fff));
1583          return (u32*)(vuRegs[0].Mem+(addr&0x0fff)); // for addr 0x0000 to 0x4000 just wrap around          else if (addr & 0x4000)
1584                    return (u32*)((u8*)vuRegs[1].VF + (addr & 0x3ff)); // get VF and VI regs (they're mapped to 0x4xx0 in VU0 mem!)
1585            else
1586                    return (u32*)(vuRegs[0].Mem + (addr & 0xfff)); // for addr 0x0000 to 0x4000 just wrap around
1587  }  }
1588    
1589  static __ri void _vuLQ(VURegs * VU) {  static __ri void _vuLQ(VURegs * VU) {

Legend:
Removed from v.62  
changed lines
  Added in v.273

  ViewVC Help
Powered by ViewVC 1.1.22