Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int a,i=1; //a-число, i-порядок
- cout<<"Type a"<<endl;
- cin>>a;
- __asm{
- mov eax,a
- mov ebx,i
- beg_:
- cmp eax,ebx
- jne end_
- mov eax,99
- jmp beg_
- end_:
- mov a,eax
- }
- cout<<a<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement