aboutsummaryrefslogtreecommitdiff
path: root/src/cljcc/emit.clj
diff options
context:
space:
mode:
authorShagun Agrawal <agrawalshagun07@gmail.com>2024-08-17 01:32:17 +0530
committerShagun Agrawal <agrawalshagun07@gmail.com>2024-08-17 01:32:17 +0530
commit9867129bf45bb620ca56715c74243de3bde9de3c (patch)
treec346c543ea9ec6d5d9440535e0b3406f5662d913 /src/cljcc/emit.clj
parentc795bb12c210e8d54060cf7766c97f101063c99a (diff)
Fix changes for ch2
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 d18edb3..514cd45 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"
- :negate "negl"
+ :hyphen "negl"
(throw (AssertionError. (str "Invalid unary operator: " instruction))))]
[(format " %s %s" assembly-operator operand)]))