mirror of
https://github.com/mre/mos6502.git
synced 2024-11-30 20:51:21 +00:00
Simplify GCD program
This commit is contained in:
parent
8c088611bb
commit
7398fc4c3f
@ -9,7 +9,7 @@ fn main() {
|
||||
|
||||
let zero_page_data = input
|
||||
.trim()
|
||||
.split(' ')
|
||||
.split_whitespace()
|
||||
.map(|s| s.parse::<u8>().unwrap())
|
||||
.collect::<Vec<u8>>();
|
||||
|
||||
@ -42,5 +42,5 @@ fn main() {
|
||||
|
||||
cpu.run();
|
||||
|
||||
println!("GCD is {:?}", cpu.registers.accumulator);
|
||||
println!("GCD is {}", cpu.registers.accumulator);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user