Ал Александра int ABS(int a) { int b; __asm { mov eax,a test eax,0x8000 jz OK neg eax OK: mov b,eax } return b; }