diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2020-05-18 13:14:08 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2020-05-18 13:14:08 -0400 |
commit | 5dd788d5a1acc7f23835882420d50e9f020728ac (patch) | |
tree | 2b9226863fc44e5bce88eb85be1f0ee97ede1922 /sux.c | |
parent | 545bb8591e8003912b6c6b494acefd74e6b3abfd (diff) |
Did alot of stuff while I was up at the family trailer.
- Moved the large enums, and large tables into separate
header files.
- Added enums for implementing the base extension
- Fixed a bug in the assembler.
- Worked more on SuBAsm.
Diffstat (limited to 'sux.c')
-rw-r--r-- | sux.c | 20 |
1 files changed, 17 insertions, 3 deletions
@@ -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; } |