_asm
{
mov eax, a;
mov ebx, b;
cmp eax, ebx;
jna m1;
imul eax, eax;
imul ebx, 5;
add eax, ebx;
add eax, 7;
mov fx, eax;
jmp _ret
m1: mov fx, 100;
_ret: nop;
}
_asm
{
mov ecx, 0;
mov eax, x;
cmp eax, 3;
jna m1;
imul eax, eax;
add ecx, eax;
mov eax, x;
imul eax, 3;
add eax, 9;
add ecx, eax;
mov x, ecx;
jmp _ret
m1:
mov eax, x;
imul eax, eax;
mov ebx, x;
imul eax, ebx;
add eax, 6;
mov x, eax;
_ret: nop;
}
int main()
{
setlocale(0, "rus");
int a, b, c,rez;
cout << "Введите a: "; cin >> a;
cout << "Введите b: "; cin >> b;
cout << "Введите c: "; cin >> c;
_asm
{
mov eax, a;
mov ebx, b;
mov ecx, c;
cmp eax, ebx;
ja m1;
cmp ecx, ebx;
ja m2;
mov rez, ebx;
jmp _ret;
m1:
cmp ecx, eax;
ja m2;
mov rez, eax;
jmp _ret;
m2:
mov rez, ecx;
jmp _ret;
_ret: nop;
}