Implement 8-bit VRAM writes

This commit is contained in:
wheremyfoodat 2023-06-11 13:14:35 +03:00
parent f2b67a2757
commit cba1ce8fb8
3 changed files with 13 additions and 3 deletions
include

View file

@ -95,6 +95,7 @@ namespace KernelMemoryTypes {
class Memory {
u8* fcram;
u8* dspRam;
u8* vram; // Provided to the memory class by the GPU class
u64& cpuTicks; // Reference to the CPU tick counter
using SharedMemoryBlock = KernelMemoryTypes::SharedMemoryBlock;
@ -237,6 +238,7 @@ public:
u8* getDSPMem() { return dspRam; }
u8* getDSPDataMem() { return &dspRam[DSP_DATA_MEMORY_OFFSET]; }
u8* getDSPCodeMem() { return &dspRam[DSP_CODE_MEMORY_OFFSET]; }
u32 getUsedUserMem() { return usedUserMemory; }
void setVRAM(u8* pointer) { vram = pointer; }
};