summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Opalach <andrew@akon.city> 2019-09-23 22:44:30 -0400
committerAndrew Opalach <andrew@akon.city> 2019-09-23 22:44:30 -0400
commit2a9e97d7429f93a224fc366f78eed75308f3fc38 (patch)
tree58db4ccf6803321bb7ad62f7d57320affaa0cb42
parent4c4110d6529a502efba928ffb03af64816053eb9 (diff)
downloadchip8-2a9e97d7429f93a224fc366f78eed75308f3fc38.tar.gz
chip8-2a9e97d7429f93a224fc366f78eed75308f3fc38.tar.bz2
chip8-2a9e97d7429f93a224fc366f78eed75308f3fc38.zip
fix erorr in previous commit
-rwxr-xr-xMakefile2
-rw-r--r--chip8.c3
2 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index a7976fe..b504d98 100755
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/chip8.c b/chip8.c
index ad1b6bf..25e94a7 100644
--- a/chip8.c
+++ b/chip8.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;
-
}
}