A83: Re: Re: Problem with a program


A83: Re: Re: Problem with a program

65,535 even =)

Actually, you could just use a 16-bit register to control a DJNZ loop (you
CAN do that can't you?...lol) and do all the tough mathematics in the OP
registers. Generating 100,000 random numbers on an 8Mhz chip will be slow no
matter :)



----- Original Message -----
From: Kouri <Kouri@ucdavis.edu>
To: <assembly-83@lists.ticalc.org>
Sent: Friday, December 10, 1999 9:34 AM
Subject: A83: Re: Problem with a program

> Is 64,535 times not enough? If not, you could combine two 16 bit registers
and store the number in there. BCD math isn't
> too hard, but I am no expert, so I will leave it to the others to explain
it to you. :) As for the input routine, you'll
> just have to make your own.
> ----- Original Message -----
> From: <Dsc984@aol.com>
> To: <assembly-83@lists.ticalc.org>
> Sent: Thursday, December 09, 1999 8:53 PM
> Subject: A83: Problem with a program
> Hi,
> I'm trying to make a program for my prob and stat class.  What it would do
> you would input the number of possible numbers (for example, a 2 for a
> and a 6 for a die) and then the number of times to get the random number
> example, flip the coin 5000 times).  The reason this would be nice is
> the BASIC program we use takes a LONG time to complete (someone used the
> program to flip a coin 100,000 times and it took ~4 hours to complete).
> having a lot of trouble writing this program, mostly because I need to
> support the large number of times to loop (the SOS routine for number
input I
> use stores the answer into OP1, which barely supports a number over 2000,
> much less 100,000)  and a good way of giving the data (I can't exactly
> 36 numbers on the screen).  At first, I tried to have it store it into L1,
> but that was slow, innefficiant, and I couldn't get it to work :(  If
> has a good idea for this, it'd be much appreciated.
> -Rangsk
> "Man who put face in punchbowl get punch in nose."
> "Man who stands on toilet is high on pot."

Follow-Ups: References: