MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / _ext_memRead16

Function _ext_memRead16

pcsx2/Memory.cpp:539–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

537
538template<int p>
539static mem16_t _ext_memRead16(u32 mem)
540{
541 switch (p)
542 {
543 case 4: // b80
544 MEM_LOG("b800000 Memory read16 address %x", mem);
545 return 0;
546 case 5: // ba0
547 MEM_LOG("ba000000 Memory read16 address %x", mem);
548 return ba0R16(mem);
549 case 6: // gsm
550 return gsRead16(mem);
551
552 case 7: // dev9
553 {
554 mem16_t retval = DEV9read16(mem & ~0xa4000000);
555 Console.WriteLn("DEV9 read16 %8.8lx: %4.4lx", mem & ~0xa4000000, retval);
556 return retval;
557 }
558
559 case 8: // spu2
560 return SPU2read(mem);
561 case 9:
562 return iopMemRead16(mem & ~0x1c000000);
563
564 default: break;
565 }
566 MEM_LOG("Unknown Memory read16 from address %8.8x", mem);
567 cpuTlbMissR(mem, cpuRegs.branch);
568 return 0;
569}
570
571template<int p>
572static mem32_t _ext_memRead32(u32 mem)

Callers

nothing calls this directly

Calls 7

ba0R16Function · 0.85
gsRead16Function · 0.85
DEV9read16Function · 0.85
SPU2readFunction · 0.85
iopMemRead16Function · 0.85
cpuTlbMissRFunction · 0.85
WriteLnMethod · 0.45

Tested by

no test coverage detected