ZX Review #3-4
22 июля 1997

Forum - S. Astrov. Pseudorandom number generator.

<b>Forum</b> - S. Astrov. Pseudorandom number generator.
(C) Sergey Astrov,
Cheboksary, 1996.


   Pseudo-random

             numbers.


   I confess! And corrects his mistake I made in the 
description of the random number generator in the ZX-REVIEW 
6'95. RND_3 - a pseudo-random bits, and to get

pseudo-word, the procedure should cause 16 times
and this negates the speed of the generator. With a single call 
to 15 bits of the old numbers are present in the new number, 
adds only one random bits.


   The new implementation is devoid of these shortcomings, but 
zero is still unattainable. The idea of ​​getting the numbers 
practically the same as in my previous generator. Deleted 
checking for null value Be careful! The length of the generator 
23 bytes are used only registers AF and HL.

1410.
RND_32 LD HL, (SEED)

          CALL RND
RND LD A, H

          ADD HL, HL

          XOR H

          ADD HL, HL

          ADD HL, HL

          ADD HL, HL

          XOR H

          ADD HL, HL

          ADD HL, HL

          XOR H

          ADD HL, HL

          ADD HL, HL

          LD L, A

          LD (SEED), HL

          RET
SEED DEFW # FFFF; NOT ZERO!
2

   IFC: Sergei have one question: does anyone know which bytes
replace the printer's firmware
CM-6337 to when you turn
immediately established an alternative encoding?

********************************





Other articles:

TR-DOS for beginners - Part 1.

Authoring - General Sound - Multimedia for the ZX Spectrum!

Business Card - Introducing the new electronic journal "Major Wares" (c) Codebusters & VMG

Computer novella - Knight Lore "legends of chivalry times."

New Programs - I. Roshchin. HELP_Z80. Davydov. Catalog's Base v1.8.

description of the shell of the journal "ZX-REVIEW"

Crossing Dragon - Aavlon, Castle of Dreams, Erik the Viking.

Crossing Dragon - Eureka!, Eye of Bain, Kentilla.

Crossing - Sherlock, Apollo, Shadows of Mordor, Rigels Revenge, Temple of Terror, ID, That's the Spirit, Return to Ithaka.

Retro - Dzh.Hardman, E. Hyuzon. Top 40 procedures.

Expert Tips - Castle Master.

Expert Tips - Firelord.

Expert Tips - Stonkers.

Forum Games - Insult Megademo, Catch 23, Livingstone, Rock Star ate my Hampster, UFO-2: Devils of the Abyss, Terminator 2, Venturama, The Spririts, Nipper, Sweewo'S World, King's Bounti -2, Hacker 2, Black Magic, Satcom, Star Heritage.

Forum - A. Gura. Code programmer.

Forum - A. Strelnikov. Prospects of development of ZX Spectrum.

Forum - Davydov. According to materials published in the ZX-REVIEW: Some issues related to autostart BASIC programs. Redefine Keys. How to print 42 characters per line. The procedure of multiplication HL = B * C. Refinement cloning downloaders. Mini-driver disk.

Forum - With 'Light'. Music processor ZX-Speccy.

Forum - Dmitry Fyodorov: Print images with a mask with pixel precision. Algorithm for calculating the address coordinates to within a pixel.

Forum - I. Roshchin. Sharing ZX ASM 3.0 and STS 5.1.

Forum - M. Bekarev. The calculation of the address display area of familiarity, and vice versa.

Forum - VP Fedin. Refinement Profi for conflict-free peripheral connectivity.

Forum - S. Astrov. Pseudorandom number generator.

reader-reader - V. Sirotkin. Protection program (look at the problem).

reader-reader - I. Roshchin. Display driver for the computer, "Pentagon-128.

Studies - A. Savinov: The procedure for displaying a double-height characters. Procedure "dissolution" of characters.

Studies - A. Urzha. The procedure for drawing a circle.

Studies - V. Sirotkin. Program checksum.

Studies - E. Volchkov. Improvement routines address calculation system on display file.

Studies - E. Frost. Running line.

Studies - I. Komandin. The program display screen.

Studies - I. Roshchin. Two graphic effect.

Studies - M. Lazutov: The modernization program font. Program encode / decode block codes. The effect of the attributes.

Studies - O. Smolyankin: Procedures for cleaning the screen. Output of text messages on the screen.


Темы: Игры, Программное обеспечение, Пресса, Аппаратное обеспечение, Сеть, Демосцена, Люди, Программирование

Similar articles:
Secrets - A special section for fans of "eternity." We will talk about secrets of games. Tricks of the Trade, POKES, passwords and secret codes.

В этот день...   2 May