ZX Pilot #38
31 мая 2000

Coding - write an unusual news ticker.

<b>Coding</b> - write an unusual news ticker.
   Hi everyone! I hope I do not strongly
"Gored" by their clever izmyshliniyami on
theme running lines and all. If you have a specific answer 
"Yes" - then immediately press ENTER and vyvalivayte from 
section (just kidding), otherwise you may take a couple of 
validol, a couple of cigarets to calm the nerves and a couple 
of drinks to lift the spirit. Get started! 


                 Complex.


   By running the lines can be difficult to classify such a 
thing as the framing of something literal string. It is not 
necessary to call complex, a line from a commercial break in 
the Field Wonderland! There are gentlemen of OUTLAND corp. 
stuck four roller for standard lines and not tricky conversion 
from sliding'om on the corners. Complex line - as a con table

consecutive pixel kordinat, which are created through the 
tedious collection of DEFB. The simplest example of this action:



      1234567890123456
# 480A

    1 .............

    2 .. ..

    3. ..

    4. ..

    5. .... .

    6 ......



   Position # 480A - is a point 0 in the reference system of 
coordinates, respectively the first point of our lines will be 
(x, y) [2,5], the next will be [2,4], etc. etc.

Tepericha to create a simple recalculation of the line and see:

   - Recalculation made by familiarity - is
jerks;

   - Recalculation made by pixel - the letters
stratify.

   And now, as he had to do ...

   Pixel coordinates are taken on the above scheme, for 
simplicity, we can take through a single point, and then you 
will need to write letters to each of the fourth coordinate in 
four stages. 


   1) 1 .. 4 .. 7 .. 10 <

   2) 2 .. 5 .. 8 .. 11 cycle

   3) 3 .. 6 .. 9 .. 12

   4) 4 .. 7 .. 10 .. 13


   That's it! On the edges of your lines
(So ​​that the whole thing looked), you need to put 
_standartnye_ Stones. Can be done and not through a pix, but 
every pix - is chu-u-ut is smooth, but a lot more fuss.


   Take a break for the order "pohimichit with PILOT'ami ... ;-)

-
   This is a place specifically set aside in order to VEL
'Ko to criticize the writing. : O)
-

              Super-complex.


   In order not to deprive you of pleasure to develop this 
theme, I will address only the curb line. In one recent (disk) 
Revyuh, were told about how to run the text on the curb, but it 
should be noted What is written considerable amount of nonsense

sivoy mare ... :-)

   To begin, we need the line for
this from the address # X000 fills the first pix
line, # X100 - the second, etc. at # FF lines
Each pixel has a width of three and familiarity can be set from 
# 00 to # 07. So also keep in mind that the width of line 14

curb-pixel:

START LD C, # FE; Port

        LD H, # X0; Senior nibble start

                ; Line.

        LD E, # 00; Junior nibble start

                ; Line (shift).

        DUP ZZ; output ZZ lines, zone types
              ; Torus.

        LD L, E

        OUTI

        OUTI

        OUTI

        OUTI

        OUTI

        OUTI

        OUTI

        OUTI

        OUTI

        OUTI

        OUTI

        OUTI

        OUTI

        OUTI

        INC H

        NOP

        NOP

        EDUP; End of repeat.

        XOR A

        OUT (C), # 00

        LD BC, # 7FFE; Space pressed?

        IN A, (C)

        AND # 01

        JP NZ, # XXXX; Go to # XXXX

        RET


   It seems that further comments
unnecessary, although I still add. The string length can be 
much more than what that is visible on the screen. To view the 
full required to smoothly vary the contents of Register E at 
the entrance (Jr. nibble of the address line). Go to the 
address in # XXXX end of the line is carried out on your prog. 
Time is complete, and during this time You can run the screen 
hefty running line, and EQ on all registers. Naturally, the 
line to throw shorter, because at the top of the screen it be 
crumpled. This can be done with LDIR'koy 0 0 address on the 
length of the multiple 14 or 28. And yet, reducing kolichevstvo 
podprog to minimum, and it will be like yesterday. :-)



                             Alex Merkulow

                              Sewerodwinsk

                       Z-Zero SYSTEMS inc.

                                  18/II-00




Other articles:

News - News from the Kovrov spektrumistov.

Topic - A Conversation with Justinas'a SerzhSoft'om of Shadrinsk and Firex'om / Mayhem from Tula proizoschedshaya on Chaos Construction 2000.

Topic - A conversation with renowned artist Fil / Antares proizoschedshaya on Chaos Construction 2000.

Topic - A conversation with one of the organizers FunTop'98 and editor Nicron - Wlodek Black'om from Moscow.

Topic - SIR-X'a reflections about the sorry state of affairs with Spectrum software.

Imagination - Twilight of the Gods (the original idea of Igor Bogdanov).

Iron - describes the new sound card for Spectrum DMA UltraSound Card and its comparison with the DMA Sound Blaster.

Coding - write a simple news ticker.

Coding - write an unusual news ticker.

about different - Organism'a letter about the plight of Spektrumistov outback.

Hints - Passwords for games: Tower Pod, Clocks head Cracker.

Advertising - rekalama and announcements about the sale of Spectrum Varese.

Credits - the names of the founders of the newspaper.


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

Similar articles:

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