#include #include #include #include #include #include "tables.h" #define getclk 0 #define keypoll 0 #define OPNUM 88 #define C (1 << 0) /* Carry flag. */ #define Z (1 << 1) /* Zero flag. */ #define I (1 << 2) /* Interrupt flag. */ #define V (1 << 6) /* oVerflow flag. */ #define N (1 << 7) /* Negative flag. */ extern uint8_t *addr; /* Address Space. */ union reg { uint8_t u8[8]; uint16_t u16[4]; uint32_t u32[2]; uint64_t u64; }; struct sux { union reg ps; /* The processor status register. */ uint64_t a, b, y, x; /* Registers A, B, X, and Y. */ uint64_t pc; /* Program counter. */ uint16_t sp; /* Stack pointer. */ uint16_t stk_st; /* Starting address of each threads stack. */ uint8_t crt; /* Current running threads. */ }; extern int asmmon();