15 lines · c
1int main() {2 int value;3 asm (4 "cmp %1, %2\n\t"5 "ite ne\n\t"6 ".thumb_func\n\t"7 "bkpt_true:\n\t"8 "movne %0, %1\n\t"9 ".thumb_func\n\t"10 "bkpt_false:\n\t"11 "moveq %0, %2\n\t"12 : "=r" (value) : "r"(42), "r"(47));13 return value;14}15