From 511d4f81a64f69f97f1a1578bde9e5740d9efd27 Mon Sep 17 00:00:00 2001 From: "Benedict R. Gaster" <benedict.gaster@uwe.ac.uk> Date: Fri, 3 Aug 2018 20:58:29 +0100 Subject: [PATCH] Updated readme. --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d3f3e06..59ef8e2 100644 --- a/README.md +++ b/README.md @@ -117,13 +117,13 @@ this will echo back: ``` < {"returnstack":[],"instCount":1,"input":false,"output":[],"runstack":[],"pc":2} (4ms) ``` -This JSON provide details of the data stack (runstack), the function call +This JSON provides details of the data stack (runstack), the function call stack (returnstack), number of instructions executed so far (instCount), if an input is expected (input), if there is console output (output), and -the current line number that will be executed nexted (pc). +the current line number that will be executed next (pc). Once a program has been loaded the simulator will start execution and break at -the first instruction after entry point main. Returning the above JSON. +the first instruction after the entry point, main. Returning the above JSON. To execute the next instruction use the command: @@ -139,6 +139,8 @@ in the above program we can simple do: { "step" : 1 } ``` +and the following is returned: + ``` {"returnstack":[],"instCount":2,"input":true,"output":[],"runstack":[],"pc":3} ``` -- GitLab