Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int solution(int x, int y, int z)
- {
- x=4;
- y=5;
- z=2;
- int result;
- __asm
- {
- mov eax, -2
- imul [x]
- imul [y]
- mov ebx, eax
- mov eax, -3
- imul [z]
- sub eax, ebx
- mov [result], eax ;
- }
- assert(result == -2*x*y – 3*z);
- printf("solution_for_grade_6(%d, %d,**strong text** %d) = %dn", x, y, z, result);
- return result;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement