aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorryo <ryo@nopwd.lol>2024-12-30 16:11:32 +0000
committerryo <ryo@nopwd.lol>2024-12-30 16:11:32 +0000
commit24c328db90627881d7c293e1ba481c6bd96e31da (patch)
tree0b125ab8a8d443b7b9bfc1f7943db0a0fc29a1cb /README
Initial commitHEADmain
Diffstat (limited to 'README')
-rw-r--r--README37
1 files changed, 37 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..5554aef
--- /dev/null
+++ b/README
@@ -0,0 +1,37 @@
+morris mano assembler
+=====================
+
+it reads the input file and output the hex equivalent
+of the instructions. list of pseudoinstructions:
+- ORG - DEC - HEX - END
+instead of make decision based on counting words, i
+made a general structure called token.
+
+LOOP, STA SUM2 I / AC TO SUM2
+----- --- ---- - ------------
+ 0 1 2 3 4
+
+0: label: ends with ',' -> lab[10]
+1: symbol: check out the opcode.txt -> sym[3]
+2: operand: cant start with digit -> opr[10]
+3: indirect-address: opcode plus 8 -> ind
+4: comment: starts with '/' !> not a part
+!) just read the line till that.
+
+or maybe we have something like this:
+
+ HEX B2D7
+ --- ----
+ 0 1
+
+0: pseudo-ops: put the !code -> psu
+1: number: string for now -> opr[10]
+!code)
+ ORG -> 1
+ DEC -> 2
+ HEX -> 3
+ END -> 4
+
+i used stb_ds.h for hash table, please check out
+the website nothings.org for more amazing projects.
+