Re: [cc65] offtopic: random numbers in c64

Date view Thread view Subject view

From: Stephan Lesch (slesch_at_studcs.uni-sb.de)
Date: 2003-06-27 11:28:30


On Thu, 26 Jun 2003, sandree wrote:

> BTW another method for generation random numbers is to read the upper four
> bits of any register between $d800 and $dbff. they are not connected to the
> computer so their value depends on the radiation in the environment.

Hi Carlos,

I'm not so sure about that. The values read may depend on the value
of the previous byte that was put on the bus; some people like
Christian Bauer and Marko Maekelae (sp?) managed to run a program
in the unconnected address space at $dexx/dfxx by having the vic fetch
a particular byte sequence :-)

On some machines these unconnected bits might always be read as 0 or 1.

Also, I think the c128 has eight bit color ram. (It has a
2k x 8 ram, but I don't know if the upper bits are connected)

Stephan

----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2003-06-27 11:29:01 CEST