1
0
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:
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
.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);
}