Skip to content

Instantly share code, notes, and snippets.

@ericlagergren
Created June 28, 2016 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericlagergren/8a53922a0f58dfef8d62710b062b637a to your computer and use it in GitHub Desktop.
Save ericlagergren/8a53922a0f58dfef8d62710b062b637a to your computer and use it in GitHub Desktop.
080490f0 <main.signum>:
80490f0: 65 8b 0d 00 00 00 00 mov %gs:0x0,%ecx
80490f7: 8b 89 fc ff ff ff mov -0x4(%ecx),%ecx
80490fd: 3b 61 08 cmp 0x8(%ecx),%esp
8049100: 76 29 jbe 804912b <main.signum+0x3b>
8049102: 8b 4c 24 08 mov 0x8(%esp),%ecx
8049106: 89 ca mov %ecx,%edx
8049108: c1 fa 1f sar $0x1f,%edx
804910b: 89 cd mov %ecx,%ebp
804910d: c1 fd 1f sar $0x1f,%ebp
8049110: 8b 44 24 04 mov 0x4(%esp),%eax
8049114: 83 d1 00 adc $0x0,%ecx
8049117: f7 d9 neg %ecx
8049119: c1 e9 1f shr $0x1f,%ecx
804911c: 31 db xor %ebx,%ebx
804911e: 89 d0 mov %edx,%eax
8049120: 89 ea mov %ebp,%edx
8049122: 09 c8 or %ecx,%eax
8049124: 09 da or %ebx,%edx
8049126: 89 44 24 0c mov %eax,0xc(%esp)
804912a: c3 ret
804912b: e8 a0 7c 04 00 call 8090dd0 <runtime.morestack_noctxt>
8049130: eb be jmp 80490f0 <main.signum>
8049132: cc int3
8049133: cc int3
8049134: cc int3
8049135: cc int3
8049136: cc int3
8049137: cc int3
8049138: cc int3
8049139: cc int3
804913a: cc int3
804913b: cc int3
804913c: cc int3
804913d: cc int3
804913e: cc int3
804913f: cc int3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment