Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. //for (int i = 0; i < length; i++) // Encrypt characters one at a time
  2. xor esi, esi // esi register is the counter, set to 0 by xor-ing with itself
  3. loop1 : mov ecx, index // this is the body of the loop, the content here will be looped through
  4. mov dl, temp_char
  5. mov dl, [ecx + OChars]
  6. mov temp_char, dl
  7. inc esi // incriemnt esi as it moves thorugh the loop, this is counting how many times the loop has been executed
  8. cmp esi, length // compare the esi, counter, register to the length of the string that we are moving through
  9. jge loop1 // jump if greater than or equal depending on the cmp statmement and move through the loop if not equal or greater
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement