aboutsummaryrefslogtreecommitdiff
path: root/pc.l
diff options
context:
space:
mode:
authorTucker Evans <tuckerevans24@gmail.com>2019-10-08 20:41:09 -0400
committerTucker Evans <tuckerevans24@gmail.com>2019-10-08 20:41:09 -0400
commiteee77999764131bd35ce2c471d32cd0b6e85f598 (patch)
tree9478c68c0941bdf0ec5fac8d1a0c8122b94b0fd3 /pc.l
parent3f98f3dbf56811b481e5c422fe3c68e933802a76 (diff)
Add write function assembly
Diffstat (limited to 'pc.l')
-rw-r--r--pc.l5
1 files changed, 5 insertions, 0 deletions
diff --git a/pc.l b/pc.l
index 553d495..eb8b4ea 100644
--- a/pc.l
+++ b/pc.l
@@ -43,6 +43,11 @@ output {
tmp->func_info->argc = -1;
tmp->func_info->argv = NULL;
+ fprintf(stdout, ".data\n");
+ fprintf(stdout, "int_print:\n\t .asciz \"%%d\\n\"\n");
+ fprintf(stdout, "float_print:\n\t .asciz \"%%f\\n\"\n.text\n");
+
+
return IO;
}