summaryrefslogtreecommitdiff
path: root/sux.c
diff options
context:
space:
mode:
Diffstat (limited to 'sux.c')
-rw-r--r--sux.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/sux.c b/sux.c
index 3c84425..b8c4ca7 100644
--- a/sux.c
+++ b/sux.c
@@ -18,6 +18,10 @@ uint64_t inst[THREADS];
uint64_t inss;
#endif
+#if debug
+uint8_t subdbg;
+#endif
+
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_t main_mutex = PTHREAD_MUTEX_INITIALIZER;
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
@@ -26,6 +30,12 @@ pthread_cond_t main_cond = PTHREAD_COND_INITIALIZER;
uint8_t threads_done = 0;
uint8_t step = 0;
+uint8_t *addr;
+
+uint8_t kbd_rdy;
+
+WINDOW *scr;
+
struct suxthr {
struct sux sx;
uint8_t th;
@@ -131,6 +141,9 @@ void *run(void *args) {
case 2:
value.u8[1] = addr[address.u64+1];
}
+ #if getclk
+ ++iclk;
+ #endif
}
#if debug && !bench
#if keypoll
@@ -584,14 +597,15 @@ int main(int argc, char **argv) {
inss = 0;
#endif
int v = 0;
- #if debug
- subdbg = !strcmp(argv[1], "programs/subeditor.s");
- #endif
+
if (argc != 2) {
if (asmmon("stdin") == 2) {
return 0;
}
} else {
+ #if debug
+ subdbg = !strcmp(argv[1], "programs/subeditor.s");
+ #endif
if (asmmon(argv[1]) == 2) {
return 0;
}