ZX Review #5-6
04 ноября 1997

Studies - LED channel music processor. The procedure for cleaning the screen. Proposal for standardization.

<b>Studies</b> - LED channel music processor. The procedure for cleaning the screen. Proposal for standardization.
(C) Denis Borisov, Kstovo


   The first procedure is an indicator of channels of music 
processor. Yes, in the sketches have been published several 
options indicator, but a single attribute. Yes, and place the 
effect of rigidly defined for All three channels of music. 
processor. In our procedure address the effect can be set 
separately for each of the three channels.


   You can use the indicator
as follows: draw a picture for each channel has its own, and 
black INK PAPER, then when the indicator is highlighted in the 
picture INK'om depending on volume.


   The length of the procedure, 53 bytes,
Compare with previous versions. The indicator is calculated at 
16 gradations of volume and issue a

given familiarity screen color attributes INKa corresponding 
volume played notes also used BRIGHT. This

protsedurku we wrote together with
Alexey Nikolaev.
140.

          ORG 60000


          LD BC, # FFFD

          LD A, 8

          PUSH AF

          CALL LOOP1

          CALL PRINT1

          POP AF

          INC A

          PUSH AF

          CALL LOOP1

          CALL PRINT2

          POP AF

          INC A

          CALL LOOP1

          CALL PRINT3

          RET
LOOP1 OUT (C), A

          IN A, (C)

          AND 15

          RRA

          RET NC

          ADD A, 64
And if BRIGHT do not, then remove

          RET

; Addresses screen attributes
; Channels A, B and C. We can add; vit 3 10-15 familiarity on
; Channel.

PRINT1 LD (22528), A

          RET
PRINT2 LD (22529), A

          RET
PRINT3 LD (22530), A

          RET
2

   Addresses for the channels selected
for example, and can be any
others.


   Next protsedurka is clear the screen.
Such or similar software, I
(DENWER-DEN) in the Revue are not met.
This program from I tore out of the game
COMANDO TRACER and 40% recycled. What came out of it,
judge you.

   Now about the program. After
Launch the program established
black construction paper and bright white ink, then the picture 
becomes smoothly move from the screen edges to the center to 
complete disappearance. 140.


          ORG 40000

          ENT


          LD HL, 22528

          LD DE, 22529

          LD BC, 767

          LD (HL), 71

          LDIR
METKA LD IX, 61952

          LD B, 96

          LD L, 255

          LD H, 0
L2 LD (IX +0), H

          LD (IX +1), L

          DEC L

          INC IX

          INC IX

          DJNZ L2

          LD B, 96
L1 LD (IX +0), H

          LD (IX +1), L

          INC L

          INC IX

          INC IX

          DJNZ L1

          LD B, 0
MET PUSH BC

          LD IX, 61952

          LD B, 0

          LD HL, 16384
DEN1 LD A, (IX +1)

          ADD A, (IX +0)

140. LD (IX +1), A

          CALL C, DEN2

          CALL LOOP1

          INC IX

          INC IX

          INC B

          LD A, B

          CP 192

          JR NZ, DEN1

          POP BC

          DJNZ MET

          RET
DEN2 LD E, 15

          PUSH HL

          SRL (HL)

          INC L
DEN3 RR (HL)

          INC L

          DEC E

          JR NZ, DEN3

          POP HL

          PUSH HL

          LD A, L

          ADD A, 31

          LD L, A

          LD E, 15

          SLA (HL)

          DEC L
DEN4 RL (HL)

          DEC L

          DEC E

          JR NZ, DEN4

          POP HL
LOOP1 INC H

          LD A, H

          AND 7

          RET NZ

          LD A, L

          ADD A, 32

          LD L, A

          RET C

          LD A, H

          SUB 8

          LD H, A

          RET
2

   I hope you enjoy these
Two small protsedurki.


   Now about the issue, which
has been raised repeatedly in the pages of ZX-Revue. 
STANDARDIZATION. All correspondents offer (in

Basically all) to standardize
our good old SPECCY, system connector, Kempston, co-processor, 
etc. etc. Gentlemen, at this stage it is unreal!


   Look how many species we have the Spectrum will not be 
mistaken if we call the number 30 or 40. And to hope that

users of these computers
abandon them in favor of standardized offspring, which we 
propose to have a joint effort at as unreasonable.


   My proposal is as follows. Must
make custom programs
and not alter them at the computer. That is, in the software 
itself installs the module is located (or the whole program is 
a preference), which during the initial startup requests 
configuration data computer or keeps track of the

automatically. Then, create a working version of the program. So
properly solved two problems: the question of compatibility and
the issue of illegal copying.
Since after the program settings on your computer and
destruction of the installing the module program is unlikely to 
work on another computer. 


   Ca. Ed.: Good, but not a new idea.
Look at programs such as Alasm
v3.5. There's a compatibility issue solved easier than the 
suggested Denis, but the system drivers more flexible. Thus, 
the users' best interests, even very specific (rare) computers. 
After anyone can write drayverok for themselves.

Now imagine if this task
shoulder programmer, writer
program. He did, in your opinion, MUST
know all the possible configurations that
basically impossible. But when writing a program it must ensure 
its work on the most popular cars, which he did

author Alasm'a.


           *






Other articles:

Adventure Project - Design and razrabotaka Adventyurnyh and RPG games.

Adventure Project - Russification adventyur.

TR-DOS for beginners - Continued.

Authoring - Scorpion 2000 (S. Zonov).

Authoring - Trampoline (S. Veremeenko).

Business Card - a new electronic humor magazine "SpectrofUn".

Crossing Dragon - Promotion of the game Finders Keepers.

Crossing Dragon - Promotion of the game Knight Tyme.

Crossing Dragon - Game Promotions Spellbound.

Crossing Dragon - Game Promotions Stormbringer.

Retro - 40 best procedures: Merge images, rotation of the symbol clockwise Inverting character, changing the attribute, fill circuit construction templates (Dzh.Hardman, E. Hyuzon.).

Expert Tips - Total Eclipse 2.

Expert Tips Super League.

Forum Games - Description of the game land of myths.

Forum Games - Passage Renegade.

Forum Games - Subtleties trading game Elite

Forum - Studying and debugging @ files using STS 5.1. Features of debugging using a monitor STS. Bugfix STS 5.1.

Forum - compression programs.

forum - Reduction in the time format. On the recording sectors while formatting. Rebuilding the screen for one interrupt.

Forum - Features assembly ZX ASM 3.0.

Forum - As for the BASIC compiler "Blast".

Forum - With regard to relotsiruemyh programs.

Forum - Program "Flame" and "Dragon."

reader-reader - TR-DOS: how to avoid mistakes?

reader-reader - The effective work with the drive.

ethidium - The calculation of addresses in the file attributes. Program scrolling specified window 1 pixel to the right. Cleanup of the specified window. Procedure display images from the buffer.

Studies - LED channel music processor. The procedure for cleaning the screen. Proposal for standardization.

Studies - A set of eight programs of "extension" screen. Two procedures are manifestations of the screen.

Studies - New themes for development.

Studies - Playback software tool from the editors of digitized music.

Studies - processing program @ BASIC files.

Studies - The procedure for turning the symbol 90 degrees clockwise.

Studies - The procedure for searching text files.

Studies - Screen procedure "UP HL".


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

Similar articles:
Events - Report: International Festival of Computer Arts 'Chaos Constructions 2005'.
Authors - Addresses the publisher.
Advertising - advertising and announcements.

В этот день...   21 November