From 4d78876ad6f40126bf68cb2da4a43f56d9ef6e76 Mon Sep 17 00:00:00 2001 From: Lee Lup Yuen Date: Wed, 22 Feb 2023 16:13:38 +0800 Subject: [PATCH] Update doc --- README.md | 4 ++++ src/main.rs | 1 + 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 8303736..7e58099 100644 --- a/README.md +++ b/README.md @@ -465,10 +465,14 @@ hook_code: address=0x40089334, size=4 hook_memory: address=0x400b6a54, size=1, mem_type=WRITE, value=0x0 ``` +Let's print the UART Output... + # Handle UART Output TODO: [UART Output](https://gist.github.com/lupyuen/587dbeb9329d9755e4d007dd8e1246cd) +https://github.com/lupyuen/pinephone-emulator/blob/aa6dd986857231a935617e8346978d7750aa51e7/src/main.rs#L89-L111 + # Unicorn Emulator Halts in NuttX MMU TODO: Unicorn Emulator halts... diff --git a/src/main.rs b/src/main.rs index 5ae3073..cf33569 100644 --- a/src/main.rs +++ b/src/main.rs @@ -107,6 +107,7 @@ fn hook_memory( } // Always return true, value is unused by caller + // https://github.com/unicorn-engine/unicorn/blob/dev/docs/FAQ.md#i-cant-recover-from-unmapped-readwrite-even-i-return-true-in-the-hook-why true }