I need an array to store registers ($t0, $t1, ...) and if they're being used or not.
So far I got this, where the first field is the register name and the second field must be 0 or 1 if the register is being used ot not.
char* registers[2][10] = {
{"$t0", "0"},
{"$t1", "0"},
{"$t2", "0"},
{"$t3", "0"},
{"$t4", "0"},
{"$t5", "0"},
{"$t6", "0"},
{"$t7", "0"},
{"$t8", "0"},
{"$t9", "0"}
};
But I'm so lost right now because I don't know how to access to a register and check if it's being used or not, or how to set a register as used, etc..