From e6872655f9293a98dee91a40ce2f18a32b0722fe Mon Sep 17 00:00:00 2001 From: pjht Date: Tue, 30 Jan 2024 13:39:52 -0600 Subject: [PATCH] Separate add program into external binary file --- add.ihex | 2 ++ src/main.rs | 28 ---------------------------- 2 files changed, 2 insertions(+), 28 deletions(-) create mode 100644 add.ihex diff --git a/add.ihex b/add.ihex new file mode 100644 index 0000000..12cfbc9 --- /dev/null +++ b/add.ihex @@ -0,0 +1,2 @@ +:100000003A1000473A1100803212007600000000DA +:00000001FF diff --git a/src/main.rs b/src/main.rs index 1856026..3ed9f20 100644 --- a/src/main.rs +++ b/src/main.rs @@ -230,34 +230,6 @@ impl AltairEmulator { let mut mem = [0; 65536]; let cpu = I8080::new(); rand::thread_rng().fill_bytes(&mut mem); - mem[0x0] = 0x3a; - mem[0x1] = 0x10; - mem[0x2] = 0x00; - - mem[0x3] = 0x47; - - mem[0x4] = 0x3a; - mem[0x5] = 0x11; - mem[0x6] = 0x00; - - mem[0x7] = 0x80; - - mem[0x8] = 0x32; - mem[0x9] = 0x12; - mem[0xa] = 0x00; - - mem[0xb] = 0x76; - - mem[0x10] = 0x4; - mem[0x11] = 0x5; - // 0: 072 020 000 - // 3: 107 - // 4: 072 021 000 - // 7: 200 - // 10: 062 022 000 - // 13: 166 - // 20: 004 - // 21: 005 Self { textures: Textures::new(&cc.egui_ctx), option_window: None,