aboutsummaryrefslogtreecommitdiff
path: root/src/cljcc/emit.clj
diff options
context:
space:
mode:
authorShagun Agrawal <agrawalshagun07@gmail.com>2024-08-18 14:30:04 +0530
committerShagun Agrawal <agrawalshagun07@gmail.com>2024-08-18 14:30:04 +0530
commit702daa89c7f451f01933e659b59a4daaa01f10ab (patch)
treee92040dceb734996a0df5d1dc5c5cba13d7bb925 /src/cljcc/emit.clj
parent9867129bf45bb620ca56715c74243de3bde9de3c (diff)
Fix tacky, assembly, emit phase for chapter 3
Diffstat (limited to 'src/cljcc/emit.clj')
-rw-r--r--src/cljcc/emit.clj2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cljcc/emit.clj b/src/cljcc/emit.clj
index 514cd45..d18edb3 100644
--- a/src/cljcc/emit.clj
+++ b/src/cljcc/emit.clj
@@ -48,7 +48,7 @@
(let [operand (operand-emit (:operand instruction))
assembly-operator (condp = (:unary-operator instruction)
:complement "notl"
- :hyphen "negl"
+ :negate "negl"
(throw (AssertionError. (str "Invalid unary operator: " instruction))))]
[(format " %s %s" assembly-operator operand)]))