Advertisement
filashkov

Untitled

Mar 14th, 2020
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %include "io.inc"
  2.  
  3. section .bss
  4.     answer_for_everyone resd 32
  5.  
  6. section .text
  7. global CMAIN
  8. CMAIN:
  9.     GET_UDEC 4, ecx
  10.     mov edi, 0
  11.    
  12. .while:
  13.     cmp ecx, 0
  14.         jz .stop_while
  15.        
  16.             GET_UDEC 4, eax
  17.            
  18.             mov ebx, 0
  19.             .inner_ebx_for:
  20.             cmp ebx, 32
  21.                 jz. stop_inner_ebx_for
  22.                    
  23.                     call F
  24.                    
  25.                 inc ebx
  26.                 jmp .stop_inner_ebx_for
  27.             .stop_inner_ebx_for:
  28.        
  29.         dec ecx
  30.         jmp .while
  31. .stop_while:
  32.  
  33.     xor eax, eax
  34.     ret
  35.  
  36. F
  37.     eax, ebx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement