mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 20:49:12 +12:00
Stuffs
This commit is contained in:
parent
f2ab7a0370
commit
23a6ef447f
3 changed files with 11 additions and 5 deletions
|
@ -4,8 +4,13 @@
|
|||
using namespace Floats;
|
||||
|
||||
u32 GPU::readReg(u32 address) {
|
||||
log("Ignoring read from GPU register %08X\n", address);
|
||||
return 0;
|
||||
if (address >= 0x1EF01000 && address < 0x1EF01C00) { // Internal registers
|
||||
const u32 index = (address - 0x1EF01000) / sizeof(u32);
|
||||
return readInternalReg(index);
|
||||
} else {
|
||||
log("Ignoring read to external GPU register %08X.\n", address);
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
void GPU::writeReg(u32 address, u32 value) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue