hyc

Hydrogen Compiler written in C
git clone git://git.kocotian.pl/hyc.git
Log | Files | Refs | README | LICENSE

commit c661db9676dc119e2ced1b196935fa24397fcf49
parent 02c1730c8848c379768030faee5b45b31e305552
Author: kocotian <kocotian@kocotian.pl>
Date:   Mon, 26 Jul 2021 17:21:20 +0000

Compilation of sign change expression

Diffstat:
Mtarget/x86_64-linux.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/target/x86_64-linux.c b/target/x86_64-linux.c @@ -99,6 +99,8 @@ compileExpressionUnaryNegation(Compiler *compiler, ASTExpressionUnary expr) static void compileExpressionUnarySignChange(Compiler *compiler, ASTExpressionUnary expr) { + compileExpression(compiler, expr.expr); + asmTextAppend("\tneg r15"); } static void