/* * Interface for the vimlac emulator. */ #ifndef VIMLAC_H #define VIMLAC_H #include #include #include #include #include #include #include "error.h" typedef unsigned int WORD; typedef unsigned char BYTE; #define CPU_HERZ 1800000 #define MEMMASK 0xffff #define HIGHBITMASK 0x8000 #define WORD_MASK 0xffff #define OVERFLOWMASK 0x10000 #define LOWBITMASK 0x1 // macro to convert a boolean value to a string #define BOOL2STR(a) ((a) ? "true" : "false") // macro to more reliably compare strings #define STREQ(a, b) ((a) && (strcmp((a), (b)) == 0)) #endif