xref: /csrg-svn/lib/libc/vax/net/ntohs.s (revision 34425)
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
726693Sdonn#ifdef LIBC_SCCS
8*34425Smckusick_sccsid:.asciz	"@(#)ntohs.s	5.4 (Berkeley) 05/22/88"
926693Sdonn#endif LIBC_SCCS
1021444Sdist
119718Ssam/* hostorder = ntohs(netorder) */
129718Ssam
139718Ssam#include "DEFS.h"
149718Ssam
15*34425SmckusickENTRY(ntohs, 0)
169718Ssam	rotl	$8,4(ap),r0
179718Ssam	movb	5(ap),r0
189718Ssam	movzwl	r0,r0
199718Ssam	ret
20