final tests

This commit is contained in:
Yaossg 2025-05-05 16:20:27 +08:00
parent a18612f583
commit a84655600d
34 changed files with 309 additions and 32 deletions

2
boot.c
View file

@ -1870,7 +1870,7 @@ void parse_function(char* name) {
void parse_global_variable(int id, char* name, int type) {
printf(".data\n");
printf(".globl %s\n", name);
printf(".global %s\n", name);
printf(".align 5\n");
printf("%s:\n", name);
if (token_type == TOKEN_ASSIGN) {