-
Notifications
You must be signed in to change notification settings - Fork 0
/
comm-lpt.h
executable file
·72 lines (62 loc) · 1.59 KB
/
comm-lpt.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
/*
Commune.H for 64NET/2 (C)Copyright Paul Gardner-Stephen 1995, 2004
All rights reserved.
Commune.H - Constants and structures for communicating to the C64/C65/C128
*/
/* command enumeration */
//#define OPEN 'O' //
//#define CLOSE 'C' //
//#define SETTALKER 'D' //
//#define TALK 'R' //
//#define SETLISTENER 'A' //
//#define LISTEN 'W' //
//#define BOOT 'B'
//#define LOAD 'L'
//#define SAVE 'S'
//#define DEVCHECK '?'
/*ABCDEFGHIJKLMNOPQRSTUVWXYZ*/
/*xxxx xxxxxxx xxxxxxx x */
/* new, sane command enumeration, only few make sense, though */
#define BOOT 'B'
#define LOAD 'L'
#define SAVE 'S'
#define DEVCHECK '?'
#define LISTEN 'W'
#define SECOND 'A'
#define CIOUT 'G'
#define TALK 'R'
#define TKSA 'D'
#define ACPTR 'H'
#define UNLISTEN 'I'
#define UNTALK 'J'
#define OPENDISABLE 'K'
/* `File System Accelerator' commands */
#define FSACCEL 'F'
/* Kernal wedge */
#define OPEN 'O'
#define CLOSE 'C'
#define CHKIN 'P'
#define CHKOUT 'Q'
/* services */
#define TIME 'T'
#define TIMESTRING 'U'
/* port addresses */
extern int portout,portin;
extern int max_tries;
extern uchar port[1024];
/* function prototypes */
int commune(void);
int read_config (char *file);
int read_device (FILE * cf);
int c64peek (long location);
int c64poke (long location,int val);
int c64print(uchar *text);
int c64jsr(int addr,int a,int x, int y);
int set_drive_status (uchar *string, int len);
int which_unit (int);
int parallel_iec_commune(int a);
int piec_busy_status();
int piec_readport();
void piec_acknowledge();
extern int listenlf, talklf, lastlf, devnum;
extern int client_type;