chore: homework for stream

This commit is contained in:
Stevan Freeborn
2026-07-17 21:32:57 -05:00
parent b64ba55f46
commit 87a6954ba1
2 changed files with 66 additions and 52 deletions
+1 -1
View File
@@ -275,7 +275,7 @@ int main(int argc, char *argv[]) {
} else if (n == 7) {
chip->V[15] = (chip->V[y] > chip->V[x]) ? 1 : 0;
chip->V[x] = chip->V[y] - chip->V[x];
} else if (n == 8) {
} else if (n == 14) {
uint8_t flag = (chip->V[x] & 128) >> 7;
chip->V[15] = flag;
chip->V[x] *= 2;