/
feature.c
82 lines (74 loc) · 1.33 KB
/
feature.c
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
75
76
77
78
79
80
81
82
#include <features.h>
#include <stdio.h>
#include <graphics.h>
#include <input.h>
#include <sound.h>
#include <games.h>
#include <time.h>
#include <stdlib.h>
#include <psg/arkos.h>
#include <psg/wyz.h>
#include <psg/vt2.h>
int main()
{
char buf[10];
int c;
printf("x\n");
#ifdef __HAVE_FGETC_CONS
c = fgetc_cons();
#ifdef __HAVE_GETK
c = getk();
#endif
#endif
#ifdef __HAVE_INKEY
c = in_LookupKey('2');
c = in_KeyPressed(2);
c = in_Inkey();
#endif
#ifdef __HAVE_GFX
plot(0,0);
unplot(0,0);
#ifdef __HAVE_GFX_XORPLOT
xorplot(0,0);
#endif
#ifdef __HAVE_GFX_POINTXY
point(0,0);
#endif
#endif
#ifdef __HAVE_ONEBITSOUND
bit_click();
#endif
#ifdef __HAVE_TIME
c = time(NULL);
#endif
#ifdef __HAVE_FILEIO
fopen("asfsf","r");
c = read(0, buf, 0);
fclose(NULL);
#endif
#ifdef __HAVE_JOYSTICK
c = joystick(1);
{
char *d = joystick_type[0];
}
#endif
#ifdef __HAVE_PSG_AY_ARKOS
ply_akg_play();
#endif
#ifdef __HAVE_PSG_AY_WYZ
ay_wyz_play();
#endif
#ifdef __HAVE_PSG_AY_VT2
ay_vt2_play();
#endif
// Verify that the heap is setup
malloc(10);
// Test that fsync is available everywhere
fflush(stdin);
// Verify that atexit heap is setup ok
exit(0);
}
#if defined(__Z88__) && defined(__Z88_APPLICATION)
#include <arch/z88/dor.h>
#include <arch/z88/application.h>
#endif