diff options
| author | 2019-09-23 22:44:30 -0400 | |
|---|---|---|
| committer | 2019-09-23 22:44:30 -0400 | |
| commit | 2a9e97d7429f93a224fc366f78eed75308f3fc38 (patch) | |
| tree | 58db4ccf6803321bb7ad62f7d57320affaa0cb42 | |
| parent | 4c4110d6529a502efba928ffb03af64816053eb9 (diff) | |
| download | chip8-2a9e97d7429f93a224fc366f78eed75308f3fc38.tar.gz chip8-2a9e97d7429f93a224fc366f78eed75308f3fc38.tar.bz2 chip8-2a9e97d7429f93a224fc366f78eed75308f3fc38.zip | |
fix erorr in previous commit
| -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; - } } |