Adventurer #08
31 августа 1998

Exchange of experience - the procedure output window frame.

<b>Exchange of experience</b> - the procedure output window frame.
     (C) Ivan Roshchin, Moscow, 1998


     Bring to your attention a little
(44 bytes), but very useful procedure
OPEN_W, which depicts the on-screen window frame. It is easy to 
modify, specifying any of the characters for the image frame

and fill the window.

     When it is invoked in the register pair DE
need to specify the coordinates of the upper-left
angle frame, the register B - height, C the width of the window 
(in characters): 



             ^

             | E

          D v

        <---> ^

                           |

                           |

                 Window | B

                           |

                           |

                           |

                           v

             <----------->

                   C



     When using this procedure
your program must be present and
how to print a single character. It is assumed that it is 
called PRSYM and it is called in the code of the battery

printable character, and in DE - coordinates
Print (D = X, E = Y). After finishing work
procedures PRSYM registers should not be changed.

     Text of procedure PRSYM not presented here. In the end, if 
you need to withdraw a window and something in it to print, 
then the procedure of printing the symbol you should already be.


OPEN_W LD A, ""; the upper left corner of the

        LD L, ""; upper right corner of the

        CALL OPEN_W2
OPEN_W1 LD A, ""; vertical frame border

        LD H, ""; this character filled

                      ; Window

        LD L, A

        CALL OPEN_W3

        DJNZ OPEN_W1

        LD A, ""; the lower left corner of the

        LD L, ""; the lower right corner of the
OPEN_W2 LD H, ""; horizontal border frame
OPEN_W3 PUSH DE

        CALL PRSYM

        INC D

        LD A, H

        LD H, C
OPEN_W4 CALL PRSYM

        INC D

        DEC H

        JR NZ, OPEN_W4

        LD A, L

        CALL PRSYM

        POP DE

        INC E

        RET


               *






Other articles:

From the Author - help: New bugs in the new shell.

From the Author - the author: about the authors of the magazine.

Presentation - Content of the program: Installer to AUTORUN DISK v2. 0 adventyurnaya game Diamond.

Presentation - a program for protecting programs TRICK v1. 003b.

Presentation - HELP Z_80: User's Guide.

Interface - letters from readers: Black Raven, The Secret Game NEW DIZZY, On the errors of the game APOLLO, a new debugger Veros STS 6.2, How to beat the game Svyatogor.

Interface - PC vs Amiga: Is AMIGA RULEZ? First impressions neophyte.

Interface - support for producers of "iron" their "creations" after they (the creatures) get into the hands of users.

Interface - thinking out loud: "SPECCY computer for young people. If we have so many cool coders, why so little steep domestic soft'a?"

Interface - pens from CAV inc: "SPECCY it does not work, this rest is, even more than the rest, it's a lifestyle, and if by that you still manage to get the money. .. "

Interface - SPECCY pros and cons, Reflections Spy / Eternity Industry.

System - Overview of system programming: ZX-IBM Editor v1.5M, PPF v1.05, Multistudio v2.0p, Mods Player v2.0, Bitmap Viewer v2.0, Corrector v2.0, Storm v1.1, 866 v1.2, HRUM v3.5, TDU v1.0, HRUST v1.0, RLE-Compressor v1.21, Overlays Consul Commander.

Toy Review - An overview of new gaming software: Rabbit Jazzy, Quadrax, Komplex, Math of the day, Cue Boy, Zly Sen, Prva Aakcia, Outlaw, The Dark Empire, Gary Linekers.

Toy Review - Demos: Little Ghost, The Dark Empire, Worms, Smagli 3 Monster Land, Civilization, Mysteries of Captain Shelton.

Guests - Presentation of a group of Kovrova - Eternity Industry.

Guests - Filix about creating games Winnie The Pooh-2.

Guests - ekstremalschiki: new section which highlights aspects of the life and work of extreme Rybinsk musicians. Today, a visit Marat and Demon - stood at the origins of such well-known (in the narrow circles) team "Disgust".

Promotion - How to play the game Encyclopedia of WAR.

Promotion - the passing game Where time Stood Still.

Promotion - description of the game Elopement: back to the Earth.

Promotion - the passage of text adventyury Island of Darkness (Island Darkness).

Promotion - the passage of text adventyury Knightmare.

Exchange of experience - Russian glitches: The Island of Darkness Game (how NOT to write adventyurnye game).

Exchange of experience - Finalization ZX-ASM v3.0 by Ivan Roshchina.

Exchange of experience - Features video controller ZX Spectrum (for programmers).

Exchange of experience - Graphic effect IRIS (plasma).

Exchange of experience - the procedure output window frame.

Exchange of experience - on how to operate in the assembly with the long numbers of type Long.

Exchange of experience - Art Studio and the principle of open architecture (how to write their own modules to the editor).

Exchange of experience - The movement procedure of attribute labels in pixels (floating atrubuty).

Ottyag - A Tale of Pentium Pentiumovicha Pentiumova. 20 things you can do if your favorite team lost on the road. Toilet, as a measure of human values.

Ottyag - Test "Formatsevt, check for authenticity."

Ottyag - Test "You are not dumb ass."

Ottyag - The test "Do you have a sense of humor."

Ottyag - Test "Which of your student."

Ottyag - How to PROPERLY kill Windows'95.

Ottyag - Winnie the Pooh and all-all-all - 2.

Novella - Tales Corporal Djilali (the game Laser Squad).

Novella - Escape from Space (the game Elite).

Novella - Hedgehogs mutants.

News - News from the Rybinsk spektrumistov: Infosoft, Shrsoft, Surgeon, Chasm, Protecvision, Groboclone, Volume 4, Experience, Mr. Vano, Ant, Demon, Miguel, Veka, RDM, Auryn.

News - News from the Yaroslavl spektrmistov: Marchy, Kav Software, Nicolas Viper, Dr Shura, Harkonnen, MacKeymn, DJ Reason.

Advertising - advertising and announcements.


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

Similar articles:
From the authors - Mail in BODY.
Interview - Znakostvo with Rybinsk group Infosoft Group.
Detective - "a recipe for a murder."
Thoughts - On the newspaper in Minsk.

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