1
0
mirror of https://github.com/mre/mos6502.git synced 2024-06-13 15:29:33 +00:00

Simplify GCD program

This commit is contained in:
Matthias 2022-06-07 20:17:44 +02:00
parent 8c088611bb
commit 7398fc4c3f

View File

@ -9,7 +9,7 @@ fn main() {
let zero_page_data = input let zero_page_data = input
.trim() .trim()
.split(' ') .split_whitespace()
.map(|s| s.parse::<u8>().unwrap()) .map(|s| s.parse::<u8>().unwrap())
.collect::<Vec<u8>>(); .collect::<Vec<u8>>();
@ -42,5 +42,5 @@ fn main() {
cpu.run(); cpu.run();
println!("GCD is {:?}", cpu.registers.accumulator); println!("GCD is {}", cpu.registers.accumulator);
} }