Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!mit-eddie!uw-beaver!sumax!polari!corwin From: corwin@polari.UUCP (Don Glover) Newsgroups: comp.unix.xenix Subject: 2.3.0 compiler error Keywords: bad instruction Message-ID: <1372@polari.UUCP> Date: 14 Mar 90 06:45:18 GMT Organization: Seattle Online Public Unix (206) 328-4944 Lines: 21 I have the following code (condensed to a reasonable size for demonstration) extern int rand(); #define RND(x) (rand() % x) main() { rnd(6); } int rnd(x) /* 1 <= rnd(x) <= x */ register int x; { return(RND(x)+1); } the above code when compiled produces an idiv esi assembler instruction, that to the best of my ability to tell is an incorrect instruction, further my mahcine running xenix 386 chokes on it. is this a known bug or is there something I am missing?