1 2 3 4 5 6 7 8 9 10 11
.text .global htons .type htons,@function .global ntohs .type ntohs,@function htons: ntohs: movzwl 4(%esp),%eax xchgb %al,%ah ret