Finish fixing html files in 2004
There is one thing brought up on GitHub that might necessitate a minor change but that can happen later.
This commit is contained in:
1 parent
ee3b035080
commit
ba0f9343e1
16 files changed
+203
-139
No files matched your search
+25
-19
@@ -57,26 +57,32 @@ represented by one symbol that are either defined or undefined.
|
||||
|
||||
The ALU has six instructions:
|
||||
|
||||
- `CLR_X` - Clear [register](https://en.wikipedia.org/wiki/Processor_register) `X`.
|
||||
- `CLR_X`
|
||||
* Clear [register](https://en.wikipedia.org/wiki/Processor_register) `X`.
|
||||
|
||||
- `CLR_Y` - Clear [register](https://en.wikipedia.org/wiki/Processor_register) `Y`.
|
||||
- `CLR_Y`
|
||||
* Clear [register](https://en.wikipedia.org/wiki/Processor_register) `Y`.
|
||||
|
||||
- `ADD` - Calculates `X` + `Y` and stores the result in `X`. If the result
|
||||
is larger than 11 bits, the [CARRY
|
||||
bit](https://en.wikipedia.org/wiki/Carry_flag) in `SR` is set otherwise
|
||||
the `CARRY` bit is cleared.
|
||||
- `ADD`
|
||||
* Calculates `X` + `Y` and stores the result in `X`. If the result
|
||||
is larger than 11 bits, the [CARRY
|
||||
bit](https://en.wikipedia.org/wiki/Carry_flag) in `SR` is set otherwise
|
||||
the `CARRY` bit is cleared.
|
||||
|
||||
- `SUB` - Calculates `X` - `Y` and stores the result in `X`. If `Y` was larger
|
||||
than `X`, the [CARRY bit](https://en.wikipedia.org/wiki/Carry_flag)
|
||||
in `SR` is set otherwise the `CARRY` bit is cleared.
|
||||
- `SUB`
|
||||
* Calculates `X` - `Y` and stores the result in `X`. If `Y` was larger than
|
||||
`X`, the [CARRY bit](https://en.wikipedia.org/wiki/Carry_flag) in `SR` is
|
||||
set otherwise the `CARRY` bit is cleared.
|
||||
|
||||
- `TST` - If `X` == `Y` the `EQ` bit in `SR` is set, otherwise the `EQ` bit is
|
||||
cleared. If `X` < `Y` the `LT` bit in `SR` is set, otherwise the `LT`
|
||||
bit is cleared.
|
||||
- `TST`
|
||||
* If `X` == `Y` the `EQ` bit in `SR` is set, otherwise the `EQ` bit is
|
||||
cleared. If `X` < `Y` the `LT` bit in `SR` is set, otherwise the `LT` bit is
|
||||
cleared.
|
||||
|
||||
- `INC2` - Calculates `X` + 2 and stores the result in `X`. The [CARRY
|
||||
bit](https://en.wikipedia.org/wiki/Carry_flag) is handled as in the
|
||||
`ADD` instruction.
|
||||
- `INC2`
|
||||
* Calculates `X` + 2 and stores the result in `X`. The [CARRY
|
||||
bit](https://en.wikipedia.org/wiki/Carry_flag) is handled as in the `ADD`
|
||||
instruction.
|
||||
|
||||
Internally the [ALU](https://en.wikipedia.org/wiki/Arithmetic_logic_unit)
|
||||
implements a one bit adder with a carry in and carry out. This adder is the core
|
||||
@@ -108,10 +114,10 @@ The choice of application may be a bit unfortunate since we've already
|
||||
seen a winning entry calculating [prime
|
||||
numbers](https://en.wikipedia.org/wiki/Prime_number) in the
|
||||
[pre-processor](https://en.wikipedia.org/wiki/C_preprocessor).
|
||||
There is a big difference though. The [1988/applin](../../1988/applin/index.html) entry uses pre-
|
||||
processor arithmetic (in a very nice way though). This program only
|
||||
defines and undefines symbols in a well defined ;) way and doesn't do
|
||||
any pre-processor arithmetics.
|
||||
There is a big difference though. The
|
||||
[1988/applin](../../1988/applin/index.html) entry uses pre-processor arithmetic
|
||||
(in a very nice way though). This program only defines and undefines symbols in
|
||||
a well defined ;) way and doesn't do any pre-processor arithmetics.
|
||||
|
||||
The reason why I chose to do a [prime
|
||||
number](https://en.wikipedia.org/wiki/Prime_number) application is that the
|
||||
|
||||
Reference in new issue
Block a user