lcd-m6sp.c: remove \r
[kugel-rb.git] / apps / plugins / zxbox / spperif.h
blobf2ccb57be4cf20097a74a881d700b0d592994df0
1 /*
2 * Copyright (C) 1996-1998 Szeredi Miklos
3 * Email: mszeredi@inf.bme.hu
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.
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.
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.
21 #ifndef SPPERIF_H
22 #define SPPERIF_H
24 #ifndef COMPARISON
25 #define SPNM(x) sp_ ## x
26 #else
27 #define SPNM(x) spx_ ## x
28 #endif
30 #include "z80_type.h"
32 #define ST 140000
33 #define CHKTICK 224
35 /* #define TMNUM (ST / CHKTICK) */
37 #if 0
38 # define TMNUM 625
39 # define EVENHF 313
40 # define ODDHF 312
41 #else
42 # define TMNUM 624
43 # define EVENHF 312
44 # define ODDHF 312
45 #endif
48 #define LOAD_DI 0x0559
49 #define SA_LD_RET 0x053F
51 extern int SPNM(quick_load);
52 extern int SPNM(load_trapped);
54 #define SCRMARK_SIZE 2048
55 extern qbyte SPNM(scr_mark)[];
56 extern byte SPNM(fe_inport_high)[];
57 extern int SPNM(playing_tape);
59 extern int SPNM(scline);
61 extern unsigned char SPNM(colors)[];
63 extern int SPNM(flash_state);
65 extern qbyte *SPNM(scr_f0_table);
66 extern qbyte *SPNM(scr_f1_table);
68 extern int SPNM(scri)[];
69 extern int SPNM(coli)[];
71 #define PORT_TIME_NUM 1024
72 extern byte SPNM(tape_impinfo)[];
73 extern byte SPNM(fe_inport_default);
74 extern byte SPNM(fe_outport_time)[];
75 extern signed char SPNM(tape_sound)[];
76 extern byte SPNM(sound_buf)[];
79 extern char *SPNM(image);
80 extern int SPNM(updating);
81 extern qbyte SPNM(imag_mark)[];
82 extern qbyte SPNM(imag_horiz);
83 extern qbyte SPNM(imag_vert);
84 extern int SPNM(border_update);
85 extern int SPNM(lastborder);
87 extern void SPNM(init_screen_mark)(void);
88 extern void SPNM(init)(void);
89 extern int SPNM(halfframe)(int firsttick, int numlines);
91 #endif /* SPPERIF_H */