[Memory] Stub 3D state LED

This commit is contained in:
wheremyfoodat 2022-10-11 23:55:38 +03:00
parent 85b7ebae6f
commit 35c4590104
2 changed files with 3 additions and 1 deletions

View file

@ -7,6 +7,7 @@ namespace ConfigMem {
KernelVersionMinor = 0x1FF80002,
KernelVersionMajor = 0x1FF80003,
AppMemAlloc = 0x1FF80040,
Datetime0 = 0x1FF81020
Datetime0 = 0x1FF81020,
LedState3D = 0x1FF81084
};
}

View file

@ -76,6 +76,7 @@ u8 Memory::read8(u32 vaddr) {
switch (vaddr) {
case ConfigMem::KernelVersionMinor: return u8(kernelVersion & 0xff);
case ConfigMem::KernelVersionMajor: return u8(kernelVersion >> 8);
case ConfigMem::LedState3D: return 1; // Report the 3D LED as always off (non-zero) for now
default: Helpers::panic("Unimplemented 8-bit read, addr: %08X", vaddr);
}
}