add some more termination sequences

This commit is contained in:
🪞👃🪞 2025-02-24 00:38:25 +02:00
parent 5b2a785829
commit 71adf9cec3

View file

@ -31,7 +31,13 @@ impl Module {
//println!("{:15} {} {instruction} {}", self.name, fmt_num(address as usize), fmt_bytes(opcodes)); //println!("{:15} {} {instruction} {}", self.name, fmt_num(address as usize), fmt_bytes(opcodes));
// Ascend on RET // Ascend on RET
if let Some(depth) = recurse { 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 break
} }
} }