xref: /csrg-svn/lib/libc/vax/net/ntohs.s (revision 26693)
121444Sdist/*
221444Sdist * Copyright (c) 1983 Regents of the University of California.
321444Sdist * All rights reserved.  The Berkeley software License Agreement
421444Sdist * specifies the terms and conditions for redistribution.
521444Sdist */
621444Sdist
7*26693Sdonn#ifdef LIBC_SCCS
8*26693Sdonn_sccsid:.asciz	"@(#)ntohs.s	5.3 (Berkeley) 03/09/86"
9*26693Sdonn#endif LIBC_SCCS
1021444Sdist
119718Ssam/* hostorder = ntohs(netorder) */
129718Ssam
139718Ssam#include "DEFS.h"
149718Ssam
159718SsamENTRY(ntohs)
169718Ssam	rotl	$8,4(ap),r0
179718Ssam	movb	5(ap),r0
189718Ssam	movzwl	r0,r0
199718Ssam	ret
20