ZX Format #06
29 июля 1997

Programmers - the exchange of experience: programming Multicolor effects.

<b>Programmers</b> - the exchange of experience: programming Multicolor effects.
  Manufacturing multicolor

music by DNK
(C) MIK. VIRT GROUP.
_______________________________

 This article is a direct logical
continuation of the previous dedicated to curb the effects. 
Therefore, for the best understanding set out below, I advise 
you 

  read the previous article.

 Part of the first and only.

 Multicolor can be defined as such
presentation graphics, and
which with the help of software tools
achieved in obtaining a familiarity
more than two colors. Note:
Please note that receipt of
more than two colors within the byte
owned by familiarity, nevozmozhmo
by the following type of technology.

 Now it's time to move to a description of the technical side 
of multicolor. As I noted earlier, the principles of the 
curb-effects and multicolor similar. The most problematic

is fixing them in time.
The very existence is based multicolor
on the fact that the construction of each line
the main screen, ULA (group Chipset
Responsible for graphics output) re-
reads the information from the attributes and
If, after the construction of a fragment of the screen,
before the start of construction of the next line
replace the data describing these lines,
then the next line will be constructed in accordance with new 
data about the attributes. So, in order to obtain multicolor, 
you need to make the following steps:


 1. Wait for the signal INT.
 2. Pause before the start of
construction of region of interest (on
actually lower at the time that you
necessary to transfer the necessary information
In the Attributes).
, 3. Wait until you have replaced the attributes will be built.
 4. Throw in their place the new data.
 5. If necessary, pause =
When you build a single line - the time
spent on items 3 and 4.

  6. Cheerfully proceed to step 3.
 7. Do something useful.

 By tradition, will not clog your head
empty writings, and immediately move on to the suit.

 Arrange in a multicolor line of zero ,0-5
