Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
smachine-websocket
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benedict Gaster
smachine-websocket
Commits
511d4f81
"git@gitlab.uwe.ac.uk:a272-jones/shallowsink.git" did not exist on "417ebf5e3725edff278e00d71c0ae564ca410a37"
Commit
511d4f81
authored
6 years ago
by
Benedict Gaster
Browse files
Options
Downloads
Patches
Plain Diff
Updated readme.
parent
53b6b698
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+5
-3
5 additions, 3 deletions
README.md
with
5 additions
and
3 deletions
README.md
+
5
−
3
View file @
511d4f81
...
@@ -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 provide
s
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 next
ed
(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}
```
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment