Fixed execution. Added ability to split instrctions and registers.

This commit is contained in:
Michael Kuc
2019-11-26 09:48:20 +00:00
parent 14c630e311
commit fad164af94
2 changed files with 82 additions and 25 deletions

View File

@@ -11,6 +11,7 @@ std::pair<Register, Register> toPair<false>(Register unsplit) {
x++;
}
/* Skip the first 1 bit. */
unsplit >>= 1;
return std::make_pair(x, unsplit);
@@ -26,6 +27,7 @@ std::pair<Register, Register> toPair<true>(Register unsplit) {
x++;
}
/* Skip the first 0 bit. */
unsplit >>= 1;
return std::make_pair(x, unsplit);