annotate test/float.c @ 684:6e2f1e7f9fc3

*** empty log message ***
author kono
date Tue, 02 Oct 2007 21:18:12 +0900
parents a379da780856
children fcb642ef08c9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
1 #include "stdio.h"
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
2
472
834b5792bc5f *** empty log message ***
kono
parents: 471
diff changeset
3 void test8();
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
4 void print(double d);
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
5
81
f94ca1168520 float first try...
kono
parents: 79
diff changeset
6 extern double sin(double);
84
1a723130a2c7 condtional
kono
parents: 82
diff changeset
7 // extern float fsin(float);
471
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
8 double test9(double f,int i);
479
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
9 int test7();
81
f94ca1168520 float first try...
kono
parents: 79
diff changeset
10
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
11 float f = 0.3;
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
12 double d = 0.3;
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
13 float f1 = 0.3;
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
14 double d1 = 0.3;
84
1a723130a2c7 condtional
kono
parents: 82
diff changeset
15 double d2 = -0.2;
96
7d8de41390d8 *** empty log message ***
kono
parents: 94
diff changeset
16 float h = 1.0;
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
17
91
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
18 int
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
19 d2i(double d) {
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
20 return (int)d;
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
21 }
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
22
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
23 double
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
24 i2d(int u) {
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
25 return (double)u;
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
26 }
90
07e3113c3c13 *** empty log message ***
kono
parents: 87
diff changeset
27
91
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
28 unsigned u;
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
29 unsigned
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
30 d2u(double d) {
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
31 return (unsigned)d;
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
32 }
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
33
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
34 double
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
35 u2d(unsigned u) {
9b1aeb62e0b9 powerpc continue... (floating point)
kono
parents: 90
diff changeset
36 return (double)u;
90
07e3113c3c13 *** empty log message ***
kono
parents: 87
diff changeset
37 }
07e3113c3c13 *** empty log message ***
kono
parents: 87
diff changeset
38
379
c7abd48191b3 ARM continue...
kono
parents: 284
diff changeset
39 double
c7abd48191b3 ARM continue...
kono
parents: 284
diff changeset
40 f2d(float u) {
c7abd48191b3 ARM continue...
kono
parents: 284
diff changeset
41 double u1;
c7abd48191b3 ARM continue...
kono
parents: 284
diff changeset
42 u1 = f1;
c7abd48191b3 ARM continue...
kono
parents: 284
diff changeset
43 return (double)u;
c7abd48191b3 ARM continue...
kono
parents: 284
diff changeset
44 }
c7abd48191b3 ARM continue...
kono
parents: 284
diff changeset
45
c7abd48191b3 ARM continue...
kono
parents: 284
diff changeset
46 float
c7abd48191b3 ARM continue...
kono
parents: 284
diff changeset
47 d2f(double u) {
c7abd48191b3 ARM continue...
kono
parents: 284
diff changeset
48 float u1;
c7abd48191b3 ARM continue...
kono
parents: 284
diff changeset
49 u1 = d1;
c7abd48191b3 ARM continue...
kono
parents: 284
diff changeset
50 return (float)u;
c7abd48191b3 ARM continue...
kono
parents: 284
diff changeset
51 }
c7abd48191b3 ARM continue...
kono
parents: 284
diff changeset
52
471
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
53 void
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
54 test1(float id, float x,float y,float sx,float sy,int behav)
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
55 {
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
56 printf("#0055:%f %f %f %f %f %d\n", id,x,y,sx,sy,behav);
471
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
57 }
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
58
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
59 void
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
60 test2(int id, int x,float y,float sx,float sy,int behav)
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
61 {
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
62 printf("#0061:%d %d %f %f %f %d\n", id,x,y,sx,sy,behav);
471
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
63 }
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
64
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
65 void
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
66 test3(int id, float x,float y,float sx,float sy,int behav)
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
67 {
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
68 printf("#0067:%d %f %f %f %f %d\n", id,x,y,sx,sy,behav);
471
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
69 }
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
70
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
71 void
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
72 test4(int id, float x,int y,float sx,float sy,int behav)
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
73 {
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
74 printf("#0073:%d %f %d %f %f %d\n", id,x,y,sx,sy,behav);
471
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
75 }
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
76
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
77 void
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
78 test5(float id, int x,float y,int sx,float sy,int behav)
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
79 {
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
80 printf("#0079:%f %d %f %d %f %d\n", id,x,y,sx,sy,behav);
471
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
81 }
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
82
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
83
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
84
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
85 int
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
86 main(int ac,char *av[]) {
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
87 double g;
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
88 int i;
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
89 unsigned u;
108
69e2e763cce5 object assemble first try.
kono
parents: 96
diff changeset
90 double d00 = ac?0.5:3;
69e2e763cce5 object assemble first try.
kono
parents: 96
diff changeset
91
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
92 printf("#0091:%g\n",d00);
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
93
471
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
94 test1(1,2,3,10,11,4);
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
95 test2(1,2,3,10,11,4);
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
96 test3(1,2,3,10,11,4);
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
97 test4(1,2,3,10,11,4);
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
98 test5(1,2,3,10,11,4);
479
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
99 test7();
471
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
100
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
101 g = 1.0;
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
102 g = -g;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
103 printf("#0102:%d\ncond0 ",1);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
104 if(f==f*1.0) printf("#0103:t ");
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
105 printf("#0104:%d\ncond1 ",f==f*1.0);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
106 if(d==f*1.0) printf("#0105:t ");
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
107 printf("#0106:%d\ncond2 ",d==f*1.0);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
108 if(f==f1) printf("#0107:t ");
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
109 printf("#0108:%d\ncond3 ",f==f1);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
110 if(d==d1) printf("#0109:t ");
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
111 printf("#0110:%d\ncond4 ",d==d2);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
112 if(d==d2) printf("#0111:t ");
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
113 printf("#0112:%d\ncond5 ",(d==d2));
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
114 if(d>d1) printf("#0113:t ");
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
115 printf("#0114:%d\ncond6 ",d>d1);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
116 if(d>d2) printf("#0115:t ");
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
117 printf("#0116:%d\ncond7 ",d>d2);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
118 if(d>=d1) printf("#0117:t ");
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
119 printf("#0118:%d\ncond8 ",d>=d1);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
120 if(d>=d2) printf("#0119:t ");
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
121 printf("#0120:%d\ncond9 ",d>=d2);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
122 if(d!=d1) printf("#0121:t ");
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
123 printf("#0122:%d\ncond10 ",d!=d1);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
124 if(d!=d2) printf("#0123:5 ");
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
125 printf("#0124:%d\ncond11 ",d!=d2);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
126 if(d<d1) printf("#0125:t ");
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
127 printf("#0126:%d\ncond12 ",d<d1);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
128 if(d<d2) printf("#0127:t ");
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
129 printf("#0128:%d\ncond13 ",d<d2);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
130 if(d<=d1) printf("#0129:t ");
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
131 printf("#0130:%d\ncond14 ",d<=d1);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
132 if(d<=d2) printf("#0131:t ");
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
133 printf("#0132:%d\ncond15 ",d<=d2);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
134 d = 123.4234; f=-234.333;
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
135 i = d;
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
136 d = i;
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
137 i = f;
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
138 f = i;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
139 printf("#0138:\ni=%d d=%g f=%f",i,d,f);
94
1ad7045741a7 float dbinop fix
kono
parents: 91
diff changeset
140 f = g = d = d1 = d2 = f;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
141 printf("#0140: i=%d d=%g f=%f g=%g\n",i,d,f,g);
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
142
86
4d1275f8a5b5 *** empty log message ***
kono
parents: 85
diff changeset
143 d = 4204967294.4234; f=4204967294.4234;
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
144 u = d;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
145 printf("#0144:1: u=%u d=%g f=%f\n",u,d,f);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
146 d = u;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
147 printf("#0146:2: u=%u d=%g f=%f\n",u,d,f);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
148 u = f;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
149 printf("#0148:3: u=%u d=%g f=%f\n",u,d,f);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
150 f = u;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
151 printf("#0150:4: u=%u d=%g f=%f\n",u,d,f);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
152
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
153 print(1.0);
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
154 print(0.1234);
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
155 print(1.234e10);
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
156 print(1.234e-10);
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
157
472
834b5792bc5f *** empty log message ***
kono
parents: 471
diff changeset
158 test8();
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
159 printf("#0158:nested call: %g\n",test9(test9(test9(test9(-0.333,3),5),6),7));
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
160 return 0;
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
161 }
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
162
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
163 void
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
164 print(double d)
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
165 {
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
166 float f;
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
167 int *dd;
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
168
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
169 f = d;
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
170
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
171 dd = (int*) &d;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
172 printf("#0171:d %g ",d);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
173 printf("#0172:dx %08x %08x\n",*(dd),*(dd+1));
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
174
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
175 dd = (int*) &f;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
176 printf("#0175:f %g ",f);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
177 printf("#0176:dx %08x \n",*(dd));
82
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
178 }
25654dc29ecc First Floating Point coding done.
kono
parents: 81
diff changeset
179
81
f94ca1168520 float first try...
kono
parents: 79
diff changeset
180 double
f94ca1168520 float first try...
kono
parents: 79
diff changeset
181 testd(double i,double j)
f94ca1168520 float first try...
kono
parents: 79
diff changeset
182 {
87
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
183 return j+1.1+.0e3+12.3e-12;
81
f94ca1168520 float first try...
kono
parents: 79
diff changeset
184 }
f94ca1168520 float first try...
kono
parents: 79
diff changeset
185
f94ca1168520 float first try...
kono
parents: 79
diff changeset
186 float
f94ca1168520 float first try...
kono
parents: 79
diff changeset
187 testf(float i,float j)
f94ca1168520 float first try...
kono
parents: 79
diff changeset
188 {
87
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
189 return j+1;
81
f94ca1168520 float first try...
kono
parents: 79
diff changeset
190 }
f94ca1168520 float first try...
kono
parents: 79
diff changeset
191
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
192 void
472
834b5792bc5f *** empty log message ***
kono
parents: 471
diff changeset
193 test8()
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
194 {
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
195 float f;
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
196 float f1;
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
197 double g;
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
198 double g1;
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
199 float *pf;
3789aef7331d minor fix
kono
parents: 84
diff changeset
200 float *pf1;
3789aef7331d minor fix
kono
parents: 84
diff changeset
201 double *pg;
3789aef7331d minor fix
kono
parents: 84
diff changeset
202 double *pg1;
3789aef7331d minor fix
kono
parents: 84
diff changeset
203 int n = 1;
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
204
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
205 printf("#0204:simple double ");
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
206 f = 1.3;
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
207
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
208 g = 1.0;
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
209 g = g+g;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
210 printf("#0209:%d:%g\t",n++,g);
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
211 g1 = g*g;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
212 printf("#0211:%d:%g\t",n++,g1);
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
213 g = g/g1;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
214 printf("#0213:%d:%g\t",n++,g);
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
215 g = g-g1;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
216 printf("#0215:%d:%g\t",n++,g);
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
217 g = sin(g1);
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
218 printf("#0217:%d:%g\t",n++,g);
81
f94ca1168520 float first try...
kono
parents: 79
diff changeset
219 g = testd(g,g1);
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
220 printf("#0219:%d:%g\t",n++,g);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
221 printf("#0220:\n");
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
222
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
223 printf("#0222:simple float ");
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
224 f = f+f;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
225 printf("#0224:%d:%g\t",n++,f);
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
226 f1 = f*f;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
227 printf("#0226:%d:%g\t",n++,f1);
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
228 f = f/f1;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
229 printf("#0228:%d:%g\t",n++,f);
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
230 f = f-f1;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
231 printf("#0230:%d:%g\t",n++,f);
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
232 f = sin(f1);
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
233 printf("#0232:%d:%g\t",n++,f);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
234 printf("#0233:\n");
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
235
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
236 printf("#0235:post/pre increment ");
86
4d1275f8a5b5 *** empty log message ***
kono
parents: 85
diff changeset
237 g1 = g;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
238 printf("#0237:%d:%g\t",n++,g1++ - ++g);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
239
86
4d1275f8a5b5 *** empty log message ***
kono
parents: 85
diff changeset
240 f1 = f;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
241 printf("#0240:%d:%g\t",n++,f1++ - ++f);
87
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
242
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
243 g1 = g;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
244 printf("#0243:%d:%g\t",n++,g1-- - --g);
87
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
245
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
246 f1 = f;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
247 printf("#0246:%d:%g\t",n++,f1-- - --f);
87
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
248
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
249 printf("#0248:\n");
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
250 printf("#0249:simple calc ");
87
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
251
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
252 f=0.13; g=-0.56; f1=-0.13; g1=0.56;
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
253
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
254 g = f+f;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
255 printf("#0254:%d:%g\t",n++,g);
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
256 f = g*g;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
257 printf("#0256:%d:%g\t",n++,f);
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
258 g = g*g+f*f-g1*g1;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
259 printf("#0258:%d:%g\t",n++,g);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
260 printf("#0259:\n");
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
261
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
262 printf("#0261:float argument ");
87
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
263 f = testf(f,f1);
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
264 printf("#0263:%d:%g\t",n++,f);
87
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
265
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
266 printf("#0265:\nindirect ");
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
267 n=1;
3789aef7331d minor fix
kono
parents: 84
diff changeset
268 f = 1.3; pf=&f; pf1=&f1;
3789aef7331d minor fix
kono
parents: 84
diff changeset
269
3789aef7331d minor fix
kono
parents: 84
diff changeset
270 g = 1.0; pg=&g; pg1=&g1;
3789aef7331d minor fix
kono
parents: 84
diff changeset
271 *pg = *pg+ *pg;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
272 printf("#0271:%d:%g\t",n++,*pg);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
273 *pg1 = *pg**pg;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
274 printf("#0273:%d:%g\t",n++,*pg1);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
275 *pg = *pg/ *pg1;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
276 printf("#0275:%d:%g\t",n++,*pg);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
277 *pg = *pg-*pg1;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
278 printf("#0277:%d:%g\t",n++,*pg);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
279 *pg = sin(*pg1);
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
280 printf("#0279:%d:%g\t",n++,*pg);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
281 *pg = testd(*pg,*pg1);
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
282 printf("#0281:%d:%g\t",n++,*pg);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
283 printf("#0282:\n");
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
284
3789aef7331d minor fix
kono
parents: 84
diff changeset
285 *pf = *pf+*pf;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
286 printf("#0285:%d:%g\t",n++,*pf);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
287 *pf1 = *pf**pf;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
288 printf("#0287:%d:%g\t",n++,*pf1);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
289 *pf = *pf/ *pf1;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
290 printf("#0289:%d:%g\t",n++,*pf);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
291 *pf = *pf-*pf1;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
292 printf("#0291:%d:%g\t",n++,*pf);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
293 *pf = sin(*pf1);
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
294 printf("#0293:%d:%g\t",n++,*pf);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
295 printf("#0294:\n");
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
296
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
297 printf("#0296:indirect post/pre ");
86
4d1275f8a5b5 *** empty log message ***
kono
parents: 85
diff changeset
298 *pg1 = *pg;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
299 printf("#0298:%d:%g\t",n++,(*pg1)++ - ++(*pg));
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
300
86
4d1275f8a5b5 *** empty log message ***
kono
parents: 85
diff changeset
301 *pf1 = *pf;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
302 printf("#0301:%d:%g\t",n++,(*pf1)++ - ++(*pf));
87
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
303
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
304 *pg1 = *pg;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
305 printf("#0304:%d:%g\t",n++, (*pg1)-- - --(*pg));
86
4d1275f8a5b5 *** empty log message ***
kono
parents: 85
diff changeset
306
87
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
307 *pf1 = *pf;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
308 printf("#0307:%d:%g\t",n++, (*pf1)-- - --(*pf));
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
309 printf("#0308:\n");
87
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
310
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
311 *pf=0.13; *pg=-0.56; *pf1=-0.13; *pg1=0.56;
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
312
3789aef7331d minor fix
kono
parents: 84
diff changeset
313 *pg = *pf+*pf;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
314 printf("#0313:%d:%g\t",n++,*pg);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
315 *pf = *pg**pg;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
316 printf("#0315:%d:%g\t",n++,*pf);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
317 *pg = *pg**pg+*pf**pf-*pg1**pg1;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
318 printf("#0317:%d:%g\t",n++,*pg);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
319 printf("#0318:\n");
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
320
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
321 printf("#0320:float argument ");
87
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
322
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
323 *pf = testf(*pf,*pf1);
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
324 printf("#0323:%d:%g\t",n++,*pf);
87
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
325
1738f313f98b floating point (at most) done.
kono
parents: 86
diff changeset
326
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
327 printf("#0326:\nassop ");
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
328 n=1;
3789aef7331d minor fix
kono
parents: 84
diff changeset
329 f = 1.3;
3789aef7331d minor fix
kono
parents: 84
diff changeset
330 g = 1.0;
3789aef7331d minor fix
kono
parents: 84
diff changeset
331
3789aef7331d minor fix
kono
parents: 84
diff changeset
332 g *= 2*g;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
333 printf("#0332:%d:%g\t",n++,g);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
334 g /= 2*g;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
335 printf("#0334:%d:%g\t",n++,g);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
336 g -= 2*g;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
337 printf("#0336:%d:%g\t",n++,g);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
338 g += 2*g;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
339 printf("#0338:%d:%g\t",n++,g);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
340
3789aef7331d minor fix
kono
parents: 84
diff changeset
341 f *= 2*g;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
342 printf("#0341:%d:%g\t",n++,f);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
343 f /= 2*g;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
344 printf("#0343:%d:%g\t",n++,f);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
345 f -= 2*g;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
346 printf("#0345:%d:%g\t",n++,f);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
347 f += 2*g;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
348 printf("#0347:%d:%g\t",n++,f);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
349 printf("#0348:\n");
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
350
3789aef7331d minor fix
kono
parents: 84
diff changeset
351 n=1;
3789aef7331d minor fix
kono
parents: 84
diff changeset
352 f = 1.3;
3789aef7331d minor fix
kono
parents: 84
diff changeset
353 g = 1.0;
3789aef7331d minor fix
kono
parents: 84
diff changeset
354
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
355 printf("#0354:indirect assop ");
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
356 *pg *= 2**pg;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
357 printf("#0356:%d:%g\t",n++,*pg);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
358 *pg /= 2**pg;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
359 printf("#0358:%d:%g\t",n++,*pg);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
360 *pg -= 2**pg;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
361 printf("#0360:%d:%g\t",n++,*pg);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
362 *pg += 2**pg;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
363 printf("#0362:%d:%g\t",n++,*pg);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
364
3789aef7331d minor fix
kono
parents: 84
diff changeset
365 *pf *= 2**pg;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
366 printf("#0365:%d:%g\t",n++,*pf);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
367 *pf /= 2**pg;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
368 printf("#0367:%d:%g\t",n++,*pf);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
369 *pf -= 2**pg;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
370 printf("#0369:%d:%g\t",n++,*pf);
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
371 *pf += 2**pg;
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
372 printf("#0371:%d:%g\t",n++,*pf);
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
373 printf("#0372:\n");
85
3789aef7331d minor fix
kono
parents: 84
diff changeset
374
3789aef7331d minor fix
kono
parents: 84
diff changeset
375
79
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
376 return;
82d0e30f61dd *** empty log message ***
kono
parents:
diff changeset
377 }
94
1ad7045741a7 float dbinop fix
kono
parents: 91
diff changeset
378
1ad7045741a7 float dbinop fix
kono
parents: 91
diff changeset
379 double
473
f8ba383dbc39 MIPS float arg/int arg mix fix.
kono
parents: 472
diff changeset
380 test9(double f,int i)
94
1ad7045741a7 float dbinop fix
kono
parents: 91
diff changeset
381 {
1ad7045741a7 float dbinop fix
kono
parents: 91
diff changeset
382 double g,h;
1ad7045741a7 float dbinop fix
kono
parents: 91
diff changeset
383
1ad7045741a7 float dbinop fix
kono
parents: 91
diff changeset
384 if (i<=0) return f;
112
fc7de4faedfd *** empty log message ***
kono
parents: 108
diff changeset
385 #if 1
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
386 printf("#0385:rec: %d %g\n",i,f);
112
fc7de4faedfd *** empty log message ***
kono
parents: 108
diff changeset
387 #endif
94
1ad7045741a7 float dbinop fix
kono
parents: 91
diff changeset
388 g = f*2;
1ad7045741a7 float dbinop fix
kono
parents: 91
diff changeset
389 h = f-0.5;
473
f8ba383dbc39 MIPS float arg/int arg mix fix.
kono
parents: 472
diff changeset
390 return h/3-(3.0-(g+3)*test9(f*0.5,i-1)/(h-1));
94
1ad7045741a7 float dbinop fix
kono
parents: 91
diff changeset
391 }
471
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
392
479
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
393 struct huga0 {
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
394 char c;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
395 short s;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
396 int i;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
397 long l;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
398 float f;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
399 };
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
400 struct huga {
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
401 char c;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
402 short s;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
403 int i;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
404 long l;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
405 float f;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
406 struct huga0 hh;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
407 };
471
cfa4db8b18a5 mips float arg fix
kono
parents: 427
diff changeset
408
479
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
409
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
410 struct enemy{
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
411 int charno; // image number
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
412 float x; // x location
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
413 float y; // y location
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
414 int ap; // armor point
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
415 };
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
416
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
417 void
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
418 print_param(struct enemy *e)
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
419 {
491
a379da780856 cond signed/unsigned
kono
parents: 479
diff changeset
420 printf("#0419:charno:%d x,y:%f,%f hp:%d\n",
479
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
421 e->charno,e->x,e->y,e->ap);
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
422 }
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
423
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
424
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
425 int test7()
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
426 {
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
427 struct huga h;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
428 struct enemy e;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
429
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
430 h.c = 10;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
431 h.s = 20;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
432 h.i = 30;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
433 h.l = 40;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
434 h.f = 50;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
435 h.hh.c = 10;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
436 h.hh.s = 20;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
437 h.hh.i = 30;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
438 h.hh.l = 40;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
439 h.hh.f = 50;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
440
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
441
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
442 e.charno=5; e.x=50.0; e.y=30.0; e.ap=100;
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
443 print_param(&e);
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
444 return (0);
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
445 }
51c1b795b4f3 fix broken $gp in jal in code segement
kono
parents: 473
diff changeset
446