Skip to content

Commit

Permalink
Fixed some typo in README
Browse files Browse the repository at this point in the history
  • Loading branch information
jxwleong committed Sep 7, 2023
1 parent 00c1da3 commit abbd50c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ At STORE state, it will load the current data in the 8-bit data register (A) to
6. **ADD**
At this state, the adder-subtractor will add the current value at the 8-bit data register with the output data of RAM with memory address set by the instruction code.

7. **subtraction**
7. **SUB**
At this state, the adder-subtractor will minus the current value at the 8-bit data register (A) with the output data of RAM with memory address set by the instruction code using 2's complement (A + B'').

8. **INPUT**
Expand Down Expand Up @@ -270,7 +270,7 @@ Answer: Repeat the process from Simple example.


#### <a name="subtraction"></a> subtraction
The last method is to used the repeated subtractionraction method. The working princple is subtract the smaller number from the greater. Repeat the process until the remainders are equal, which is the GCD of the given numbers [10]. For example,
The last method is to used the repeated subtraction method. The working princple is subtract the smaller number from the greater. Repeat the process until the remainders are equal, which is the GCD of the given numbers [10]. For example,

```
Find the GCD for 20 and 5.
Expand Down

0 comments on commit abbd50c

Please sign in to comment.