-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathrk11.h
51 lines (41 loc) · 795 Bytes
/
rk11.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
typedef struct RK05 RK05;
struct RK05
{
FILE *fp;
int protect;
word rkds;
int func;
int cyl_timer;
int sc; // sector counter
int cyl; // cylinder we're on
int newcyl; // cylinder we want to be on
int surf; // surface
int wc; // word counter
word dsb;
};
typedef struct RK11 RK11;
struct RK11
{
Bus *bus;
word rkds;
word rker;
word rkcs;
word rkwc;
word rkba;
word rkda;
word rkmr;
word rkdb;
int state;
int done;
int d; // drive selector from rkda
RK05 drives[8];
byte buf[512];
};
int dati_rk11(Bus *bus, void *dev);
int dato_rk11(Bus *bus, void *dev);
int datob_rk11(Bus *bus, void *dev);
int svc_rk11(Bus *bus, void *dev);
int bg_rk11(void *dev);
void reset_rk11(void *dev);
void attach_rk05(RK11 *rk, int n, char *path);
void detach_rk05(RK11 *rk, int n);