Skip to content

Commit

Permalink
fixed bug dis panel not updating
Browse files Browse the repository at this point in the history
  • Loading branch information
robalb committed Oct 23, 2024
1 parent bf885c6 commit deae86d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions svelte_blinkenweb/src/components/Disassembler.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ function updateDis(){
return;
}
if(blink.state == blink.states.PROGRAM_STOPPED &&
blink.stopReason.loadFail){
disassebly_fail = true;
first_line = "";
return;
}
if(blink.state == blink.states.PROGRAM_STOPPED){
first_line = "";
}
Expand All @@ -60,7 +67,15 @@ function updateDis(){
let mem = blink.m.memView;
//handle disassembler fails
//TODO: there is a bug where first_line = junk data
// after a rip jump to the stack
if(current_line > lines){
// console.log({
// startPtr,
// lines,
// line_len,
// current_line
// })
disassebly_fail = true;
return;
}
Expand Down

0 comments on commit deae86d

Please sign in to comment.