LFG
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user