This commit is contained in:
2026-05-22 18:00:20 +02:00
parent b6452880a9
commit 72253d9d6a
2 changed files with 27 additions and 2 deletions
+14 -1
View File
@@ -94,5 +94,18 @@ u32 Interpreter::Step() {
return 1;
}
u32 Interpreter::ExecuteCached() {}
u32 DivideAddr(u32 addr, u32& offset) {
offset = (addr & (MAX_LINES_PER_BLOCK - 1)) / 4;
return addr / MAX_LINES_PER_BLOCK;
}
CachedLine* GetLine(CachedState& cachedState, u32 addr) {
u32 offset;
u32 page = DivideAddr(addr, offset);
return cachedState.blocks[page][offset].lines[0];
}
u32 Interpreter::ExecuteCached() {
}
} // namespace n64