Advertisement
Guest User

Untitled

a guest
Nov 4th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.      .intel_syntax noprefix
  2.         .global main
  3.         .text
  4. main:
  5.         mov eax, offset x
  6.         push eax
  7.         mov eax, offset s
  8.         call scanf
  9.         add esp,4
  10.         ret
  11.  
  12.         .data
  13. s:      .asciz "Hello, world!\n"
  14. ///
  15. Napisac **.s program, ktore pobiere liczbe multiply *2,
  16.  
  17. // scanf -
  18. x: .dword 0
  19. scanf("cos, %s",x);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement