Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site bigtuna.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!ittvax!dcdwest!sdcsvax!noscvax!uhpgvax!islenet!bigtuna!richard From: richard@bigtuna.UUCP (Richard Foulk) Newsgroups: net.unix-wizards Subject: VAX 4.1/4.2 C asm() question Message-ID: <161@bigtuna.UUCP> Date: Thu, 27-Jun-85 18:13:56 EDT Article-I.D.: bigtuna.161 Posted: Thu Jun 27 18:13:56 1985 Date-Received: Thu, 4-Jul-85 00:19:08 EDT Organization: University of Hawaii, Bekesy Lab, Neurophysiology Lines: 31 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