Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site sdcc12.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!ittvax!dcdwest!sdcsvax!sdcc3!sdcc12!wa301 From: wa301@sdcc12.UUCP (wa301) Newsgroups: net.micro.68k Subject: 68010 random number generator Message-ID: <394@sdcc12.UUCP> Date: Wed, 26-Jun-85 21:29:12 EDT Article-I.D.: sdcc12.394 Posted: Wed Jun 26 21:29:12 1985 Date-Received: Sat, 29-Jun-85 00:24:25 EDT Organization: U.C. San Diego, Academic Computer Center Lines: 23 Keywords: 68010 Apollo random overflow I am writing a random number generator in Pascal for the Apollo workstations we have here. I'd like to use the linear congruential method described in Knuth. This requires the hardware to correctly perform integer arithmetic modulo 2**(word length). However, I'm not sure what the Apollo will do, and there are several cases to worry about: 16 vs. 32 bits, signed vs. unsigned, addition vs. multiplication. It might even trap. The various Apollo models that we own are all based on the 68010, except for the DN660, which has a bit-slice imple- mentation of the 68010 architecture. Can anyone help me, either with information on integer overflow or with a working random number generator? Please mail replies to me, and I'll post a summary if there's interest. Thanks, Ron David ...sdcsvax!sdcc12!wa301 Burroughs Corporation, MicroComponents Group, San Diego, CA