|
|
1.1.1.3 root 1: /*
1.1 root 2: * UAE - The Un*x Amiga Emulator
1.1.1.3 root 3: *
1.1 root 4: * custom chip support
5: *
6: * (c) 1995 Bernd Schmidt
7: */
8:
1.1.1.7 root 9: /* These are the masks that are ORed together in the chipset_mask option.
10: * If CSMASK_AGA is set, the ECS bits are guaranteed to be set as well. */
11: #define CSMASK_ECS_AGNUS 1
12: #define CSMASK_ECS_DENISE 2
13: #define CSMASK_AGA 4
14:
1.1.1.5 root 15: extern void custom_init (void);
16: extern void customreset (void);
17: extern int intlev (void);
18: extern void dumpcustom (void);
1.1 root 19:
1.1.1.5 root 20: extern void do_disk (void);
1.1 root 21:
1.1.1.3 root 22: extern void notice_new_xcolors (void);
23: extern void notice_screen_contents_lost (void);
1.1.1.5 root 24: extern void init_row_map (void);
1.1.1.3 root 25:
26: extern int picasso_requested_on;
27: extern int picasso_on;
28:
29: /* Set to 1 to leave out the current frame in average frame time calculation.
30: * Useful if the debugger was active. */
1.1 root 31: extern int bogusframe;
32:
1.1.1.3 root 33: extern uae_u16 dmacon;
34: extern uae_u16 intena,intreq;
1.1.1.2 root 35:
36: extern int current_hpos (void);
1.1.1.3 root 37: extern int vpos;
1.1.1.2 root 38:
1.1.1.8 ! root 39: STATIC_INLINE int dmaen (unsigned int dmamask)
1.1 root 40: {
41: return (dmamask & dmacon) && (dmacon & 0x200);
42: }
43:
44: #define SPCFLAG_STOP 2
45: #define SPCFLAG_DISK 4
46: #define SPCFLAG_INT 8
47: #define SPCFLAG_BRK 16
48: #define SPCFLAG_EXTRA_CYCLES 32
49: #define SPCFLAG_TRACE 64
50: #define SPCFLAG_DOTRACE 128
51: #define SPCFLAG_DOINT 256
52: #define SPCFLAG_BLTNASTY 512
53: #define SPCFLAG_EXEC 1024
1.1.1.2 root 54: #define SPCFLAG_MODE_CHANGE 8192
1.1 root 55:
56: extern int dskdmaen;
1.1.1.3 root 57: extern uae_u16 adkcon;
1.1 root 58:
1.1.1.3 root 59: extern unsigned int joy0dir, joy1dir;
60: extern int joy0button, joy1button;
61:
1.1.1.4 root 62: extern void INTREQ (uae_u16);
63: extern uae_u16 INTREQR (void);
1.1 root 64:
1.1.1.7 root 65: /* maximums for statically allocated tables */
66:
67: #define MAXHPOS 227
68: #define MAXVPOS 312
69:
70: /* PAL/NTSC values */
71:
1.1.1.2 root 72: /* The HRM says: The vertical blanking area (PAL) ranges from line 0 to line 29,
73: * and no data can be displayed there. Nevertheless, we lose some overscan data
1.1.1.7 root 74: * if minfirstline is set to 29. */
75:
76: #define MAXHPOS_PAL 227
77: #define MAXHPOS_NTSC 227
78: #define MAXVPOS_PAL 312
79: #define MAXVPOS_NTSC 262
80: #define MINFIRSTLINE_PAL 21
81: #define MINFIRSTLINE_NTSC 18
82: #define VBLANK_ENDLINE_PAL 29
83: #define VBLANK_ENDLINE_NTSC 24
84: #define VBLANK_HZ_PAL 50
85: #define VBLANK_HZ_NTSC 60
86:
87: extern int maxhpos, maxvpos, minfirstline, vblank_endline, numscrlines, vblank_hz;
88: extern unsigned long syncbase;
89: #define NUMSCRLINES (maxvpos+1-minfirstline+1)
1.1 root 90:
91: #define DMA_AUD0 0x0001
92: #define DMA_AUD1 0x0002
93: #define DMA_AUD2 0x0004
94: #define DMA_AUD3 0x0008
95: #define DMA_DISK 0x0010
96: #define DMA_SPRITE 0x0020
97: #define DMA_BLITTER 0x0040
98: #define DMA_COPPER 0x0080
99: #define DMA_BITPLANE 0x0100
100: #define DMA_BLITPRI 0x0400
1.1.1.2 root 101:
102: extern unsigned long frametime, timeframes;
103:
1.1.1.3 root 104: /* 50 words give you 800 horizontal pixels. An A500 can't do that, so it ought
1.1.1.6 root 105: * to be enough. Don't forget to update the definition in genp2c.c as well. */
1.1.1.3 root 106: #define MAX_WORDS_PER_LINE 50
107:
108: extern uae_u32 hirestab_h[256][2];
109: extern uae_u32 lorestab_h[256][4];
110:
111: extern uae_u32 hirestab_l[256][1];
112: extern uae_u32 lorestab_l[256][2];
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.