VAX 4.1/4.2 C asm() question

farhad at ISM780.UUCP farhad at ISM780.UUCP
Tue Jul 2 13:26:00 AEST 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



More information about the Comp.unix.wizards mailing list