选择M0编译后生成的指令:
16: PORTA_DOUT0 = 0;
0x00000166 4812 LDR r0,[pc,#72] ; @0x000001B0
0x00000168 6881 LDR r1,[r0,#0x08]
0x0000016A 0849 LSRS r1,r1,#1
0x0000016C 0049 LSLS r1,r1,#1
0x0000016E 6081 STR r1,[r0,#0x08]
17: PORTA_DOUT0 = 1;
18:
0x00000170 6881 LDR r1,[r0,#0x08]
0x00000172 2201 MOVS r2,#0x01
0x00000174 4311 ORRS r1,r1,r2
0x00000176 6081 STR r1,[r0,#0x08]
选择M3编译后生成的指令
16: PORTA_DOUT0 = 0;
0x0000015E 4812 LDR r0,[pc,#72] ; @0x000001A8
0x00000160 6881 LDR r1,[r0,#0x08]
0x00000162 F0210101 BIC r1,r1,#0x01
0x00000166 6081 STR r1,[r0,#0x08]
17: PORTA_DOUT0 = 1;
18:
0x00000168 6881 LDR r1,[r0,#0x08]
0x0000016A F0410101 ORR r1,r1,#0x01
0x0000016E 6081 STR r1,[r0,#0x08] |