From d7119782ddbe95bdffdd4d35fc36a3d5fc11136c Mon Sep 17 00:00:00 2001 From: id101010 Date: Wed, 16 Nov 2016 16:23:30 +0100 Subject: [PATCH] Added #-debugging example --- README.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e6f4c0f..f6b49e2 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,27 @@ A # Breakpoints -\# in the brainfuck source will be interpreted as breakpoints. You can use them if you want to stop the program flow at a specific point and start the debugger from there. If you are in debugger mode pressing c will get you back to executing the program. +A # in the brainfuck source will be interpreted as breakpoint. You can use them if you want to stop the program flow at a specific point and start the debugger from there. If you are in debugger mode pressing c will get you back to executing the program. + +./bfckr -e "----[#---->+<]>++." +~~~~ +[ENTER]: single step [c]: continue + +Source viewer: +------------------------------------------------------------ + ----[#---->+<]>++. + ^ + ip=5 +------------------------------------------------------------ + +Memory viewer: +------------------------------------------------------------ +000 000 000 000 000 000 000 -04 000 000 000 000 000 000 000 + ^ + mp=0 +993 994 995 996 997 998 999 000 001 002 003 004 005 006 007 +------------------------------------------------------------ +~~~~ # Licence