[comp.sys.amiga.tech] questions

backstro@silver.bacs.indiana.edu (05/14/88)

Okay everyone two questions:

One:  I've heard that by replacing the Paula chip in an old 1000 you can gain
      Extra HalfBrite capabilities.  My question is how much for a new Paula
      and where do I get it?

Two:  Can anyone send me a nice short piece of C code for reading the Time
      Of Day clock?   (Oh hell three questions...)

Three:  This may sound dumb, but I'm new to programming the AMIGA and 'C' both.
        Where can I find the random number routine for use with C?

Thanx in advance.

 +----------------------------------------------------------------------------+
 | James Colyer | #define LIFE (?) | AMIGA!  //// |  Running his 1 Meg Amiga  |
 |---------------------------------|        ////  |   1000 from a Lobby (!)   |
 | ARPA: backstro@silver.bacs.     |       ////   |---------------------------|
 |       indiana.edu               |      ////    | "There is no dark side on |
 | USSnail: 4755 N. Kinser Pike,   | \\\\////     |  the moon, really. Matter |
 |          Bloomington, IN, 47401 |  \\XX//      |  of fact it's all dark."  |
 |----------------------------------------------------------------------------|
 | The opinions expressed are those of a sick and deranged maniac.  Poor sod. |
 +----------------------------------------------------------------------------+

hedley@cbmvax.UUCP (Hedley Davis) (05/16/88)

In article <97800008@silver> backstro@silver.bacs.indiana.edu writes:
>
>Okay everyone two questions:
>
>One:  I've heard that by replacing the Paula chip in an old 1000 you can gain
>      Extra HalfBrite capabilities.  My question is how much for a new Paula
>      and where do I get it?
>

	Well, Paula won't do much for your video. However, replacing
	Denise will get you EHB. As for where to get it, you might try
	ordering it through a dealer or repair center.

	As for the other one ( oh hell, two ) questions, you'll have
	to wait for some software type to respond.

Hedley

carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) (05/16/88)

In article <97800008@silver> backstro@silver.bacs.indiana.edu writes:
>
>Okay everyone two questions:
>
>One:  I've heard that by replacing the Paula chip in an old 1000 you can gain
>      Extra HalfBrite capabilities.  My question is how much for a new Paula
>      and where do I get it?

Hedley answered this - Denise, at a service center

>Two:  Can anyone send me a nice short piece of C code for reading the Time
>      Of Day clock?   (Oh hell three questions...)

I assume you mean the system time.  AmigaDOS function DateStamp().
Thene use a datestamp to date routine to convert datestamp to date and time.
(I believe one was posted here recently)

>Three:  This may sound dumb, but I'm new to programming the AMIGA and 'C' both.
>        Where can I find the random number routine for use with C?

It's in amiga.lib and it is called RangeRand() and it is documented in the
amiga.lib.doc in the A-W RKM Exec manual.  Usage is RangeRand(n) where n
is a number from 1 to 65535 and represents the high limit for your random
number.  

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Carolyn Scheppner -- CATS   >>Commodore Amiga Technical Support<<
                     UUCP  ...{allegra,ihnp4,rutgers}!cbmvax!carolyn 
                     PHONE 215-431-9180
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) (05/18/88)

In article <702@applix.UUCP> scott@applix.UUCP (Scott Evernden) writes:
>In article <3779@cbmvax.UUCP> carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) writes:
>>>        Where can I find the random number routine for use with C?
>>
>>It's in amiga.lib and it is called RangeRand() and it is documented in the
>>amiga.lib.doc in the A-W RKM Exec manual.  Usage is RangeRand(n) where n
>>is a number from 1 to 65535 and represents the high limit for your random
>
>Is it true there is no way to seed RangeRand()?  Also, what the heck
>is the use of FastRand()??


Currently, Amiga.lib has an xdef'd variable called _RangeSeed (in C that
would be extern ULONG RangeSeed).  It starts out initialized to 0.
I think each call to RangeRand updates it.  You could set it yourself.

There is an _FastRand routine which is commented as a quick way to
generate a random number.  It wants a 32-bit seed passed on stack,
and returns a new 32-bit seed in d0.


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Carolyn Scheppner -- CATS   >>Commodore Amiga Technical Support<<
                     UUCP  ...{allegra,ihnp4,rutgers}!cbmvax!carolyn 
                     PHONE 215-431-9180
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

henning@agnes.uucp (Mark D. Henning) (07/02/89)

dear amiga tecks,

A couple of questions reposted from comp.sys.amiga because I got no
responce.

1 has anyone written a light pen driver to use it in leau of a
mouse?

2 does anyone know where I can get ahold of the include file for arp
1.3 arp.library.  I want to recompile the shell found on the net (i
believe the author is dillon?) anyway, Please email me an anonymous
ftp site to get it from or mail me a uuencoded version.  Thanks in
advance.

					thanks,
					Mark Henning

---------------------------------------------
All opinions are my own, as are the spellings
any deviation from the norm is just an effect
of my deviance.