summaryrefslogtreecommitdiff
path: root/apps/plugins/zxbox/tapef_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/zxbox/tapef_p.h')
-rw-r--r--apps/plugins/zxbox/tapef_p.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/apps/plugins/zxbox/tapef_p.h b/apps/plugins/zxbox/tapef_p.h
new file mode 100644
index 0000000000..c677e09203
--- /dev/null
+++ b/apps/plugins/zxbox/tapef_p.h
@@ -0,0 +1,61 @@
1/*
2 * Copyright (C) 1996-1998 Szeredi Miklos
3 * Email: mszeredi@inf.bme.hu
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version. See the file COPYING.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 *
19 */
20
21#ifndef TAPEF_P_H
22#define TAPEF_P_H
23
24typedef unsigned char byte;
25typedef unsigned short dbyte;
26typedef unsigned long qbyte;
27
28#define BYTE(arr, i) (arr[i])
29#define DBYTE(arr, i) (arr[i] + (arr[(i)+1] << 8))
30
31struct tapeinfo {
32 int type;
33 int tzxminver, tzxmajver;
34};
35
36struct seginfo {
37 int type;
38 int segtype;
39
40 dbyte pulse;
41 dbyte num;
42 dbyte sync1p;
43 dbyte sync2p;
44 dbyte zerop;
45 dbyte onep;
46
47 dbyte pause;
48
49 byte bused;
50
51 long len;
52 long ptr;
53};
54
55extern struct tapeinfo tf_tpi;
56extern struct seginfo tf_cseg;
57extern long tf_segoffs;
58
59extern byte *tf_get_block(int i);
60
61#endif /* TAPEF_P_H */