familiarity.


  ORG # 8000

       DI

       LD HL, # BE00

       LD DE, # BE01

       LD BC, 256

       LD A, H

       LD (HL), # BF

       LDIR

       LD I, A

       LD A, # C9; Processor

        LD (# BFBF), A; interrupt

       IM 2; command RET
MAIN EI

       HALT

       DI

       LD A, 63;!
LOOP1 DS 52, 0;!

       DEC A

       JR NZ, LOOP1
; Loop waiting for constructing
; Border, the time depends
; The type of computer


  LD HL, DATA

       LD A, 8
LOOP2 LD DE, # 5800

       LDI; 16

       LDI; 16

       LDI; 16

       LDI; 16

       LDI; 16

       LDI; 16
 ; Transfer attributes


  LD DE, 0
 ; No significant team
 ; Needed something to spend
 ; Time


  DS 23, 0;!

   , Waiting up to 224 cycles (for
 , So most Comper
 ; Building line.


  DEC A

       JR NZ, LOOP2


  LD A, # 7F

       IN A, # FE

       RRA

       JP C, MAIN


  IM 1

       RET

DATA DB ......
; Data about the attributes.

 All time delay in this example
made under the Scorpion. If you have another type of computer 
you'll have to choose the numbers in the rows marked with (!). 

 Actually, that's all you can say
this issue and I hope that you will be able to apply this 
knowledge. _______________________________






Other articles:

Today in the room - the contents of the magazine.

Authors - The authors of the journal ZX-Format No.6

From the authors - the long awaited event finally happened ...

Toys - The last iron (short story on the game 48 irons).

Toys - Many Adventures of Winnie the Pooh. Part Two.

Toys - the game description The Crypt (Castle Master 2).

Toys - description editor Adeventyur - PAW (Part 1).

Toys - description editor Adeventyur - PAW (Part 2).

Toys - description editor Adeventyur - PAW (Part 3).

Toys - description editor Adeventyur - PAW (part 4).

Toys - description editor Adeventyur - PAW (Part 5).

Programmers - Beta Basic: continued talking about BASIC (Part 2).

Programmers - General Sound: Programming Guide.

Programmers - MMD - the driver. Description of the structure of the modem driver for the terminal program MMD.

Programmers - AI on B. Mednonogova. A detailed description of the "wave of the algorithm" trace (automatic calculation of optimal) path, with an example implementation at Basic.

Programmers - Artificial Intelligence. Continuation of a series of articles about "AI". General basis for finding the way to goal.

Programmers - Tr-Dos for programmers. Max Petrov concludes his story about nontraditional methods of work with the disk.

Programmers - sharing experiences: "3-colour". Description of the effect of colors on 8-point ", help to the viewer, and how many words on the conversion of images in format "3-colour".

Programmers - sharing experiences: "3-colour". A few words about converting images in the format of RGB.

Programmers - the exchange of experience: programming Multicolor effects.

IS-DOS - users: how to personalize your system IS-DOS on a specific model of ZX Spectrum-compatible PC and to perform your tasks.

IS-DOS - users: how to copy the system disk IS-DOS and stay with the dead.

IS-DOS - the programmer: a short course - programming in IS-DOS.

IS-DOS - news: new software IS-DOS.

Iron - A short story about the capabilities of the processor Z-180.

Iron - Multiviewer. Description dorabotochki allowing to measure the speed of programs to curb without climbing in the codes - an easy push of a button.

Iron - A new project the firm Peters - "Sprinter". New Spectrum-compatible PC with a new generation of Speccy.

Iron - Opinions about skorpionovskom controller IDE HDD - SMUC.

Iron - SuperSpectrum: one project Spectrum-compatible machines. Its feature is compatible with the PC.

Iron - X-Trade FAQ. Answers to frequently asked questions on the GS and XTR-modem.

Premiere - Flash tracker. Description 4-channel editor of digital music, working with SoundDrive, from the author SoundDrive - Flash Inc.

Premiere - Description of the latest version of the universal terminal program used in SpbZxNet.

Premiere - Mortal Kombat: what awaits you in the full version of the game and some comments to the demo version.

Premiere - XReversy: presentation of a new toy from the popular family of "Solve puzzle - see the picture."

Interview - An interview with one of the most famous spektrumistov - Andrew Larchenko.

It was you - The story "Absolute Power".

It was you - The story "The Road".

It was you - Lord of the teeth: a parody of a popular trilogy ...

Mail - Contact us: an e-mail Alex'a from Nizhny Tagil, exhibited in the last room at the Corner of lamer. "

Mail - Letters from readers: Andrei Yakovlev, Denis Tokarchuk, Alex Garkulim, Alexander Gordeev, Evgenii Shumilov Nitochkin Vadim, Michael Larkin.

Mail - free advertising and announcements.

Miscellaneous - Scarecrow.: Nemo talks about the place of the PC and Spectrum in the modern Russia.

Miscellaneous - Review of Nemo in the book on digital circuitry. For anyone who has ever ever been tempted to turn on the soldering iron and ...

Miscellaneous - Questionnaire: Results of our poll spektrumistov.

Miscellaneous - Competition. A brief account of our contests.

Miscellaneous - The problems of the software market: when zagnetsya Spectrum. All over whether to blame hackers?

Miscellaneous - Outlook software. A brief overview of the forthcoming software: Fast Tracker, Pro Sound Creator, Black Crow.

Miscellaneous - Outlook software. Adventyura From Beyond or outside. "

Miscellaneous - A Memoir of the Peter modem network for ZX Spectrum - SPbZXNet.

Amiga Club - Between Us, by users: a comparison of characteristics of the Amiga 1200 with the IBM PC.

Amiga Club - compare the performance of Amigo and PC. As far as Amiga relevant in today's games?


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

Similar articles:
reader-reader - On the hardware, software and Other Computer Profi ...
Claims - showdown with Sailor'om about ZX Net in Lugansk.

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