Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int x = 5, b, a[20];
- cin >> b;
- _asm {
- mov ecx, 1
- lea esi, a
- _loop:
- mov eax, ecx
- mul x
- mov [esi], eax
- add esi, 4
- inc ecx
- cmp ecx, 20
- jl _loop
- }
- for (int i = 0; i < 19; ++i) cout << a[i] << " ";
- }
Advertisement
Add Comment
Please, Sign In to add comment