ps5: task 1

This commit is contained in:
2026-03-28 21:01:28 +01:00
parent 5201186939
commit 8363e4bab8
+3
View File
@@ -55,6 +55,9 @@ static void generate_stringtable(void)
// TODO (Task 1): Print all strings in the program here, with labels you can refer to later
// You have access to the global variables string_list and string_list_len from symbols.c
for (int i = 0; i < string_list_len; i++) {
DIRECTIVE("string%d:\t.asciz \"%s\"", i, string_list[i]);
}
}
// Prints .zero entries in the .bss section to allocate room for global variables and arrays