i promise you this is the last commit

This commit is contained in:
abbie 2022-02-15 21:35:13 +00:00
parent ef41729efb
commit c131f7aa39
No known key found for this signature in database
GPG key ID: 04DDE463F9200F87

View file

@ -16,11 +16,11 @@ fn main() {
.expect("Registers file not read properly.");
let sreg: Vec<&str> = lreg.split(",").collect();
let mut x = 0;
x = x + 1;
for s in sreg {
let c = s.replace("\n","");
let int: i32 = c.parse().unwrap();
registers[x] = int;
x = x + 1;
}
}
@ -60,8 +60,8 @@ fn main() {
for x in registers {
if x != 0 {
println!("Register {}: {}", a, x);
a = a + 1;
}
a = a + 1;
}
println!("Instruction Pointer: {}", i);
println!("Program Step: {}", ii);