A82: Re: The 'r' register zone


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

A82: Re: The 'r' register zone



The R register is supposed to be used for memory-refresh (DRAM), and it is
include to make it possible to use DRAM with the Z80 with as litlle
external hardware as possible. The r register is incremented all the time
and can therefore be used to get random numbers. 

LD A,R will acces the the R register.

There are a few problems with using the R register for random numbers.
First of all the LSB is always 0, besides that one number might appear
more often than others when your use it. Have a look at some of TI85
programs which uses it, that should help you make a rutine which does not
have all these problems.

DInes
-----Original Message-----
From: GeradS711@aol.com <GeradS711@aol.com>
To: assembly-82@lists.ticalc.org <assembly-82@lists.ticalc.org>
Date: 15. november 1997 02:20
Subject: A82: The 'r' register zone


>What does the r register return, and how do you access it, use it!!!
>

_______________________________________

Dines Justesen
Email: dines@post1.com or
       c958362@student.dtu.dk
WWW  : http://www.gbar.dtu.dk/~c958362/
_______________________________________