ps5: task 1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user