Skip to content
Snippets Groups Projects
Commit 511d4f81 authored by Benedict Gaster's avatar Benedict Gaster
Browse files

Updated readme.

parent 53b6b698
No related branches found
No related tags found
No related merge requests found
...@@ -117,13 +117,13 @@ this will echo back: ...@@ -117,13 +117,13 @@ this will echo back:
``` ```
< {"returnstack":[],"instCount":1,"input":false,"output":[],"runstack":[],"pc":2} (4ms) < {"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), stack (returnstack), number of instructions executed so far (instCount),
if an input is expected (input), if there is console output (output), and 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 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: To execute the next instruction use the command:
...@@ -139,6 +139,8 @@ in the above program we can simple do: ...@@ -139,6 +139,8 @@ in the above program we can simple do:
{ "step" : 1 } { "step" : 1 }
``` ```
and the following is returned:
``` ```
{"returnstack":[],"instCount":2,"input":true,"output":[],"runstack":[],"pc":3} {"returnstack":[],"instCount":2,"input":true,"output":[],"runstack":[],"pc":3}
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment