Deja Vu #06
30 сентября 1998

CODING - Lessons from the encoder: Generilka balls.

<b>CODING</b> - Lessons from the encoder: Generilka balls.

            Generilka balls

            ----------------

B ;-----+ These are the pretty beads
t; | (a total of 16 phases on # 200 B) n *; | neriruet The 
following protser; | fool. 

  ; | Written it might not be
 ; | Very best, but it works
J; | good.
T;

  ;
";-----+


   That's listing:


        ORG # 6000

        ENT
; Written by Max / CBX / BD (1997).


PHASES EQU # 8000; phases lie here.
SIN EQU # 6C00

        LD HL, PHASES

        LD DE, PHASES +1

        LD BC, 8 * 8 * 8 * 16-1

        LD (HL), L

        LDIR

        LD HL, S_DATA

        LD DE, SIN

        LD C, 65

        LDIR

        LD H, D

        LD L, E

        DEC L

        DEC L
MK_SIN LD A, (HL)

        LD (DE), A

        INC E

        DEC L

        JR NZ, MK_SIN

        LD C, # 1980

        LDIR

        CALL CH_GEN

        LD A, 16

        LD HL, PHASES +8
GEN_LP PUSH HL, AF

        SLA A

        CALL BALL

        POP AF, HL

        LD DE, 8 * 8 * 8

        ADD HL, DE

        DEC A

        JR NZ, GEN_LP

        LD HL, 10072

        EXX

        RET


BALL LD (CHESS +1), A

        EXX

        LD B, # 80

        LD HL, SIN

        LD DE, SIN +64
BALL1 LD A, (DE)

        DEC E

        SLA A

        EXX

        LD E, A

        LD D, 64

        LD A, D

        PUSH HL, DE

        SUB E

        SRL A

        LD E, A

        SRL E

        SRL E

        SRL E

        LD D, 0

        ADD HL, DE

        POP DE

        AND 7

        INC A

        LD B, A

        LD A, 1
ROLL RRCA

        DJNZ ROLL

        LD B, A
CHESS LD C, 0

        LD A, (HL)

        OR B

        LD (HL), A

        CALL CHAIN

        LD A, (HL)

        OR B

        LD (HL), A

        POP HL

        EXX

        LD A, (HL)

        INC L

        SUB (HL)

        EXX

        JR Z, C1

        LD A, L

        ADD A, 8

        LD L, A

        JR NC, C1

        INC H
C1 EXX

        LD A, B

        AND 16
OLD CP 0

        JR Z, ENDL

        LD (OLD +1), A

        LD A, (CHESS +1)

        XOR 16
; You can stick the command ADD A, 5.

        LD (CHESS +1), A
ENDL DJNZ BALL1

        RET


CH_GEN LD DE, CHAIN

        LD B, # 80

        EXX

        LD HL, SIN

        EXX
CH_LP PUSH BC

        LD HL, CH_EXMP

        LD BC, NODOT-CH_EXMP

        LDIR

        LD C, CHAIN-NODOT

        EXX

        LD A, (HL)

        INC L

        SUB (HL)

        EXX

        JR Z, JR_OK

        DEC C

        DEC C

        INC HL

        INC HL
JR_OK LDIR

        POP BC

        DJNZ CH_LP

        LD A, 201

        LD (DE), A

        RET


S_DATA DB # 1F, # 1F, # 1F, # 1F, # 1F, # 1F, # 1F

        DB # 1F, # 1E, # 1E, # 1E, # 1E, # 1E, # 1D

        DB # 1D, # 1D, # 1D, # 1C, # 1C, # 1C, # 1B

        DB # 1B, # 1B, # 1A, # 1A, # 19, # 19, # 18

        DB # 18, # 17, # 17, # 16, # 16, # 15, # 15

        DB # 14, # 14, # 13, # 12, # 12, # 11, # 11

        DB # 10, # 0F, # 0F, # 0E, # 0D, # 0D, # 0C

        DB # 0B, # 0A, # 0A, # 09, # 08, # 08, # 07

        DB # 06, # 05, # 05, # 04, # 03, # 02, # 02

        DB # 01, # 00


CH_EXMP BIT 4, C

        JR Z, NODOT

        LD A, (HL)

        OR B

        LD (HL), A
NODOT JR NOSTEP

        LD A, D

        SUB E

        JR NC, NOADD

        ADD A, 64

        RRC B

        JR NC, NOADD

        INC HL
NOADD LD D, A
NOSTEP INC C
CHAIN ​​EQU $






Other articles:

Aperativchik - On the control of the shell DEJA VU

Aperativchik - Accuracy - the politeness of kings, the new issue of the journal.

Topic - Fun Top-98 or the obvious and incredible.

Topic - An Interview with Vladimir. Balchukeem before Fun Top-98.

Topic - Results Fun Top-98.

Topic - Photos from Fun Top-98.

drop of solder - ROM, which we vybiraem.Obzor ROM: Penatagon128, Scorpion ZS256, Spectrum128-branded version, Spectrum +2, Spectrum +2, Spectrum +3, ROM from PROFI CLUB.

drop of solder - Additional graphics mode 512x192.

SOFTWARE - New demoscene: FOREVER, ADRENALIZE, BOOM, TYRANY, BLAME, EMERGENCY, KATNARSIS.

SOFTWARE - New game programs: A LAST HERO of the LIGHT FORCE, MONSTR LAND, MIRROR.

CODING - Ultra-fast disk drives SPECCY.

CODING - Lessons from the encoder: Fractal paparatnik.

CODING - Driver read / write.

CODING - Lessons from the encoder: Generilka balls.

CODING - The algorithms of data compression.

CODING - On obechatke Listing of stack (5 rooms).

ANOTHER WORLD - WINDOWS-95 and beyond.

ANOTHER WORLD - News from the INTEL-a ...

ANOTHER WORLD - work PC and software

Hall of Fame - On spektrumskih journals.

Hall of Fame - letters to the editor.

Hall of Fame - On CD-ROM project from the city of Kemerovo.

Seven and 1 / 2 - Features a national ruleza 2 or ordered motion of electrons.

Seven and 1 / 2 - Guide for consumers of beer.

Seven and 1 / 2 - What if your computer does not work (Instructions for Hacker).

Seven and 1 / 2 - Guessing on cockroaches (Advice to a beginning hunter).

Seven and 1 / 2 - Instructions for use with a ballpoint pen.

attempt at writing - Poems Bazhenova: Candles, Confusion, Fall, Bezishodnost.

attempt at writing - Many Adventures of Winnie the Pooh (Part 3).

attempt at writing - Daily Hacker ordinary.

Advertising - Advertisements and announcements ...


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

Similar articles:
CC'999 Report - Report of Peter Sobolev's get-together scene.
Iron - Once again, the protection circuits KR1818VG93.
Feedback - contact the publisher.
Everything - the interview is very familiar to all group FLASH Inc.
Nove - A list of new software, which appeared in Brest in December.

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