Advertisement
Guest User

Untitled

a guest
Apr 4th, 2020
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. %include "rw32-2018.inc"
  2.  
  3.  
  4. section .data
  5.     str1 db "test",0
  6.     str2 db "Pocet prectenych znaku:%d",0
  7.     strLen db 0
  8.     ; zde budou vase data
  9.  
  10.  
  11. section .text
  12. _main:
  13. %define inputLen ebp-4
  14.     push ebp
  15.     mov ebp, esp
  16.    
  17.     push str1
  18.     call strlen
  19.     mov [inputLen],eax
  20.  
  21.     push dword [inputLen]
  22.     push str2
  23.     call printf
  24.     add esp,8
  25.     ; zde bude vas kod
  26.  
  27.     mov esp,ebp
  28.     pop ebp
  29.     ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement