Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- geist@four:~/t$ cat mov.S
- .text
- .globl _start
- _start:
- movl $1,bar
- movl $1,bar+4
- movl $1,%eax
- movl $1,(%eax)
- movl $1,4(%eax)
- .data
- bar:
- .long 0
- geist@four:~/t$ i386-elf-gcc -ffreestanding -nostdlib mov.S -o mov && objdump -d mov
- mov: file format elf32-i386
- Disassembly of section .text:
- 08048074 <_start>:
- 8048074: c7 05 9a 90 04 08 01 movl $0x1,0x804909a
- 804807b: 00 00 00
- 804807e: c7 05 9e 90 04 08 01 movl $0x1,0x804909e
- 8048085: 00 00 00
- 8048088: b8 01 00 00 00 mov $0x1,%eax
- 804808d: c7 00 01 00 00 00 movl $0x1,(%eax)
- 8048093: c7 40 04 01 00 00 00 movl $0x1,0x4(%eax)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement