YauhenMardan

asm_9.1

May 26th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5.  
  6.  
  7. int main() {
  8. char s[64] = "Work";
  9. int n = strlen(s);
  10. char g[128];
  11. _asm {
  12. lea edi, g
  13. lea esi, s
  14. mov ecx,64
  15. beg_1:
  16. mov [edi],' '
  17. inc edi
  18. loop beg_1
  19. mov ecx, n
  20. repe movsb
  21. mov [edi],'\0'
  22. }
  23. cout << g << endl;
  24. system("pause");
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment