mirror of
https://github.com/mre/mos6502.git
synced 2024-11-25 02:33:26 +00:00
refactoring
This commit is contained in:
parent
7f7b9d87a2
commit
6a0163138a
@ -3,16 +3,16 @@ use mos6502::address::Address;
|
||||
use mos6502::cpu;
|
||||
|
||||
fn main() {
|
||||
println!("Enter two numbers (< 128) to know their GCD:");
|
||||
let mut input = String::new();
|
||||
std::io::stdin().read_line(&mut input).unwrap();
|
||||
let nums = input
|
||||
|
||||
let zero_page_data = input
|
||||
.trim()
|
||||
.split(' ')
|
||||
.map(|s| s.parse::<u8>().unwrap())
|
||||
.collect::<Vec<u8>>();
|
||||
let (first, second) = (nums[0], nums[1]);
|
||||
|
||||
let zero_page_data = [first, second];
|
||||
let program = [
|
||||
// (F)irst | (S)econd
|
||||
// .algo
|
||||
|
Loading…
Reference in New Issue
Block a user