From 702daa89c7f451f01933e659b59a4daaa01f10ab Mon Sep 17 00:00:00 2001 From: Shagun Agrawal Date: Sun, 18 Aug 2024 14:30:04 +0530 Subject: Fix tacky, assembly, emit phase for chapter 3 --- src/cljcc/emit.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cljcc/emit.clj') 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)])) -- cgit v1.2.3