From 320c7c3e7fc2ee3a478531e96b003dc8a64855bf Mon Sep 17 00:00:00 2001 From: Lea Date: Mon, 23 Jan 2023 22:18:27 +0000 Subject: [PATCH] stupidity --- src/decompiler/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/decompiler/main.rs b/src/decompiler/main.rs index d7d7036..6e73106 100644 --- a/src/decompiler/main.rs +++ b/src/decompiler/main.rs @@ -55,7 +55,7 @@ fn main() { 0x23 => format!("INX H"), 0x24 => format!("INR 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"), 0x29 => format!("DAD H"), 0x2a => format!("LHLD ${}", next(&mut data, 2)), @@ -80,7 +80,7 @@ fn main() { 0x3f => format!("CMC"), 0x76 => format!("HLT ; Trigger interrupt"), 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 => format!("ADD {}", REGISTERS[(byte & 0b111) as usize]), 0x88..=0x8f