Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC840302); site boring.UUCP Path: utzoo!watmath!clyde!bonnie!akgua!whuxlm!harpo!decvax!genrad!panda!talcott!harvard!seismo!mcvax!boring!jack From: jack@boring.UUCP Newsgroups: net.unix-wizards Subject: Re: VAX 4.1/4.2 C asm() question Message-ID: <6485@boring.UUCP> Date: Mon, 1-Jul-85 12:35:17 EDT Article-I.D.: boring.6485 Posted: Mon Jul 1 12:35:17 1985 Date-Received: Fri, 5-Jul-85 03:45:08 EDT References: <161@bigtuna.UUCP> Reply-To: jack@boring.UUCP (Jack Jansen) Organization: AMOEBA project, CWI, Amsterdam Lines: 24 Keywords: FLAME Apparently-To: rnews@mcvax.LOCAL This brings me to one of my favorite flames : NEVER USE ASM() STATEMENTS!! If you do, do something like #ifdef FUNNY_MACHINE asm("movm r3,r4,r5"); #else while(i-->0) *p++ = *q++; #endif FUNNY_MACHINE or, if this is impossible, the least you should do is #ifdef FUNNY_MACHINE asm("barf r0"); #else This instruction should flash all the lights on the console, turn all the terminals off, and turn on the coffee machine; #endif FUNNY_MACHINE How the h*ll should anyone with a different machine now what your assembly language is like, *even if you're running on a VAX*? -- Jack Jansen, jack@mcvax.UUCP The shell is my oyster.