ZX Format #01
31 октября 1995
  IS-DOS  

IS-DOS - Programmers: UniColor - Standard color settings in the programs of IS-DOS

<b>IS-DOS</b> - Programmers: UniColor - Standard color settings in the programs of IS-DOS
Category "Programmer's article"


              Eliseev VA


  UniColor - Standard color settings

          programs in IS-DOS.


    In order to standardize procedures for setting colors in 
the IS-DOS programs in recent years have increasingly used the 
standard UniColor, allows you to configure the color

Any program with a universal
Utilities unicolor.com. Therefore, when developing any program 
in the medium IS-DOS is preferable to use these standards to 
help users customize the system. 

    To ensure compatibility with
Standard UniColor all the colors of the program
should be collected in a special table called "vector UniColor".
The structure of this program is extremely
simple:


    The first four bytes are the so-called marker UniColor - a 
sequence of characters UnCo (# 55, # 6E, # 43, # 6F), in which 
the utility unicolor.com determines the location of the vector. 

    The fifth byte contains information about the number of 
available custom colors in the program. 

    Subsequent bytes in an amount determined by the fifth byte 
of the vector represent the color codes in the standard IS-DOS 
format: 

bytes 0 - 2 - color ink
Bytes 3 - 5 - paper color
Byte 6 - Brightness
Byte 7 - shimmer


    Total possible to set custom colors to 16. Subsequently, 
the program necessary colors are transferred from the vector

UniColor a vector corresponding to the window,
or passed as parameters in the
registers of the processor by conventional methods.

Example: code fragment, containing
vector UniColor.

;****************************************

START JR BEGIN

COL DEFM "UnCo"; Marker UniColor

       DEFB # 04; number of colors = 4

       DEFB% 00111000; color box WIN1

       DEFB% 00000001; shadow color WIN1

       DEFB% 00001101; color box WIN2

       DEFB% 00000001; shadow color WIN2

BEGIN LD IX, WIN1; vector W1 in IX

       LD HL, (COL +5); transfer of color

       LD (WIN1 +4), HL; windows and shadows of

                       And the vector UniColor

                       , The vector window W1

       LD IX, WIN2; vector W2 in IX

       LD HL, (COL +5); transfer of color

       LD (WIN2 +4), HL; for WIN2


                ........

WIN1 DEFW # 0415

       DEFW # 0806

       DEFB% 00000000

       DEFB% 00000000

       DEFW # 0000

WIN2 DEFW # 0404

       DEFW # 0806

       DEFB% 00000000

       DEFB% 00000000

       DEFW # 0000

;****************************************





Other articles:

IS-DOS - Information: The news in the world IS-DOS

IS-DOS - a beginner: IS-DOS - the first acquaintance

IS-DOS - users: A short guide on system drive IS-DOS

IS-DOS - Programmers: UniColor - Standard color settings in the programs of IS-DOS

IS-DOS - programmers: Window System IS-DOS

IS-DOS - Programmers: Program gmen.com

Iron - Revised:-lock to port # 1FFD on Scorpion ZS-256

Iron - The provinces of: brake KAY'ya

Iron - Manufacturer: KAY

Iron - Manufacturers: Scorpion ZS 256

Toys - Novella: Crystal Kingdom Dizzy

Toys - on the shelves: Bulls and Cows

Toys - on the shelves: a UFO. Enemy Unknown

Toys - What's New: Overview of new products

Interview - Old friends: A Story of Glory Mednonogova on its activities as a programmer

Information - From the authors

Contest - Competition for the Competition

Contest - Levels of Laser Squad

a rest - Something: one day in the life of a programmer

Mailbox - Classified Ad

Mailbox - Exchange of experiences: Cheats

Mailbox - Letters Game

Premiere - Color Lines

Programmers - Basic for All: Basic programmers

Programmers - Assembler: Assembler for Dummies

Programmers - Systems: Editor missions to the game Laser Squad

Miscellaneous - Amiga: Amiga History

Miscellaneous - Outlook: Toy


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

Similar articles:
Desktop - Short description: A macro-assembler debugger "ALASM 2.8".
Everything gradually - On the new modes of BBS STS'a.
Schedule BBS - schedule Grodno BBS.

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