-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.h
81 lines (59 loc) · 1.74 KB
/
main.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#ifndef _MAIN_H
#define _MAIN_H 1
#define USING_ALLEGRO
#define NO_USE_MENU
//#include "v_alleg.h" // esto no deberia estar aqui.
#define GS_HAYMOUSE 0x01
#define GS_GUNSTICK 0x02
#define GS_INACTIVE 0x04
typedef
struct {
char romfile[256];
char snapfile[256];
char tapefile[256];
unsigned int gunstick;
// BITMAP * raton_bmp;
char joytype;
char joy1key[5];
} tipo_emuopt ;
enum models_enum { SPECMDL_16K=1, SPECMDL_48K, SPECMDL_INVES, SPECMDL_128K, SPECMDL_PLUS2,
SPECMDL_PLUS3, SPECMDL_48KIF1, SPECMDL_48KTRANSTAPE };
enum inttypes_enum { NORMAL=1, INVES };
typedef
struct {
int port_ff; // 0xff = emulate the port, 0x00 alwais 0xFF
int ts_lebo; // left border t states
int ts_grap; // graphic zone t states
int ts_ribo; // right border t states
int ts_hore; // horizontal retrace t states
int ts_line; // to speed the calc, the sum of 4 abobe
int line_poin; // lines in retraze post interrup
int line_upbo; // lines of upper border
int line_grap; // lines of graphic zone = 192
int line_bobo; // lines of bottom border
int line_retr; // lines of the retrace
int TSTATES_PER_LINE;
int TOP_BORDER_LINES;
int SCANLINES;
int BOTTOM_BORDER_LINES;
int tstate_border_left;
int tstate_graphic_zone;
int tstate_border_right;
int hw_model;
int int_type;
int videopage;
int BANKM;
int BANK678;
} tipo_hwopt ;
int emuMain (int argc, char *argv[]);
int Z80Initialization (void);
/* Esto permite suprimir CASI TODOS los mensajes en aquellos sistemas que
no dispongan de STDOUT o esta corrompa la pantalla como en MacOS o MS-Dos
simplemente utilizar ASprintf en lugar de printf
*/
#ifdef ENABLE_LOGS
#define ASprintf printf
#else
void ASprintf (char *, ...);
#endif
#endif /* main.h */