xref: /csrg-svn/lib/libc/vax/net/ntohs.s (revision 42637)
121444Sdist/*
221444Sdist * Copyright (c) 1983 Regents of the University of California.
334814Sbostic * All rights reserved.
434814Sbostic *
5*42637Sbostic * %sccs.include.redist.c%
621444Sdist */
721444Sdist
834814Sbostic#if defined(LIBC_SCCS) && !defined(lint)
9*42637Sbostic	.asciz "@(#)ntohs.s	5.6 (Berkeley) 06/01/90"
1034814Sbostic#endif /* LIBC_SCCS and not lint */
1121444Sdist
129718Ssam/* hostorder = ntohs(netorder) */
139718Ssam
149718Ssam#include "DEFS.h"
159718Ssam
1634425SmckusickENTRY(ntohs, 0)
179718Ssam	rotl	$8,4(ap),r0
189718Ssam	movb	5(ap),r0
199718Ssam	movzwl	r0,r0
209718Ssam	ret
21