Skip to content

Commit ba1d502

Browse files
committed
Bugfix: overridden warning for jump instructions restored
1 parent 0db3018 commit ba1d502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/shared/disassembler.shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ export class Disassembler {
513513
}
514514

515515
this.disassembledInstructions.forEach(disassembledInstruction => {
516-
if (disassembledInstruction.referencedAddress && !this.startAddresses.includes(disassembledInstruction.referencedAddress)) {
516+
if (disassembledInstruction.referencedAddress && disassembledInstruction.referencedAddress >= 0 && disassembledInstruction.referencedAddress < this.uint8Array.length - this.headerSize && !this.startAddresses.includes(disassembledInstruction.referencedAddress)) {
517517
disassembledInstruction.warning = "This instruction is problematic! It jumps in the middle of another instruction."
518518
}
519519
});

0 commit comments

Comments
 (0)