VAX 4.1/4.2 C asm() question

Richard Foulk richard at bigtuna.UUCP
Fri Jun 28 08:13:56 AEST 1985


I'm trying to get the Maryland Z80 cross assembler running on
a Dual 68K box (System V).  It requires the bsd4.1 loader, ld,
which we have VAX sources to.  The problem is an asm() call in
the function called bwrite (which is the same in both 4.1 and 4.2.)

Could someone please give me an idea what C code I can replace the
following asm() call with:

>		to = bp->b_ptr;
>		asm("movc3 r8,(r11),(r7)");
>		bp->b_ptr += put;

The b_ptr member is a (char *).

The leadin to bwrite looks like this:

> bwrite(p, cnt, bp)
> 	register char *p;
> 	register int cnt;
> 	register struct biobuf *bp;
> {
> 	register int put;
> 	register char *to;
> 

I hope this is enough information to figure things out.

thanks much.
-- 
Richard Foulk		(..islenet!bigtuna!richard)
Honolulu, Hawaii



More information about the Comp.unix.wizards mailing list