Separate add program into external binary file
This commit is contained in:
parent
ceb56fc158
commit
e6872655f9
2
add.ihex
Normal file
2
add.ihex
Normal file
@ -0,0 +1,2 @@
|
||||
:100000003A1000473A1100803212007600000000DA
|
||||
:00000001FF
|
28
src/main.rs
28
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,
|
||||
|
Loading…
Reference in New Issue
Block a user