From 928fd47d680a5cbdfa798c4a66ee61f693407faf Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 5 Apr 2021 21:10:45 -0700 Subject: snapshot: stupid debugging session I spent a while building a little keyboard scancode printer: $ ./translate ex1.mu && qemu-system-i386 disk.img ..and wondering why up-arrow was 0x48 in hex but 724 in decimal. I ended up paranoidly poking at a bunch of crap (though there _is_ a cool chromatography-based debugging technique in 126write-int-decimal.subx) before I realized: - 724 just has one extra digit over the correct answer - the 0xe0 scan code is a 3-digit number in decimal -- and the final digit is '4' There's nothing actually wrong. --- ex1.mu | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 ex1.mu (limited to 'ex1.mu') diff --git a/ex1.mu b/ex1.mu new file mode 100644 index 00000000..0b379f60 --- /dev/null +++ b/ex1.mu @@ -0,0 +1,3 @@ +fn main screen: (addr screen), keyboard: (addr keyboard), data-disk: (addr disk) { + loop +} -- cgit 1.4.1-2-gfad0