forked from igkov/bcomp11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdrive.c
69 lines (66 loc) · 1.32 KB
/
drive.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
#include "bcomp.h"
#include "drive.h"
#include "graph.h"
#define AT_DRIVE_ICO 0
/*
show_drive()
Âûâîä íà ýêðàí àêòèâíîé ïåðåäà÷è ÀÊÏÏ:
*/
void show_drive(int x, int y) {
if (bcomp.at_drive == 0x00) {
#if (AT_DRIVE_ICO == 1)
graph_pic(&ico32_at_n,x-12,y);
#else
graph_puts32c(x, y, "N");
#endif
} else
if (bcomp.at_drive == 0x01) {
#if (AT_DRIVE_ICO == 1)
graph_pic(&ico32_at_d1,x-12,y);
#else
graph_puts32c(x, y, "D/1");
#endif
} else
if (bcomp.at_drive == 0x02) {
#if (AT_DRIVE_ICO == 1)
graph_pic(&ico32_at_d2,x-12,y);
#else
graph_puts32c(x, y, "D/2");
#endif
} else
if (bcomp.at_drive == 0x03) {
#if (AT_DRIVE_ICO == 1)
graph_pic(&ico32_at_d3,x-12,y);
#else
graph_puts32c(x, y, "D/3");
#endif
} else
if (bcomp.at_drive == 0x04) {
#if (AT_DRIVE_ICO == 1)
graph_pic(&ico32_at_d4,x-12,y);
#else
graph_puts32c(x, y, "D/4");
#endif
} else
if (bcomp.at_drive == 0x05) {
#if (AT_DRIVE_ICO == 1)
graph_pic(&ico32_at_d5,x-12,y);
#else
graph_puts32c(x, y, "D/5");
#endif
} else
if (bcomp.at_drive == 0x0d) {
#if (AT_DRIVE_ICO == 1)
graph_pic(&ico32_at_p,x-12,y);
#else
graph_puts32c(x, y, "P");
#endif
} else
if (bcomp.at_drive == 0x0b) {
#if (AT_DRIVE_ICO == 1)
graph_pic(&ico32_at_r,x-12,y);
#else
graph_puts32c(x, y, "R");
#endif
}
}