From comp.sys.handhelds Sun Jun  9 13:56:08 1991
Path: seq!ecsgate!mcnc!gatech!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state.edu!caen!spool.mu.edu!cs.umn.edu!uc!noc.MR.NET!gacvx2.gac.edu!hhdist
From: CW%APG.PH.UCL.AC.UK@CUNYVM.CUNY.EDU
Newsgroups: comp.sys.handhelds
Subject: ML Circles
Message-ID: <89C854C2C00019BA@gacvx2.gac.edu>
Date: 6 Jun 91 15:53:16 GMT
Lines: 122
Return-path: <@CUNYVM.CUNY.EDU:CW@APG.PH.UCL.AC.UK>
To: HANDHELDS@gac.edu
Via:      UK.AC.UCL.PH.APG;  6 JUN 91 15:54:05 BST



         Lightning strikes, the ESD readings flicker momentarily, and
       a solitary dark cowelled figure is silouetted against the dungeon
       wall. He seems to be leaning over a small oblong object that you
       would estimate to be about 7'x3'x1' in size. With a blood curdling
       shriek he falls to the ground and seems to melt away into
       nothingnessnous leaving behind only his cowel and ... and ...
       a piece of paper lying on the floor by the cowel, you
       assume he must have been holding it in his hand afore his dreaded fate.
       Moving forward carefully you pick up the piece of paper, and upon
       examination you find it to be an incantation of sorts. You read on
       terror emptying into your heart with every word

            "  The following is a machine code routine to draw
               Circles quite quickly on the present PICT GROB.
               The GROB can be any size as the routine reads
               the size of the GROB itself. It is fairly robust -
               All plotting is kept within the GROB area. If
               PICT does not exist then it creates the default
               131x64 PICT. It does some very rudimentry arguament
               checking. (If anybody could send a quick tutorial
               on checking arguaments in system RPL to C.S.H I
               would be very grateful!). All in all it should
               work well, but if you have any problems let me
               know. When stored in the variable 'CIRCLE' it
               has the checksum #77c7h and takes up 305 bytes.
               It takes as arguaments

                          2:        { #x  #y }
                          1:                r

               where { #x #y } is the pixel coordinate of the
               centre of the circle (#x,#y are binary integers),
               and r is a real number representing the radius
               of the circle in pixels. Also included are two
               demonstration routines to give you a taste of
               what's possible. 

               Two demonstration routines are included.

               I hope this is clear and that some people
               find this useful. Please let me know your
               thoughts on how this routine could be improved.
               I for one am going to try and make it even faster!!!
               Thats all for now except for the disclaimer

               I accept no responsibility for anything done
               by this program constructive or destructive, but
               be warned, never ever on any account use this
               program in a damp dungeon where water may drop
               on your calculator and cause serious electric
               shock, or worse still damage it.

                          YOU HAVE BEEN WARNED!             "

         You notice the paper is rather grusomely charred, and
         there is the smell of ozone in the air. A thought enters
         your mind

              "I can't afford an HP48, and this bloke certainly
               won't be needing his anymore!"

         You turn and pick it up

         "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGH  ZAP SPLAT"

         As your body melts around you, you see the screen of the
         calculator and you notice with horror your death was in
         vain for on the screen are the words


               "GATEWAY


                     ENTER CODE"



                      :-)


            Conrad

