removed debug print
This commit is contained in:
@@ -388,7 +388,6 @@ impl Computer {
|
|||||||
while let Some((_, line)) = lines.next() {
|
while let Some((_, line)) = lines.next() {
|
||||||
if let Some([addr, s]) = line.split_ascii_whitespace().collect::<Vec<_>>().as_array() {
|
if let Some([addr, s]) = line.split_ascii_whitespace().collect::<Vec<_>>().as_array() {
|
||||||
if let Ok(i) = u32::from_str_radix(addr, 16) {
|
if let Ok(i) = u32::from_str_radix(addr, 16) {
|
||||||
println!("adding label {s} at addr {i}");
|
|
||||||
new.book.insert(i, s.to_string());
|
new.book.insert(i, s.to_string());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -663,7 +662,6 @@ impl Computer {
|
|||||||
}
|
}
|
||||||
_ => { /* This is a troubling case but ... well it's ok */ }
|
_ => { /* This is a troubling case but ... well it's ok */ }
|
||||||
}
|
}
|
||||||
println!("returning from interupt");
|
|
||||||
let ret = self.ram[self.sp];
|
let ret = self.ram[self.sp];
|
||||||
self.pc = (ret & 0x0FFF_FFFF) as usize;
|
self.pc = (ret & 0x0FFF_FFFF) as usize;
|
||||||
self.sp += 1 as usize;
|
self.sp += 1 as usize;
|
||||||
|
|||||||
Reference in New Issue
Block a user