aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2012-04-27 04:44:51 +0000
committerDimitri Sokolyuk <demon@dim13.org>2012-04-27 04:44:51 +0000
commitfa4c64af783151818087a437a2f195270369043f (patch)
tree67a35eb4280791387ea21233209c35af91c76c04
parent29318b1e33bd838f43c5303dda3b7d75f3e429c8 (diff)
fix division
-rw-r--r--emu.c4
-rw-r--r--tui.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/emu.c b/emu.c
index 00012a1..1dcbeb3 100644
--- a/emu.c
+++ b/emu.c
@@ -196,7 +196,7 @@ div(unsigned short *b, unsigned short *a)
reg[EX] = 0;
*b = 0;
} else {
- tmp = (unsigned int)*b << 16 / *a;
+ tmp = ((unsigned int)*b << 16) / *a;
reg[EX] = tmp;
*b = tmp >> 16;
}
@@ -212,7 +212,7 @@ dvi(unsigned short *b, unsigned short *a)
reg[EX] = 0;
*b = 0;
} else {
- tmp = (signed int)*b << 16 / (signed short)*a;
+ tmp = ((signed int)*b << 16) / (signed short)*a;
reg[EX] = tmp;
*b = tmp >> 16;
}
diff --git a/tui.c b/tui.c
index 3185d1b..6e487d7 100644
--- a/tui.c
+++ b/tui.c
@@ -132,7 +132,7 @@ tuiemu(unsigned short *m, unsigned short *r)
initscr();
noecho();
-// nodelay(stdscr, TRUE);
+ nodelay(stdscr, TRUE);
start_color();
init_colors();