Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- char s[64] = "Work";
- int n = strlen(s);
- char g[128];
- _asm {
- lea edi, g
- lea esi, s
- mov ecx,64
- beg_1:
- mov [edi],' '
- inc edi
- loop beg_1
- mov ecx, n
- repe movsb
- mov [edi],'\0'
- }
- cout << g << endl;
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment