Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. geist@four:~/t$ cat mov.S
  2. .text
  3.  
  4. .globl _start
  5. _start:
  6. movl $1,bar
  7. movl $1,bar+4
  8. movl $1,%eax
  9. movl $1,(%eax)
  10. movl $1,4(%eax)
  11.  
  12. .data
  13. bar:
  14. .long 0
  15. geist@four:~/t$ i386-elf-gcc -ffreestanding -nostdlib mov.S -o mov && objdump -d mov
  16.  
  17. mov: file format elf32-i386
  18.  
  19.  
  20. Disassembly of section .text:
  21.  
  22. 08048074 <_start>:
  23. 8048074: c7 05 9a 90 04 08 01 movl $0x1,0x804909a
  24. 804807b: 00 00 00
  25. 804807e: c7 05 9e 90 04 08 01 movl $0x1,0x804909e
  26. 8048085: 00 00 00
  27. 8048088: b8 01 00 00 00 mov $0x1,%eax
  28. 804808d: c7 00 01 00 00 00 movl $0x1,(%eax)
  29. 8048093: c7 40 04 01 00 00 00 movl $0x1,0x4(%eax)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement