summaryrefslogtreecommitdiff
path: root/src/util.lisp
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-04-08 21:41:35 -0400
committerbd <bdunahu@operationnull.com>2025-04-08 21:41:35 -0400
commit8ceaf87c43d412b758bb7562364f7ae8bee913ae (patch)
treeb5cfedcc055ae8ee836daf9d03e05dfa6b4086f3 /src/util.lisp
parentb85c10ba1c53f1b442fea6bde4c2a2f73cfe5d6b (diff)
Add parsing functionality for R-type expressions
Diffstat (limited to 'src/util.lisp')
-rw-r--r--src/util.lisp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/util.lisp b/src/util.lisp
index 5edee4a..027a770 100644
--- a/src/util.lisp
+++ b/src/util.lisp
@@ -16,12 +16,9 @@
"R-type instructions.")
(defparameter type-i
- '(LOAD LOADV ADDI SUBI SFTRI SFTLI ANDI ORI XORI STORE STOREV)
+ '(LOAD LOADV ADDI SUBI SFTRI SFTLI ANDI ORI XORI STORE STOREV MOV)
"I-type instructions.")
(defparameter type-j
'(JMP JRL JAL BEQ BGT BUF BOF PUSH POP)
"J-type instructions.")
-
-(defparameter label-loc '()
- "A symbol table mapping label names to line indices.")