mpw/cpu/defs.h

82 lines
1.5 KiB
C
Raw Normal View History

2013-02-06 04:11:41 +00:00
#ifndef DEFS_H
#define DEFS_H
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
2013-02-06 04:11:41 +00:00
2013-02-07 00:11:18 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2013-02-06 04:11:41 +00:00
/* Maximum values for memory, don't change */
#define CHIPMEM 0x200000
#define FASTMEM 0x800000
#define BOGOMEM 0x1c0000
#define KICKMEM 0x080000
/* Fellow types to ensure correct sizes */
typedef uint8_t UBY;
typedef uint16_t UWO;
typedef uint32_t ULO;
typedef uint64_t ULL;
typedef int8_t BYT;
typedef int16_t WOR;
typedef int32_t LON;
typedef int64_t LLO;
typedef int BOOLE;
#define FALSE 0
#define TRUE 1
typedef char STR;
/*
#ifndef X64
#define PTR_TO_INT(i) ((ULO)i)
#endif
#ifdef X64
#define PTR_TO_INT(i) ((ULL)i)
#endif
*/
/* Filename length used throughout the code */
#define CFG_FILENAME_LENGTH 256
/*------------------------------------*/
/* The decode routines have this type */
/*------------------------------------*/
typedef void (*decoderoutinetype)(ULO,ULO);
extern UBY configromname[];
typedef union {
ULO *lptr;
UWO *wptr;
UBY *bptr;
ULO lval;
UWO wval[2];
UBY bval[4];
} ptunion;
typedef void (*planar2chunkyroutine)(void);
typedef void (*playbuffer_routine)(void);
typedef void (*sound_before_emu_routine)(void);
typedef void (*sound_after_emu_routine)(void);
typedef void (*buseventfunc)(void);
#define FELLOWVERSION "WinFellow alpha v0.5.0 build 0 (CVS)"
#define FELLOWLONGVERSION "WinFellow Amiga Emulator alpha v0.5.0 - CVS"
#define FELLOWNUMERICVERSION "0.5.0.0"
2013-02-07 00:11:18 +00:00
#ifdef __cplusplus
}
#endif
2013-02-06 04:11:41 +00:00
#endif