mips without optimize

This commit is contained in:
colden
2025-12-12 20:14:00 +08:00
parent 84827838e2
commit c94bebf37b
130 changed files with 5462 additions and 4182 deletions

View File

@@ -0,0 +1,19 @@
package backend.mips.instr.data;
import backend.mips.instr.MipsInstr;
import backend.mips.instr.type.MipsType;
public class MipsAsciiz extends MipsInstr {
private String name;
private String str;
public MipsAsciiz(String name, String str) {
super(MipsType.DATA);
this.name = name;
this.str = str;
}
public String toString() {
return name + ": .asciiz \"" + str.replaceAll("\n", "\\n") + "\"\n";
}
}