SHARE
TWEET

Untitled

a guest Apr 20th, 2019 101 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. EXIT = 1
  2. READ = 3
  3. WRITE = 4
  4. STDOUT = 1
  5. STDIN = 0
  6. SYSCALL = 0x80
  7. ERR_CODE = 0
  8.  
  9. .bss
  10. #.lcomm buffer, 500
  11.  
  12. .data
  13.  
  14. messageo: .ascii "wprowadź wysokość:\n"
  15. message_leno = . - messageo
  16.  
  17. height: .space LENGTH
  18. width: .space LENGTH
  19.  
  20. LENGTH = 32
  21.  
  22. .global _start
  23.  
  24. _start:
  25.  
  26. movl $WRITE,            %eax
  27. movl $STDOUT,           %ebx
  28. movl $messageo,         %ecx
  29. movl $message_leno,     %edx
  30. int $SYSCALL
  31.  
  32. movl $READ,     %eax
  33. movl $STDIN,    %ebx
  34. movl $height,   %ecx
  35. movl $LENGTH,   %edx
  36. int $SYSCALL
  37.  
  38. movl (%ecx), %esi
  39.  
  40. mov $EXIT, %eax
  41. int $0x80
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top