Advertisement
joker546645

38 pdf

Nov 26th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. .686
  2. .model flat
  3. extern _ExitProcess@4 : PROC
  4. public _main
  5.  
  6. .data
  7. iskry db 16 dup (?)
  8. .code
  9.  
  10. _main PROC  
  11.  
  12.     lea esi, iskry
  13.     mov ebx, 11100100b
  14.     mov eax, 11b
  15.     mov edi, 0
  16.  
  17. ptl:
  18.     cmp edi, 16
  19.     je koniec
  20.     rol ebx, 2
  21.     mov ecx, ebx
  22.     and ecx, eax
  23.     cmp ecx, 0
  24.     je trzy
  25.     cmp ecx, 1
  26.     je cztery
  27.     cmp ecx, 2
  28.     je siedem
  29.     mov edx, '9'
  30.     mov [esi+edi], edx
  31.     inc edi
  32.     jmp ptl
  33.  
  34. trzy:
  35.     mov edx, '3'
  36.     mov [esi+edi], edx
  37.     inc edi
  38.     jmp ptl
  39.  
  40. cztery:
  41.     mov edx, '4'
  42.     mov [esi+edi], edx
  43.     inc edi
  44.     jmp ptl
  45.  
  46. siedem:
  47.     mov edx, '7'
  48.     mov [esi+edi], edx
  49.     inc edi
  50.     jmp ptl
  51.  
  52. koniec:
  53.  
  54. push 0
  55. call _ExitProcess@4
  56. _main ENDP
  57. END
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement