Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!sdcsvax!sdchema!donn From: donn@sdchema.UUCP Newsgroups: net.jokes Subject: Re: UNIX Man Page Funnies Message-ID: <593@sdchema.UUCP> Date: Fri, 10-Jun-83 21:08:22 EDT Article-I.D.: sdchema.593 Posted: Fri Jun 10 21:08:22 1983 Date-Received: Sat, 11-Jun-83 22:24:25 EDT Lines: 17 Reference: mgweed.1242 One of my favorite pieces of funny code is from the 4.1 BSD modf.s; it takes most of its amusement from the simple fact that the VAX has some damn weird instructions... To wit: # # This instruction does the following: # # Extend the long floating value at 4(ap) with 0, and # multiply it by 1.0. Store the integer part of the result # in r2, and the fractional part of the result in r0-r1. # emodd 4(ap),$0,$0f1.0,r2,r0 # How did you like # THAT, sports fans? Donn Seeley UCSD Chemistry Dept. RRCF ucbvax!sdcsvax!sdchema!donn