Skip to content

Commit

Permalink
Fixed bug that made the program crush when editing instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
Etto48 committed Jul 2, 2024
1 parent 6a17358 commit f5d489d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/asm/assembly.rs
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ impl App {

loop {
if current_byte >= maximum_code_byte {
to_byte = maximum_code_byte.saturating_sub(1);
break;
}
let bytes = &self.data.bytes[current_byte..maximum_code_byte];
Expand Down

0 comments on commit f5d489d

Please sign in to comment.