Path: utzoo!mnetor!uunet!husc6!bloom-beacon!mit-eddie!killer!jockc From: jockc@killer.UUCP (Jock Cooper) Newsgroups: comp.sys.apple Subject: Re: Two questions... Message-ID: <3995@killer.UUCP> Date: 5 May 88 23:27:40 GMT References: <5128@bloom-beacon.MIT.EDU> Reply-To: jockc@killer.UUCP (Jock Cooper) Organization: The Unix(R) Connection BBS, Dallas, Tx Lines: 28 In article <5128@bloom-beacon.MIT.EDU> mhamaoka@athena.mit.edu (Michael T Hamaoka) writes: > 1. Does anyone out there know how to write an assembly language random > number routine? Or does anyone have a disassembly of the RND command > or the memory location where it starts? If you are using a GS you can use the _Random toolbox call (if quickdraw has been initialized). Also the SANE toolbox has a random function that is described in the Apple Numerics Tech Ref Manual. If you cannot make these toolbox calls, it shouldn't be too hard to find a random number algorithm somewhere and implement in assy... If you are using a //e or //+, you might try looking at the locations that the keyboard input routines increment while waiting for input ($46 and $47 I think).. This method would work only if you were using those routines for input. The 16-bit number contained in those locations should be relatively random if keyboard input has taken place. The number will change each time you call the system keyboard input routine. > > 2. Is there a GIF viewer for the Apple IIgs that takes advantage of > the GS graphics? Yes, the program is called SHRConvert. It is shareware and is pretty widely available. Loading GIFs is kind of slow but usable. It loads/converts many other formats as well. jockc ihnp4!killer!jockc