Madmouse

why you need to size your calls to registers in assembly

Jan 29th, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [user@n0 poltut]$ nano test.s
  2. [user@n0 poltut]$ nasm -f elf64 test.s -o test.o
  3. [user@n0 poltut]$ objdump -d test.o
  4.  
  5. test.o:     file format elf64-x86-64
  6.  
  7.  
  8. Disassembly of section .text:
  9.  
  10. 0000000000000000 <_start>:
  11.    0:   b8 01 00 00 00          mov    $0x1,%eax
  12.    5:   b0 01                   mov    $0x1,%al
  13. [user@n0 poltut]$
Advertisement
Add Comment
Please, Sign In to add comment