1 .arch armv6-m 2 .syntax unified 3 .thumb 4 .text 5 .align 2 6 .global foo 7foo: 8 msr apsr_nzcvq,r6 9 msr epsr,r9 10 mrs r2, iapsr 11 yield 12 wfe 13 wfi 14 sev 15 add r0, r0, r1 16 nop 17 dmb 18 dsb 19 isb 20 21