Re: A85: A couple of programming questions


[Prev][Next][Index][Thread]

Re: A85: A couple of programming questions



I mapped out the rom for this routine yesterday and found out that it is
slow! It is the routine that runs when you type 'rand' in the ti-os. It
makes a random number and puts it in OP1-6 or something like that. You only
need 1 BYTE of it though, not the full 9 or so digits. I would recommend
using a random routine using ld a,r and some srl and add instructions in
conjuction with a random seed.

>I think that it was working correctly for me, it was just incredibly
>slow.  i should probably look in the ROM and see what is going on.
>The first time i tried to use the routine (calling it 1024 times), my
>calculator crashed (or so i thought).  then i tried again with a
>smaller number (maybe 200) and it worked fine, but very slowly.  So i
>put it back at 1024, and it just worked *very* *very* slowly.
>
>-mike pearce
>
>On Tue, 2 Sep 1997 08:07:05 +0200, you wrote:
>
>>I don't think it works yet correctly, but you could try it. I haveno idea
>>why it doesn't work.
>>	Andreas
>>
>>----------
>>From: 	Michael Pearce[SMTP:mikep@anet-dfw.com]
>>Sent: 	Tuesday, September 02, 1997 12:38 AM
>>To: 	assembly-85@lists.ticalc.org
>>Subject: 	A85: A couple of programming questions
>>
>>First, and most importantly, what is the best way to create a random
>>order for a fixed data set.  Or more specifically, what is the best
>>way to shuffle cards.  Second, does the RANDOM routine in Usgard work?
>>I think i remember reading that you could only call it so many times.
>>Is this still true with Usgard v1.0?
>>
>>-mike pearce


__
Thayne Miller
Email: yomaster@geocities.com
Home Page: http://www.geocities.com/SiliconValley/Heights/5084

"Yes, well, that's the sort of blinkered, fitestine, pig-ignorance
  I've come to expect from you non-creative garbage!"
      -Monty Python



Follow-Ups: References: