white label
This commit is contained in:
parent
e425464aab
commit
a850aeed63
3 changed files with 13 additions and 13 deletions
7
boot.c
7
boot.c
|
@ -917,7 +917,7 @@ void _asm_ri(char* op, int rd, int rs1, int imm) {
|
|||
|
||||
void asm_branch(char* op, int rs1, int label) {
|
||||
char* rs1_name = trivialize(rs1, REG_T0);
|
||||
printf(" %s %s, L%d\n", op, rs1_name, label);
|
||||
printf(" %s %s, .L%d\n", op, rs1_name, label);
|
||||
}
|
||||
|
||||
void _asm_i(char* op, int rd, char* prefix1, char* prefix2, int imm) {
|
||||
|
@ -1032,7 +1032,7 @@ void asm_bnez(int rs1, int label) {
|
|||
}
|
||||
|
||||
void asm_j(int label) {
|
||||
printf(" j L%d\n", label);
|
||||
printf(" j .L%d\n", label);
|
||||
}
|
||||
|
||||
int next_label_id = 0;
|
||||
|
@ -1041,7 +1041,7 @@ int next_label() {
|
|||
}
|
||||
|
||||
int asm_label(int label) {
|
||||
printf("L%d:\n", label);
|
||||
printf(".L%d:\n", label);
|
||||
return label;
|
||||
}
|
||||
|
||||
|
@ -1993,7 +1993,6 @@ void parse_top_level() {
|
|||
}
|
||||
|
||||
void dump_string_table() {
|
||||
printf("# string table: \n");
|
||||
printf(".data\n");
|
||||
for (int i = 0; i < string_lut_size; ++i) {
|
||||
printf(".LC%d: .string \"", i);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue