A86: Re: I feel stupid.


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

A86: Re: I feel stupid.




>How do I generate a random number?


for a random num with no boundary use:

ld a,r

for a random num with a boundary use:

 ld a,$xx
 push af

Random:
 call _RANDOM
 pop af
 call _setxxop2
 call _fpmult
 call _convop1
 ld a,e
 ret

dont feel stupid...i didnt get it at first either


Follow-Ups: