Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int res;
- _asm{
- push eax
- push ebx
- mov eax, 5
- cmp eax, 0
- jg did
- cmp eax, 0
- jl maz
- cmp eax, 0
- je lygu
- did:
- mov ebx, -10
- jmp exit_if
- maz:
- mov ebx, 5
- jmp exit_if
- lygu:
- mov ebx, 0
- jmp exit_if
- exit_if:
- mov res, ebx
- }
- cout<<"b reiksme: "<<res<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement