Re: A86:Random Integers?


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

Re: A86:Random Integers?




In a message dated 11/29/98 17:52:18 Eastern Standard Time, tbarwick@esn.net
writes:

> Think about this ComAsYuAre...
>  _setxxop1 takes input in a...
>  a can only hold an 8 bit number...
>  _setxxop2 takes input in a...
>  a still can only hold an 8 bit number...
>  after _randint is called, the number returned in OP1 cannot be over 8
bits...
> 
>  then, _convop1 puts the number into A...
>  So, if the number can only be 8 bit, what would be the use of putting it in
> AHL?
>  _convop1 makes a number in OP1 go into a...
>  I am sure this has to be right,


for that example, you're right for everything except the last part.  _convop1
puts it into AHL, with l being the least significant byte.  so the random int
is actually in l.

also _randint can take an integer of any size.  not all op values are achieved
using _setxxop1.  i was giving him a larger spectrum of _randint and_convop1's
uses.