hyc

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

commit 83356934f91e5edc21e50ebf06e15c593b05fb42
parent 73a93fadd143a0da6859b99b0bf2da38af9b7cda
Author: kocotian <kocotian@kocotian.pl>
Date:   Fri, 30 Jul 2021 22:59:25 +0000

.STRNUM -> STR.NUM

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

diff --git a/target/x86_64-linux.c b/target/x86_64-linux.c @@ -218,9 +218,9 @@ static void compileExpressionLiteralString(Compiler *compiler, ASTExpressionLiteral expr) { pushVector(literalStrings, &expr); - asmDataAppend(compiler, "\t.STR%d: db \"%s\"", + asmDataAppend(compiler, "\tSTR.%d: db \"%s\"", literalStrings.len - 1, expr.value); - asmTextAppend(compiler, "\tmov r15, .STR%d", literalStrings.len - 1); + asmTextAppend(compiler, "\tmov r15, STR.%d", literalStrings.len - 1); } static void