aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam NAILI2018-06-06 00:09:02 +0200
committerAdam NAILI2018-06-06 00:09:02 +0200
commit28c8d2c07a2dd8140da5ca6464c0eb8887624f34 (patch)
tree73051e24d0c4e0ca8ee47b56cb83453177bedbb8
parent68702158711deb4b4c9e84ebaf73da943cb7157e (diff)
downloadtpc-compiler-28c8d2c07a2dd8140da5ca6464c0eb8887624f34.tar.gz
It's working
-rw-r--r--src/generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/generator.c b/src/generator.c
index f35b695..ab3777c 100644
--- a/src/generator.c
+++ b/src/generator.c
@@ -407,7 +407,7 @@ int gen_value(const char ident[], Scope scope) {
407 407
408 case GLOBAL: 408 case GLOBAL:
409 if (is_read_only(ident, scope)) 409 if (is_read_only(ident, scope))
410 fprintf(output, "push QWORD [%s]\n", ident); 410 fprintf(output, "push QWORD %s\n", ident);
411 else 411 else
412 fprintf(output, "push QWORD [globals + %d] ;%s\n", glo_get_addr(ident), ident); 412 fprintf(output, "push QWORD [globals + %d] ;%s\n", glo_get_addr(ident), ident);
413 413