Skip to content

Commit f07d2f9

Browse files
author
Beej Jorgensen
committed
remove c cruft
1 parent a91c41e commit f07d2f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ls8/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ The number of bytes an instruction uses can be determined from the two high bits
129129
130130
## Step 4: Implement the `HLT` instruction handler
131131
132-
Add the `HLT` instruction define to `cpu.h`.
132+
Add the `HLT` instruction definition to `cpu.py` so that you can refer to it by
133+
name instead of by numeric value.
133134
134135
In `run()` in your switch, exit the loop if a `HLT` instruction is encountered,
135136
regardless of whether or not there are more lines of code in the LS-8 program
@@ -476,4 +477,4 @@ Doing this correctly requires implementing `CMP`, and some comparative forms of
476477
477478
Hint: Look in the `asm/` directory and learn how to use the `asm.js` assembler.
478479
This way you can write your code in assembly language and use the assembler to
479-
build it to machine code and then run it on your emulator.
480+
build it to machine code and then run it on your emulator.

0 commit comments

Comments
 (0)