hyc

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

commit 73a93fadd143a0da6859b99b0bf2da38af9b7cda
parent 7a7e2cfd3033cca4e386db643691f9ec1bd4d439
Author: kocotian <kocotian@kocotian.pl>
Date:   Fri, 30 Jul 2021 22:44:16 +0000

Valuefrom operator

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 @@ -251,6 +251,8 @@ compileExpressionUnaryAddressof(Compiler *compiler, ASTExpressionUnary expr) static void compileExpressionUnaryValuefrom(Compiler *compiler, ASTExpressionUnary expr) { + compileExpression(compiler, expr.expr); + asmTextAppend(compiler, "\tmov r15, [r15]"); } static void