本帖最后由 a868247 于 2013-1-15 08:52 编辑
133: ans1<<=1;
134: ans2<<=1;
135: ans3<<=1;
0x08000420 F8DFA3F4 LDR.W r10,[pc,#1012] ; @0x08000818
136: GPIOB->BSRRL = GPIO_Pin_3; //SCLK_HIGH;
0x08000424 4AFD LDR r2,[pc,#1012] ; @0x0800081C
0x08000426 F89A1000 LDRB r1,[r10,#0x00]
0x0800042A 1C49 ADDS r1,r1,#1
0x0800042C B2CD UXTB r5,r1
0x0800042E F88A5000 STRB r5,[r10,#0x00]
0x08000432 2008 MOVS r0,#0x08
0x08000434 8010 STRH r0,[r2,#0x00]
0x08000436 4BFA LDR r3,[pc,#1000] ; @0x08000820
137: ans1 += *((volatile unsigned long *)(0x42408210));
0x08000438 681E LDR r6,[r3,#0x00]
0x0800043A 49FA LDR r1,[pc,#1000] ; @0x08000824
138: ans2 += *((volatile unsigned long *)(0x4240022c));
0x0800043C 680F LDR r7,[r1,#0x00]
139: ans3 += *((volatile unsigned long *)(0x42400230));
0x0800043E F8D1C004 LDR r12,[r1,#0x04]
140: GPIOB->BSRRH = GPIO_Pin_3; //SCLK_LOW;
141:
142: ans1<<=1;
143: ans2<<=1;
144: ans3<<=1;
0x08000442 F1020402 ADD r4,r2,#0x02
0x08000446 8020 STRH r0,[r4,#0x00]
145: GPIOB->BSRRL = GPIO_Pin_3; //SCLK_HIGH;
0x08000448 8010 STRH r0,[r2,#0x00]
146: ans1 += *((volatile unsigned long *)(0x42408210));
0x0800044A F8D38000 LDR r8,[r3,#0x00]
0x0800044E EB080946 ADD r9,r8,r6,LSL #1
147: ans2 += *((volatile unsigned long *)(0x4240022c));
0x08000452 680E LDR r6,[r1,#0x00]
0x08000454 EB060747 ADD r7,r6,r7,LSL #1
148: ans3 += *((volatile unsigned long *)(0x42400230));
0x08000458 684E LDR r6,[r1,#0x04]
149: GPIOB->BSRRH = GPIO_Pin_3; //SCLK_LOW;
150:
151: ans1<<=1;
152: ans2<<=1;
0x0800045A 8020 STRH r0,[r4,#0x00]
0x0800045C EB06084C ADD r8,r6,r12,LSL #1
153: ans3<<=1;
0x08000460 EA4F0648 LSL r6,r8,#1
154: GPIOB->BSRRL = GPIO_Pin_3; //SCLK_HIGH;
0x08000464 8010 STRH r0,[r2,#0x00]
155: ans1 += *((volatile unsigned long *)(0x42408210));
0x08000466 F8D38000 LDR r8,[r3,#0x00]
156: ans2 += *((volatile unsigned long *)(0x4240022c));
0x0800046A F8D1C000 LDR r12,[r1,#0x00]
0x0800046E EB080849 ADD r8,r8,r9,LSL #1
0x08000472 EB0C0C47 ADD r12,r12,r7,LSL #1
157: ans3 += *((volatile unsigned long *)(0x42400230));
0x08000476 684F LDR r7,[r1,#0x04]
158: GPIOB->BSRRH = GPIO_Pin_3; //SCLK_LOW;
159:
感觉汇编好怪啊!我for里面32个都是是展开的 |