Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: $Revision: 1.6.2.16 $; site ISM780.UUCP
Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!ISM780!farhad
From: farhad@ISM780.UUCP
Newsgroups: net.unix-wizards
Subject: Re: VAX 4.1/4.2 C asm() question
Message-ID: <31500005@ISM780.UUCP>
Date: Mon, 1-Jul-85 23:26:00 EDT
Article-I.D.: ISM780.31500005
Posted: Mon Jul  1 23:26:00 1985
Date-Received: Thu, 4-Jul-85 04:34:44 EDT
References: <161@bigtuna.UUCP>
Lines: 20
Nf-ID: #R:bigtuna:-16100:ISM780:31500005:000:385
Nf-From: ISM780!farhad    Jul  1 23:26:00 1985



If you care about the speed, try to find equivalent instruction for movc3. If
not, do the following changes.

> if (bp->b_nleft) {
> 	.					.
> 	.					.
> 	.					.
> 	.					.
> 	to = bp->b_ptr;				.
> 	asm("movc3 r8,(r11),(r7)");	==>	cnt -= put;	
> 	.				==>	while (put--)
> 	.				==>		*to++ = *p++;
> 	.				==>	bp->b_ptr = to;
> 	.				==>	goto top;
> }
> if (cnt >= BUF...

--farhad