Mercurial > hg > CbC > old > device
diff test/ps2.c @ 748:c2c709727221
i64 continue... basic.s assembled.
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 13 Nov 2010 22:39:40 +0900 |
parents | fe0a971a6666 |
children | 6b93d95a1564 |
line wrap: on
line diff
--- a/test/ps2.c Sat Nov 13 10:47:47 2010 +0900 +++ b/test/ps2.c Sat Nov 13 22:39:40 2010 +0900 @@ -52,8 +52,8 @@ INLINE void draw(ObjNode *this, FMATRIX m, FMATRIX n) { - printf("work %g ",m[1][1]); - printf("base %g\n",n[1][1]); + printf("#0054:work %g ",m[1][1]); + printf("#0055:base %g\n",n[1][1]); m[1][1] += -0.7; n[1][1] += 0.7; } @@ -76,8 +76,8 @@ if(!this) return; if(this->mtd) this->mtd( this ); if(this->draw) this->draw( this, work, base ); - printf("offset draw %d\n",((char*)(&this->draw) - ((char*)&this->object))); - printf("offset next %d\n",((char*)(&this->next) - ((char*)&this->object))); + printf("#0078:offset draw %d\n",((char*)(&this->draw) - ((char*)&this->object))); + printf("#0079:offset next %d\n",((char*)(&this->next) - ((char*)&this->object))); if(this->child) graphic_ObjNode_draw( this->child, work ); if(this->next) graphic_ObjNode_draw( this->next, base ); @@ -87,7 +87,7 @@ INLINE void ps2_vu0_unit_matrix(ps2_vu0_fmatrix m) { - printf("%g\n",m[1][1]); + printf("#0089:%g\n",m[1][1]); m[1][1] = -0.5; } @@ -102,9 +102,9 @@ FMATRIX o; if (i==0) return i; #ifdef OFFSET - printf("offset %d\n",((char*)a) - ((char*)(&m))); + printf("#0104:offset %d\n",((char*)a) - ((char*)(&m))); #endif - printf("%d %d %d\n",mod16(m),mod16(n),mod16(o)); + printf("#0106:%d %d %d\n",mod16(m),mod16(n),mod16(o)); align16(i-1,m,n); return k; } @@ -117,9 +117,9 @@ FMATRIX1 o; if (i==0) return i; #ifdef OFFSET - printf("offset %d\n",((char*)a) - ((char*)(&m))); + printf("#0119:offset %d\n",((char*)a) - ((char*)(&m))); #endif - printf("%d %d %d\n",mod16(m),mod16(n),mod16(o)); + printf("#0121:%d %d %d\n",mod16(m),mod16(n),mod16(o)); align16_1(i-1,m,n); return k; } @@ -134,18 +134,18 @@ m[1][1] = 0.5; ps2_vu0_unit_matrix(m); - printf("%g %d\n",m[1][1],aligned); + printf("#0136:%g %d\n",m[1][1],aligned); align16(2,m,m); align16_1(2,m,m); graphic_ObjNode_draw( &p, m); - printf("sizeof(aligns)==%d %d\n", + printf("#0141:sizeof(aligns)==%d %d\n", sizeof(aligns),sizeof(aligns1)); - printf("sizeof(aligns)/sizeof(void *)==%d\n", + printf("#0143:sizeof(aligns)/sizeof(void *)==%d\n", sizeof(aligns)/sizeof(void *)); for(i=0;i<sizeof(aligns)/sizeof(void *);i++) { - printf("align10%d %d\n",i,mod16(aligns[i])); + printf("#0147:align10%d %d\n",i,mod16(aligns[i])); } }