ZX Review #5-6
04 ноября 1997 |
|
Studies - 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:
Similar articles:
В этот день... 21 November