Skip to content

Commit 5ba2828

Browse files
committed
Make tests functional again
1 parent 74ddfa3 commit 5ba2828

File tree

3 files changed

+49
-186
lines changed

3 files changed

+49
-186
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
build
2+
.vscode

src/chip8.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,12 +248,6 @@ void chip8_execute(CHIP8 *chip8)
248248
chip8->SP -= 2;
249249
break;
250250

251-
/* EXIT (00FD) (S-CHIP Only):
252-
Exit the interpreter. */
253-
case 0xFD:
254-
chip8->exit = true;
255-
break;
256-
257251
/* SCRR (00FB) (S-CHIP Only):
258252
Scroll the display right by 4 pixels. */
259253
case 0xFB:
@@ -266,6 +260,12 @@ void chip8_execute(CHIP8 *chip8)
266260
chip8_scroll(chip8, -1, 0, 4);
267261
break;
268262

263+
/* EXIT (00FD) (S-CHIP Only):
264+
Exit the interpreter. */
265+
case 0xFD:
266+
chip8->exit = true;
267+
break;
268+
269269
/* LORES (00FE) (S-CHIP Only):
270270
Disable HI-RES mode. */
271271
case 0xFE:

0 commit comments

Comments
 (0)