diff options
| author | uvok | 2026-01-21 20:30:42 +0100 |
|---|---|---|
| committer | uvok | 2026-01-21 20:30:42 +0100 |
| commit | 79fdec74ff93619f14d2ba1dd70f99b633316efd (patch) | |
| tree | 0765dabf6037fe973b35a9e2268e2b45bb1fd795 | |
| parent | 3ea79588c47a7d3dd6f27b0e9da148af462e7da6 (diff) | |
Document SUB command
| -rw-r--r-- | eater_cpu/readme.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/eater_cpu/readme.txt b/eater_cpu/readme.txt index a003415..b75a00c 100644 --- a/eater_cpu/readme.txt +++ b/eater_cpu/readme.txt @@ -30,7 +30,8 @@ instruction set NOP ____________ 0b_0000_xxxx No-op LDA <memaddress> 0b_0001_<memaddress> Load memory > A -ADD <memaddress> 0b_0010_<memaddress> "Add memory" + A -> A +ADD <memaddress> 0b_0010_<memaddress> "Add memory": mem>B, A + B -> A +SUB <memaddress> 0b_0011_<memaddress> "Sub memory": mem>B, A - B-> A OUT ____________ 0b_1110_xxxx Output A -> OUT HLT ____________ 0b_1111_xxxx Sets halt flag --- |
