Changes

Jump to: navigation, search

Speccy Port

178 bytes added, 14:58, 2 April 2023
/* Random numbers */
* It would be wasteful to store part or all of the Spectrum's ROM in the memory
* It is not legal to store any part of the Spectrum's ROM in memory
* An alternative random number method is needed but
1) it is likely the numbers produced will differ compared to reading from the ROM therefore the gameplay would be different. It may be subtle, it may be significant.
2) it may take more CPU instructions to do this.
Some games may use the 'R' register to generate a semi-random number.
''Consequences for CPC:''
* The R register value is based on the number and which instructions are executed. It is likely that the number of instructions between each read of the 'R' register could differ.
 
For both of these the consequences are:
 
- the numbers generated are likely to produce numbers which will differ compared to the Spectrum version and therefore the gameplay could be different. It may be subtle, it may be significant.
- reading a random number may take more CPU instructions to do this making it slightly slower.
 
Where possible the Spectrum and Amstrad versions should use the same random number generation based on a stored seed.
=====Double buffering=====
2,541
edits