xref: /csrg-svn/lib/libc/vax/net/ntohs.s (revision 21444)
1*21444Sdist/*
2*21444Sdist * Copyright (c) 1983 Regents of the University of California.
3*21444Sdist * All rights reserved.  The Berkeley software License Agreement
4*21444Sdist * specifies the terms and conditions for redistribution.
5*21444Sdist */
6*21444Sdist
7*21444Sdist#ifndef lint
8*21444Sdiststatic char sccsid[] = "@(#)ntohs.s	5.1 (Berkeley) 05/30/85";
9*21444Sdist#endif not lint
10*21444Sdist
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