Separate add program into external binary file

This commit is contained in:
pjht 2024-01-30 13:39:52 -06:00
parent ceb56fc158
commit e6872655f9
Signed by: pjht
GPG Key ID: CA239FC6934E6F3A
2 changed files with 2 additions and 28 deletions

2
add.ihex Normal file
View File

@ -0,0 +1,2 @@
:100000003A1000473A1100803212007600000000DA
:00000001FF

View File

@ -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,