1 ! htonX
(), ntohX
() - Host to network byte order conversion
5 ! This is
a little endian
8086, so we swap bytes to
/from the big endian network
6 ! order. The normal
<net
/hton.h
> macros are
not used
, they give lousy code.
13 movb ah
, 2(bx
) ! Load bytes into ax in reverse order
17 .define _htonl, _ntohl
21 movb dh
, 2(bx
) ! Load bytes into dx
:ax in reverse order