wm: 5552

Download patch

ref: 1cb78fe44c9753cb58653fc575db36c740bb608f
parent: 379ff75027638c0b0f3f844c286ef38aeaebfb89
author: mkf <mkf@cloud9p.org>
date: Wed Jul 3 07:58:34 EDT 2024

notes.txt: import

--- /dev/null
+++ b/notes.txt
@@ -1,0 +1,46 @@
+|====================================|
+| inst. | mode | src/arg1 | dst/arg2 |
+|= 6bit = 2bit =   8bit   =   8bit   |
+|====================================|
+
+registers:
+RES: output of operations
+CRR: carry
+
+ONE: always one
+OFF: always zero
+
+FLAGS: flags?
+
+PC: program counter
+STATE: machine state
+
+instructions:
+I/O:
+DRD, device read
+DWR, device write
+
+bitwise:
+NOT,
+AND,
+NOR,
+XOR,
+
+arithmatic:
+ADD,
+SUB,
+
+INC, ++
+DEC, --
+
+MUL,
+DIV,
+
+SHR,
+SHL,
+
+branching:
+JMP, jump
+
+each instruction may have serval modes, for I/O insturtions it's
+device and for arithmatic (and jump?) it is addressing mode.