fixed up debug command

This commit is contained in:
Mwa
2026-03-26 20:11:32 +01:00
parent a51b6589f0
commit e97b4c4ee4
2 changed files with 15 additions and 739 deletions

752
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -425,7 +425,7 @@ fn debug_loop(com: &mut Computer) {
}, },
Commands::Up => { Commands::Up => {
let curr_sp = com.sp; let curr_sp = com.sp;
while (com.sp > curr_sp) while (com.sp < curr_sp)
|| ((com.ram[com.pc] != (0b10001000 << 24)) || ((com.ram[com.pc] != (0b10001000 << 24))
&& (com.ram[com.pc] != (0b10101000 << 24))) && (com.ram[com.pc] != (0b10101000 << 24)))
{ {