diff options
| -rwxr-xr-x | Makefile | 2 | ||||
| -rw-r--r-- | chip8.c | 3 |
2 files changed, 2 insertions, 3 deletions
@@ -9,7 +9,7 @@ win: BIN = chip8.exe all: executable
win: executable
-all: LDFLAGS = -lncursesw -lpthread
+all: LDFLAGS = -lncursesw -ltinfow -lpthread
win: LDFLAGS = ./win/pdcurses.a
executable: chip8.c ui.c util.c
@@ -114,7 +114,7 @@ void vm_thread(void* v) { vm.Vx[hex_char(str[1])] ^= vm.Vx[hex_char(str[2])]; break; case '4': - vm.Vx[hex_char(str[1])] += vm.Vx[hex_char(str[2])] + vm.Vx[hex_char(str[1])] += vm.Vx[hex_char(str[2])]; if (vm.Vx[hex_char(str[1])] + vm.Vx[hex_char(str[2])] > 255) { vm.Vx[15] = 1; vm.Vx[hex_char(str[1])] &= 0x255; @@ -122,7 +122,6 @@ void vm_thread(void* v) { vm.Vx[15] = 0; } break; - } } |