Tranvick

Untitled

Jun 25th, 2013
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main() {
  6. int x = 5, b, a[20];
  7. cin >> b;
  8. _asm {
  9. mov ecx, 1
  10. lea esi, a
  11. _loop:
  12. mov eax, ecx
  13. mul x
  14. mov [esi], eax
  15. add esi, 4
  16. inc ecx
  17. cmp ecx, 20
  18. jl _loop
  19. }
  20. for (int i = 0; i < 19; ++i) cout << a[i] << " ";
  21. }
Advertisement
Add Comment
Please, Sign In to add comment