sasano.h
1.53 KB
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
/* common routine define */
#define TRGJSRST 0x8000
#define TRGL 0x2000
#define TRGR 0x1000
#define TRGE 0x0800
#define TRGD 0x0400
#define TRGC 0x0200
#define TRGF 0x0100
#define TRGA 0x80
#define TRGB 0x40
#define TRGG 0x20
#define TRGSTART 0x10
#define TRGUP 0x08
#define TRGDOWN 0x04
#define TRGLEFT 0x02
#define TRGRIGHT 0x01
#define HEX2BIN_U16SPACE4BIT 0
#define HEX2BIN_U8 1
#define KEYREPMAX 25
/* Applications define */
#define MODERD 0
#define MODEWRT 1
#define MODEOTR 2
#define MODEOTW 3
#define dspx 0
#define dspy 0
#define DUMPXMAX 35
#define INPCHANNEL 1
#define OUTCHANNEL 0
#define ZARUUP 0x01
#define ZARUDOWN 0x02
#define ZARULEFT 0x04
#define ZARURIGHT 0x08
#define ZARUA 0x10
#define ZARUB 0x20
#define ZARUC 0x40
#define ZARUD 0x80
#define ZARU2UP 0x0008
#define ZARU2DOWN 0x0004
#define ZARU2LEFT 0x0002
#define ZARU2RIGHT 0x0001
#define ZARU2A 0x0080
#define ZARU2B 0x0040
#define ZARU2C 0x0200
#define ZARU2D 0x0400
#define ZARUCNTCHK1 ZARUUP+ZARULEFT+ZARUA+ZARUC
#define ZARUCNTANS1 ZARU2UP+ZARU2LEFT+ZARU2A+ZARU2C
#define ZARUCNTCHK2 ZARUDOWN+ZARURIGHT+ZARUB+ZARUD
#define ZARUCNTANS2 ZARU2DOWN+ZARU2RIGHT+ZARU2B+ZARU2D
#define ZARUCNTANS0 ZARUUP /* dymmy for trap */
#define P0800 (0x0800/32)
#define P1000 (0x1000/32)
#define P1800 (0x1800/32)
#define P2000 (0x2000/32)
#define P2800 (0x2800/32)
#define P3000 (0x3000/32)
#define AD16BUSTEST 0x12345678
/* prototypes */
extern void hex2bin(int,u64,char*);