Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //#include <stdlib>
- #include <iostream>
- #include <cstdio>
- int main() {
- short res;
- char a = 19, b = 15, c = 26, d = -14;
- __asm {
- mov cl, c
- mov al, d
- imul cl
- mov cx, ax
- mov bl, b
- mov al, a
- mov ah, 0
- div bl
- mov al, 0
- mov al, ah
- mov ah, 0
- mov res, ax
- add cx, ax
- mov al, a
- imul al
- sub ax, 7
- add cx, ax
- mov res, cx
- }
- printf("\n\n\nres = %d\n\n\n", res);
- printf("%d\n",c*d + a % b + a*a - 7);
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement