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

Function _ext_memWrite8

pcsx2/Memory.cpp:643–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641
642template<int p>
643static void _ext_memWrite8 (u32 mem, mem8_t value)
644{
645 switch (p) {
646 case 3: // psh4
647 psxHw4Write8(mem, value); return;
648 case 6: // gsm
649 gsWrite8(mem, value); return;
650 case 7: // dev9
651 DEV9write8(mem & ~0xa4000000, value);
652 Console.WriteLn("DEV9 write8 %8.8lx: %2.2lx", mem & ~0xa4000000, value);
653 return;
654 case 9:
655 iopMemWrite8(mem & ~0x1c000000, value);
656 return;
657 default: break;
658 }
659
660 MEM_LOG("Unknown Memory write8 to address %x with data %2.2x", mem, value);
661 cpuTlbMissW(mem, cpuRegs.branch);
662}
663
664template<int p>
665static void _ext_memWrite16(u32 mem, mem16_t value)

Callers

nothing calls this directly

Calls 6

psxHw4Write8Function · 0.85
gsWrite8Function · 0.85
DEV9write8Function · 0.85
iopMemWrite8Function · 0.85
cpuTlbMissWFunction · 0.85
WriteLnMethod · 0.45

Tested by

no test coverage detected