use of suite.assembler.Amd64 in project suite by stupidsing.
the class RegisterSet method get_.
private OpReg get_(int size) {
OpReg r = get_();
int reg = r.reg;
if (// AL, BL, CL or DL
size == 1 && reg < 4)
return amd64.reg8[reg];
else if (size == 2)
return amd64.reg16[reg];
else if (size == 4)
return r;
else if (size == 8)
return amd64.reg64[reg];
else
return Fail.t("cannot allocate register with size " + size);
}
Aggregations