/** * psp_SoundRamWrite{Byte,Word,Long}: Sound RAM write access functions for * use when the sound CPU is being emulated on the Media Engine. These * functions do _not_ access sound RAM using uncached pointers; data is * assumed to be flushed by the SCSP at periodic intervals. * * 2Mbit mode (MEM4MB == 0) is not supported by these functions. * * [Parameters] * address: Address to write to * data: Data to store * [Return value] * None */ static FASTCALL void psp_SoundRamWriteByte(u32 address, u8 data) { address &= 0x7FFFF; if (address < config_get_me_uncached_boundary()) { T2WriteByte(SoundRam_uncached, address, data); } else { T2WriteByte(SoundRam, address, data); } M68KWriteNotify(address, 1); }
static void FASTCALL LowWramMemoryWriteByte(u32 addr, u8 val) { T2WriteByte(LowWram, addr & 0xFFFFF, val); }