diff options
Diffstat (limited to 'sux.h')
-rw-r--r-- | sux.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,5 +1,7 @@ #include "opcode.h" #include <pthread.h> +#include <ctype.h> +#include <string.h> #if bench #include <sys/time.h> @@ -39,6 +41,11 @@ extern pthread_cond_t main_cond; extern void disasm(struct sux *cpu, uint64_t *operands, uint8_t lines, uint8_t opcode, uint8_t prefix, uint8_t thread); #endif +#define KEYBUF_SIZE 0x40 +char key[KEYBUF_SIZE]; + +extern int get_keycode(char *str); +extern int get_key(WINDOW *scr); extern void io(uint64_t address, uint8_t rw); static inline uint64_t get_addr(struct sux *cpu, uint64_t *tmpaddr, uint8_t opcode, uint8_t prefix, uint8_t thread) { |