mirror of
https://codeberg.org/unspeaker/vestal.git
synced 2025-12-06 12:56:41 +01:00
add some more termination sequences
This commit is contained in:
parent
5b2a785829
commit
71adf9cec3
1 changed files with 7 additions and 1 deletions
|
|
@ -31,7 +31,13 @@ impl Module {
|
|||
//println!("{:15} {} {instruction} {}", self.name, fmt_num(address as usize), fmt_bytes(opcodes));
|
||||
// Ascend on RET
|
||||
if let Some(depth) = recurse {
|
||||
if depth > 0 && opcodes == &[0xc3] {
|
||||
if depth > 0 && opcodes[0] == 0xc3 {
|
||||
break
|
||||
}
|
||||
if depth > 0 && opcodes == &[0x66, 0x90] {
|
||||
break
|
||||
}
|
||||
if depth > 0 && opcodes == &[0x90] {
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue