-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevices.h
74 lines (59 loc) · 1.94 KB
/
devices.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
#ifndef DEVICES_H_
#define DEVICES_H_
#include <stdio.h> /* FILENAME_MAX */
#include "atari.h" /* UWORD */
int Devices_Initialise(int *argc, char *argv[]);
int Devices_PatchOS(void);
void Devices_Frame(void);
void Devices_UpdatePatches(void);
UWORD Devices_SkipDeviceName(void);
extern int Devices_enable_h_patch;
extern int Devices_enable_p_patch;
extern int Devices_enable_r_patch;
extern char Devices_atari_h_dir[4][FILENAME_MAX];
extern int Devices_h_read_only;
extern char Devices_h_exe_path[FILENAME_MAX];
extern char Devices_h_current_dir[4][FILENAME_MAX];
int Devices_H_CountOpen(void);
void Devices_H_CloseAll(void);
extern char Devices_print_command[256];
int Devices_SetPrintCommand(const char *command);
#define Devices_ICHIDZ 0x0020
#define Devices_ICDNOZ 0x0021
#define Devices_ICCOMZ 0x0022
#define Devices_ICSTAZ 0x0023
#define Devices_ICBALZ 0x0024
#define Devices_ICBAHZ 0x0025
#define Devices_ICPTLZ 0x0026
#define Devices_ICPTHZ 0x0027
#define Devices_ICBLLZ 0x0028
#define Devices_ICBLHZ 0x0029
#define Devices_ICAX1Z 0x002a
#define Devices_ICAX2Z 0x002b
#define Devices_IOCB0 0x0340
#define Devices_ICHID 0x0000
#define Devices_ICDNO 0x0001
#define Devices_ICCOM 0x0002
#define Devices_ICSTA 0x0003
#define Devices_ICBAL 0x0004
#define Devices_ICBAH 0x0005
#define Devices_ICPTL 0x0006
#define Devices_ICPTH 0x0007
#define Devices_ICBLL 0x0008
#define Devices_ICBLH 0x0009
#define Devices_ICAX1 0x000a
#define Devices_ICAX2 0x000b
#define Devices_ICAX3 0x000c
#define Devices_ICAX4 0x000d
#define Devices_ICAX5 0x000e
#define Devices_ICAX6 0x000f
#define Devices_TABLE_OPEN 0
#define Devices_TABLE_CLOS 2
#define Devices_TABLE_READ 4
#define Devices_TABLE_WRIT 6
#define Devices_TABLE_STAT 8
#define Devices_TABLE_SPEC 10
#define Devices_TABLE_INIT 12
UWORD Devices_UpdateHATABSEntry(char device, UWORD entry_address, UWORD table_address);
void Devices_RemoveHATABSEntry(char device, UWORD entry_address, UWORD table_address);
#endif /* DEVICES_H_ */