Aleksei Sidorin | 9e447e9 | 2016-09-28 11:04:42 +0000 | [diff] [blame] | 1 | |
2 | unsigned char asmFunc(unsigned char a, unsigned char b) { | ||||
3 | unsigned int la = a; | ||||
4 | unsigned int lb = b; | ||||
5 | unsigned int bigres; | ||||
6 | unsigned char res; | ||||
7 | __asm__ ("0:\n1:\n" : [bigres] "=la"(bigres) : [la] "0"(la), [lb] "c"(lb) : | ||||
8 | "edx", "cc"); | ||||
9 | res = bigres; | ||||
10 | return res; | ||||
11 | } |