diff options
| author | uvok | 2026-01-26 20:31:24 +0100 |
|---|---|---|
| committer | uvok | 2026-01-26 20:31:24 +0100 |
| commit | 4cc62801974319a0ea2a1ed59fcf61aa9afed5bd (patch) | |
| tree | 746e670e3bc1fcae922cf0d6673aa95864789708 /eater_cpu/readme.txt | |
| parent | 3af78e1ad3d70a267f291124be7d7bc55db3f3b6 (diff) | |
eater: Add cond jump
Diffstat (limited to 'eater_cpu/readme.txt')
| -rw-r--r-- | eater_cpu/readme.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/eater_cpu/readme.txt b/eater_cpu/readme.txt index 44ae2d2..debb861 100644 --- a/eater_cpu/readme.txt +++ b/eater_cpu/readme.txt @@ -35,6 +35,8 @@ SUB <memaddress> 0b_0011_<memaddress> "Sub memory": mem>B, A - B-> A STA <memaddress> 0b_0100_<memaddress> Store A -> memory LDI <value> 0b_0101_<value> Store <value> -> A JMP <address> 0b_0110_<address> <address> -> PC +JC <address> 0b_0111_<address> <address> -> PC if C=1 +JZ <address> 0b_1000_<address> <address> -> PC if Z=1 OUT ____________ 0b_1110_xxxx Output A -> OUT HLT ____________ 0b_1111_xxxx Sets halt flag --- |
