--- hatari/src/includes/main.h 2019/04/01 07:11:28 1.1.1.8 +++ hatari/src/includes/main.h 2019/04/01 07:12:13 1.1.1.10 @@ -10,24 +10,8 @@ typedef int BOOL; -#define PROG_NAME "Hatari v0.50" /* Name, version for window title */ -#define PROG_VERSION "v0.50" -#define VERSION_STRING "0.50 " /* Always 6 bytes (inc' NULL) */ -#define VERSION_STRING_SIZE 6 /* Size of above (inc' NULL) */ - -//#define TOTALLY_FINAL_VERSION /* Web release version... */ - -#define FINAL_VERSION /* Full-speed non-debug version for release */ -//#define DEBUG_TO_FILE /* Use debug.txt files */ - -#ifndef FINAL_VERSION - #define USE_DEBUGGER /* Debugger version(non-release) */ - #define DEBUG_TO_FILE /* Use debug.txt files */ -#endif - -#ifdef TOTALLY_FINAL_VERSION - #undef DEBUG_TO_FILE /* Don't use debug files for final release */ -#endif +#define PROG_NAME "Hatari v0.70" /* Name, version for window title */ +#define PROG_VERSION "v0.70" #include @@ -39,8 +23,6 @@ typedef int BOOL; #include -#define MAX_STRING_LENGTH 512 - #ifndef FALSE #define FALSE 0 #define TRUE (!0) @@ -75,26 +57,26 @@ enum { }; /* 68000 Condition code's */ -#define SR_AUX 0x0010 -#define SR_NEG 0x0008 -#define SR_ZERO 0x0004 -#define SR_OVERFLOW 0x0002 -#define SR_CARRY 0x0001 - -#define SR_CLEAR_AUX 0xffef -#define SR_CLEAR_NEG 0xfff7 -#define SR_CLEAR_ZERO 0xfffb -#define SR_CLEAR_OVERFLOW 0xfffd -#define SR_CLEAR_CARRY 0xfffe - -#define SR_CCODE_MASK (SR_AUX|SR_NEG|SR_ZERO|SR_OVERFLOW|SR_CARRY) -#define SR_MASK 0xFFE0 - -#define SR_TRACEMODE 0x8000 -#define SR_SUPERMODE 0x2000 -#define SR_IPL 0x0700 +#define SR_AUX 0x0010 +#define SR_NEG 0x0008 +#define SR_ZERO 0x0004 +#define SR_OVERFLOW 0x0002 +#define SR_CARRY 0x0001 + +#define SR_CLEAR_AUX 0xffef +#define SR_CLEAR_NEG 0xfff7 +#define SR_CLEAR_ZERO 0xfffb +#define SR_CLEAR_OVERFLOW 0xfffd +#define SR_CLEAR_CARRY 0xfffe + +#define SR_CCODE_MASK (SR_AUX|SR_NEG|SR_ZERO|SR_OVERFLOW|SR_CARRY) +#define SR_MASK 0xFFE0 + +#define SR_TRACEMODE 0x8000 +#define SR_SUPERMODE 0x2000 +#define SR_IPL 0x0700 -#define SR_CLEAR_IPL 0xf8ff +#define SR_CLEAR_IPL 0xf8ff #define SR_CLEAR_TRACEMODE 0x7fff #define SR_CLEAR_SUPERMODE 0xdfff @@ -170,11 +152,9 @@ enum { #define CYCLES_PER_SEC (CYCLES_PER_FRAME*50) /* Cycles per second */ #define CYCLES_ENDLINE (64+320+88+40) /* DE(Display Enable) */ #define CYCLES_HBL (CYCLES_PER_LINE+96) /* Cycles for first HBL - very inaccurate on ST */ -#define CYCLES_DEBUGGER 3000 /* Check debugger every 'x' cycles */ /* Illegal Opcode used to help emulation. eg. free entries are 8 to 15 inc' */ #define GEMDOS_OPCODE 8 /* Free op-code to intercept GemDOS trap */ -#define RUNOLDGEMDOS_OPCODE 9 /* Free op-code to set PC to old GemDOS vector(if doesn't need to intercept) */ #define SYSINIT_OPCODE 10 /* Free op-code to initialize system (connected drives etc.) */ #define VDI_OPCODE 12 /* Free op-code to call VDI handlers AFTER Trap#2 */ @@ -190,10 +170,9 @@ extern char szWorkingDir[FILENAME_MAX]; extern void Main_MemorySnapShot_Capture(BOOL bSave); -extern void Main_SysError(char *Error,char *Title); -extern int Main_Message(char *lpText, char *lpCaption /*, unsigned int uType*/); extern void Main_PauseEmulation(void); extern void Main_UnPauseEmulation(void); -extern void Main_EventHandler(); +extern void Main_WarpMouse(int x, int y); +extern void Main_EventHandler(void); #endif /* ifndef HATARI_MAIN_H */