From a52506a17fff19a7aa34bd469a9ded76978aeda2 Mon Sep 17 00:00:00 2001 From: Anton Lydike Date: Fri, 23 Apr 2021 19:37:38 +0200 Subject: [PATCH] updated docs for new logging --- README.md | 6 ++++-- docs/debugging.md | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index abc3707..34a4348 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,10 @@ A couple of basic assembly programs are provided inside `examples/`, such as [`h You can run it by typing `python -m riscemu examples/hello-world.asm`. It will produce output similar to: ``` -Successfully loaded: LoadedExecutable[examples/hello-world.asm](base=0x00000100, size=24bytes, sections=data text, run_ptr=0x00000110) +[MMU] Successfully loaded: LoadedExecutable[examples/hello-world.asm](base=0x00000100, size=24bytes, sections=data text, run_ptr=0x00000110) +[CPU] Started running from 0x00000110 (examples/hello-world.asm) Hello world + Program exited with code 0 ``` @@ -85,5 +87,5 @@ Check out the [documentation](https://riscemu.readthedocs.io/en/latest/riscemu.h * Add a cycle limit to the options and CPU to catch infinite loops * Move away from `print` and use `logging.logger` instead * Properly support stack/heap - + * Writer proper tests diff --git a/docs/debugging.md b/docs/debugging.md index b54af5c..927e6a1 100644 --- a/docs/debugging.md +++ b/docs/debugging.md @@ -34,8 +34,9 @@ uses the `ebreak` instruction to open the debugger. Let's run it and see what ha ``` > python -m riscemu examples/fibs.asm -Successfully loaded: LoadedExecutable[examples/fibs.asm](base=0x00000100, size=72bytes, sections=data text, run_ptr=0x00000138) -Debug instruction encountered at 0x00000143 +[MMU] Successfully loaded: LoadedExecutable[examples/fibs.asm](base=0x00000100, size=72bytes, sections=data text, run_ptr=0x00000138) +[CPU] Started running from 0x00000138 (examples/fibs.asm) +Debug instruction encountered at 0x0000013C >>> ```