cat.disasm 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Disassembly of section .data:
  2. 08049054 <getchar>:
  3. 8049054: b8 03 00 00 00 mov eax,0x3
  4. 8049059: bb 00 00 00 00 mov ebx,0x0
  5. 804905e: b9 b1 90 04 08 mov ecx,0x80490b1
  6. 8049063: ba 01 00 00 00 mov edx,0x1
  7. 8049068: cd 80 int 0x80
  8. 804906a: 83 f8 01 cmp eax,0x1
  9. 804906d: 75 06 jne 8049075 <getchar.getchar_fail>
  10. 804906f: a1 b1 90 04 08 mov eax,ds:0x80490b1
  11. 8049074: c3 ret
  12. 08049075 <getchar.getchar_fail>:
  13. 8049075: b8 ff ff ff ff mov eax,0xffffffff
  14. 804907a: c3 ret
  15. 0804907b <putchar>:
  16. 804907b: a3 b1 90 04 08 mov ds:0x80490b1,eax
  17. 8049080: b8 04 00 00 00 mov eax,0x4
  18. 8049085: bb 01 00 00 00 mov ebx,0x1
  19. 804908a: b9 b1 90 04 08 mov ecx,0x80490b1
  20. 804908f: ba 01 00 00 00 mov edx,0x1
  21. 8049094: cd 80 int 0x80
  22. 8049096: c3 ret
  23. 08049097 <_start>:
  24. 8049097: e8 b8 ff ff ff call 8049054 <getchar>
  25. 804909c: 83 f8 ff cmp eax,0xffffffff
  26. 804909f: 74 07 je 80490a8 <_start.done>
  27. 80490a1: e8 d5 ff ff ff call 804907b <putchar>
  28. 80490a6: eb ef jmp 8049097 <_start>
  29. 080490a8 <_start.done>:
  30. 80490a8: 89 c3 mov ebx,eax
  31. 80490aa: b8 01 00 00 00 mov eax,0x1
  32. 80490af: cd 80 int 0x80
  33. 080490b1 <buf>:
  34. 80490b1: ff (bad)
  35. 80490b2: ff (bad)
  36. 80490b3: ff (bad)
  37. 80490b4: ff (bad)