The game is no longer named in the tree
Comments, documents and descriptions now say "the title". No code changes. Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
1 parent
90228a7dc6
commit
4e17478b9c
55 files changed
+161
-161
No files matched your search
@@ -1,5 +1,5 @@
|
||||
//! Instructions the console's CPU (Zen 2) has and an Intel PC's lacks, emulated: the title's
|
||||
//! code raises STATUS_ILLEGAL_INSTRUCTION on them (GTA VI zeroes memory with a `clzero` loop at
|
||||
//! code raises STATUS_ILLEGAL_INSTRUCTION on them (the title zeroes memory with a `clzero` loop at
|
||||
//! its first frames), and the vectored handler steps over them here.
|
||||
//!
|
||||
//! Ported from XCL (github.com/ivall/xcl, GPL-2.0-only): `insn.rs` (decoder, as
|
||||
|
||||
@@ -82,7 +82,7 @@ fn patch(code: &mut [u8], at: usize, thunks: usize) -> usize {
|
||||
let c = &code[i..i + LOAD_LEN];
|
||||
let rex = c[1];
|
||||
let reg = usize::from((c[3] >> 3) & 7) | if rex & 4 != 0 { 8 } else { 0 };
|
||||
// shortcut: a byte match, not a decode. In Grand Theft Auto VI all
|
||||
// shortcut: a byte match, not a decode. In the title all
|
||||
// 53,246 hits are instruction starts and none is missed (checked
|
||||
// against a full disassembly); decode .text if a title shows one.
|
||||
if c[0] == 0x65
|
||||
|
||||
Reference in new issue
Block a user