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

Studies - I. Komandin. The program display screen.

<b>Studies</b> - I. Komandin. The program display screen.
(C) Komandin Ilya (ZX-MANIACS),
Kaluga.


   I would like to offer a program
display screen vertical
columns in a chaotic manner
(The picture should be placed
at BUFF).
1410.
; (C) ZX-MANIACS'1996
; SPECIAL FOR INFORCOM

          ORG 40000

          ENT
BUFF EQU 41000

          LD HL, TABL

          LD DE, TABL +1

          LD BC, 255

          LD (HL), 0

          LDIR

          XOR A

          LD (COUNT), A

          LD HL, BUFF

          LD DE, # 4000

          SBC HL, DE

          LD (DIFF), HL

          LD HL, 8000
NEXT PUSH HL

          LD C, (HL)

          LD A, R

          AND 63

          XOR C

          LD C, A

          LD H, 0

          LD L, A

          LD DE, TABL

          ADD HL, DE

          LD A, (HL)

          OR A

          JR NZ, CONT2

          LD (HL), a

          LD A. (COUNT)

          INC A

          LD (COUNT), A

          XOR A

          CALL 8880

          ADD A, A

          ADD A, A

          ADD A, A

          ADD A, 70

          LD (BITP), A

          ADD A, 64

          LD (RESP), A

          LD (SETP), A

          LD B, 192
LOOP LD DE, (DIFF)

          ADD HL, DE

          DEFB # CB
BITP NOP

          PUSH AF

          SBC HL, DE

          POP AF

          JR Z, CONT

          DEFB # CB
SETP NOP

          JR CONT1
CONT DEFB # CB
RESP NOP
CONT1 CALL DOWN

          DJNZ LOOP
CONT2 POP HL

          DEC HL

          LD A, (CONT)

          CP # FF

          JR NZ, NEXT

          LD HL, BUFF

          LD DE, # 4000

          LD BC, 6912

          LDIR

          RET
DOWN 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
DIFF DEFW 0
COUNT DEFB 0
TABL DEFS 256
2

  At the same time offering and simplified
version of the same procedure. The visual effect of it is not so
pleasant, but the length is much
less (do not need the table).
1410.
; (C) ZX-MANIACS'1996
; SPECIAL FOR INFORCOM

          ORG 40000

          ENT
BUFF EQU 41000

          LD HL, BUFF

          LD DE, # 4000

          SBC HL, DE

          LD (DIFF), HL

          LD HL, 800
NEXT PUSH HL

          LD C, (HL)

          LD A, R

          AND 63

          XOR C

          LD C, A

          XOR A

          CALL 8880

          ADD A, A

          ADD A, A

          ADD A, A

          ADD A, 70

          LD (BITP), A

          ADD A, 64

          LD (RESP), A

          LD (SETP), A

          LD B, 192
LOOP LD DE, (DIFF)

          ADD HL, DE

          DEFB # CB
BITP NOP

          PUSH AF

          SBC HL, DE

          POP AF

          JR Z, CONT

          DEFB # CB
SETP NOP

          JR CONT1
CONT DEFB # CB
RESP NOP
CONT1 CALL DOWN

          DJNZ LOOP
CONT2 POP HL

          DEC HL

          LD A, H

          OR L

          JR NZ, NEXT

          LD HL, BUFF

          LD DE, # 4000

          LD BC, 6912

          LDIR

          RET
DOWN 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
DIFF DEFW 0
2

  Both programs use the procedure DOWN Pavel Starkov
from Krasnoyarsk and Edward K., Andrey Vlasov from 
Rostov-na-Donu (ZX-REVIEW 95 / 4, p. 46). I intentionally did 
not disclose routine and made it a separate module, to show 
that it belongs to other authors. 







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:
From the Editor - The new rubric? ..
Humor - a compilation of anecdotes.
Answers to the letter № 79-85.
Nemo open letters № 5.3

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