stupidity

This commit is contained in:
Lea 2023-01-23 22:18:27 +00:00
parent 2f17b16b16
commit 320c7c3e7f

View file

@ -55,7 +55,7 @@ fn main() {
0x23 => format!("INX H"), 0x23 => format!("INX H"),
0x24 => format!("INR H"), 0x24 => format!("INR H"),
0x25 => format!("DCR H"), 0x25 => format!("DCR H"),
0x26 => format!("MVI H,{}", next(&mut data, 1)), 0x26 => format!("MVI H,#0x{}", next(&mut data, 1)),
0x27 => format!("DAA"), 0x27 => format!("DAA"),
0x29 => format!("DAD H"), 0x29 => format!("DAD H"),
0x2a => format!("LHLD ${}", next(&mut data, 2)), 0x2a => format!("LHLD ${}", next(&mut data, 2)),
@ -80,7 +80,7 @@ fn main() {
0x3f => format!("CMC"), 0x3f => format!("CMC"),
0x76 => format!("HLT ; Trigger interrupt"), 0x76 => format!("HLT ; Trigger interrupt"),
0x40..=0x7f // Test this! 0x40..=0x7f // Test this!
=> format!("JMP {},{}", REGISTERS[(byte & 0b111000) as usize >> 3], REGISTERS[(byte & 0b111) as usize]), => format!("MOVV {},{}", REGISTERS[(byte & 0b111000) as usize >> 3], REGISTERS[(byte & 0b111) as usize]),
0x80..=0x87 0x80..=0x87
=> format!("ADD {}", REGISTERS[(byte & 0b111) as usize]), => format!("ADD {}", REGISTERS[(byte & 0b111) as usize]),
0x88..=0x8f 0x88..=0x8f