556
|
1
|
|
2 extern int printf(const char *,...);
|
|
3
|
|
4 #define BOOL char
|
|
5 #define TRUE 1 // TRUE value
|
|
6 #define FALSE 5 // FALSE value
|
|
7
|
|
8 typedef struct player
|
|
9 {
|
|
10 int x;
|
|
11 int y;
|
|
12 int ch;
|
|
13 int point;
|
|
14 BOOL bf;
|
|
15 int muteki;
|
|
16 int zanki;
|
|
17 int ccount;
|
|
18 }player;
|
|
19
|
|
20 typedef struct laser
|
|
21 {
|
|
22 float x;
|
|
23 float y;
|
|
24 float sx;
|
|
25 float sy;
|
|
26 int r;
|
|
27 int enemyno;
|
|
28 }laser;
|
|
29
|
|
30 typedef struct stge
|
|
31 {
|
|
32 int stg;
|
|
33 }stge;
|
|
34
|
|
35
|
|
36 player jiki={60,200,3,0,FALSE,120,3,3};
|
|
37 /*
|
|
38 .word 60
|
|
39 .word 200
|
|
40 .word 3
|
|
41 .word 0
|
|
42 .byte 0
|
|
43 .space 3
|
|
44 .word 120
|
|
45 .word 3
|
|
46 .word 3
|
|
47 .globl lg
|
|
48 .align 2
|
|
49 .type lg,@object
|
|
50 .size lg,4
|
|
51
|
|
52 */
|
|
53
|
|
54 stge lg={4096};
|
|
55
|
|
56 /*
|
|
57 .word 4096
|
|
58 .globl pg
|
|
59 .align 2
|
|
60 .type pg,@object
|
|
61 .size pg,4
|
|
62 */
|
|
63
|
|
64 laser laser_lv3[64]={{0,0,0,0,64,0}};
|
|
65 /*
|
|
66 .word 0x00000000 # 0 (float)
|
|
67 .word 0x00000000 # 0 (float)
|
|
68 .word 0x00000000 # 0 (float)
|
|
69 .word 0x00000000 # 0 (float)
|
|
70 .word 64
|
|
71 .word 0
|
|
72 .space 1512
|
|
73 */
|
|
74 int se_key[6]={-1,-1,-1,-1,-1,-1};
|
|
75 /*
|
|
76 .word -1
|
|
77 .word -1
|
|
78 .word -1
|
|
79 .word -1
|
|
80 .word -1
|
|
81 .word -1
|
|
82 .text
|
|
83 */
|
|
84
|
|
85
|
|
86 int
|
|
87 main()
|
|
88 {
|
|
89
|
558
|
90 printf("#0089:%d\n", jiki. x);
|
|
91 printf("#0090:%d\n", jiki. y);
|
|
92 printf("#0091:%d\n", jiki. ch);
|
|
93 printf("#0092:%d\n", jiki. point);
|
|
94 printf("#0093:%d\n", jiki. bf);
|
|
95 printf("#0094:%d\n", jiki. muteki);
|
|
96 printf("#0095:%d\n", jiki. zanki);
|
|
97 printf("#0096:%d\n", jiki. ccount);
|
556
|
98
|
558
|
99 printf("#0098:%g\n", laser_lv3[0].x);
|
|
100 printf("#0099:%g\n", laser_lv3[0].y);
|
|
101 printf("#0100:%g\n", laser_lv3[0].sx);
|
|
102 printf("#0101:%g\n", laser_lv3[0].sy);
|
|
103 printf("#0102:%d\n", laser_lv3[0].r);
|
|
104 printf("#0103:%d\n", laser_lv3[0].enemyno);
|
556
|
105
|
558
|
106 printf("#0105:%d\n", lg.stg);
|
556
|
107
|
|
108
|
|
109
|
|
110 }
|