You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-8Lines changed: 14 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,17 +9,13 @@ It contains two tools:
9
9
-**`rusty_man_computer`** Is the main program. It reads a binary file containing assembled LMC code and runs it.
10
10
-**`bin_creator`** is a utility that lets you paste in the contents of LMC's memory (from the online simulator), which it will convert to a binary file (which can be executed by `rusty_man_computer`).
11
11
12
-
## Screenshots
13
-
14
-
### Printing every ASCII character
15
-
16
-
This screenshot only shows the last few clock cycles, after all the characters have been printed.
12
+
## Usage
17
13
18
-
Each clock cycle, the contents of the registers are shown on the first line, the next line is the output, and then the contents of memory is printed, formatted in the same way as the online simulator (left to right, and then down).
14
+
### Running in CodeSandbox
19
15
20
-

16
+
You can try Rusty-Man Computer in your browser by visiting the **CodeSandbox demo**. (TODO: Add link)
21
17
22
-
## Usage
18
+
Once CodeSandbox has loaded, press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>\`</kbd> to open a new terminal, where you can use `cargo run` to run the [demo programs](#running-the-demo-programs) below.
-`--help` (`-h`) prints the help message, which shows a list of command-line arguments.
107
103
-`--version` (`-V`) prints the program name and version.
108
104
105
+
## Screenshots
106
+
107
+
### Printing every ASCII character
108
+
109
+
This screenshot only shows the last few clock cycles, after all the characters have been printed.
110
+
111
+
Each clock cycle, the contents of the registers are shown on the first line, the next line is the output, and then the contents of memory is printed, formatted in the same way as the online simulator (left to right, and then down).
112
+
113
+

114
+
109
115
## Features
110
116
111
117
Rusty-Man Computer shows the whole state of the computer at the end of every clock cycle, including the contents of the registers, all memory values, the output, and if a branch instruction has been called. This verbose output should make it easy to see what the emulator is doing, and to track your code as it runs.
0 commit comments