Mercurial > hg > CbC > old > device
comparison test/offset.c @ 377:b23568be1155
ARM continue (const table)
author | kono |
---|---|
date | Tue, 13 Jul 2004 21:43:58 +0900 |
parents | 91849fdeea60 |
children | 0c256ea2a97e |
comparison
equal
deleted
inserted
replaced
376:d81e1be4036f | 377:b23568be1155 |
---|---|
78 printf("%x\n", p[-BIT8]); | 78 printf("%x\n", p[-BIT8]); |
79 printf("%x\n", p[-BIT10]); | 79 printf("%x\n", p[-BIT10]); |
80 printf("%x\n", p[-(BIT12-1)]); | 80 printf("%x\n", p[-(BIT12-1)]); |
81 printf("%x\n", p[-(BIT16-1)]); | 81 printf("%x\n", p[-(BIT16-1)]); |
82 | 82 |
83 p = large+BIT16; | |
84 | |
85 p[-1] = 0xaa; | |
86 p[-BIT8] = 0xbb; | |
87 p[-BIT10] = 0xcc; | |
88 p[-(BIT12-1)] = 0xdd; | |
89 p[-(BIT16-1)] = 0xee; | |
90 | |
91 printf("%x\n", p[-1]); | |
92 printf("%x\n", p[-BIT8]); | |
93 printf("%x\n", p[-BIT10]); | |
94 printf("%x\n", p[-(BIT12-1)]); | |
95 printf("%x\n", p[-(BIT16-1)]); | |
96 | |
97 | |
83 for(p=local_midium;p<&local_midium[BIT12];p++) *p = p-local_midium; | 98 for(p=local_midium;p<&local_midium[BIT12];p++) *p = p-local_midium; |
84 for(p=local_large;p<&local_large[BIT16];p++) *p = p-local_large; | 99 for(p=local_large;p<&local_large[BIT16];p++) *p = p-local_large; |
100 | |
101 for(p=midium;p<&midium[BIT12];p++) *p = p-midium; | |
102 for(p=large;p<&large[BIT16];p++) *p = p-large; | |
85 | 103 |
86 } | 104 } |
87 | 105 |
88 main(int ac,char *av[]) | 106 main(int ac,char *av[]) |
89 { | 107 { |