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

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

<b>Exchange of experience</b> - Features video controller ZX Spectrum (for programmers).
     (C) Ivan Roshchin, Moscow, 1998

Features video controller ZX SPECTRUM


     What will be seen on the screen, if we write to the 
addresses # 4000 - # 57FF any information, and attributes 
reset? And if zero # 4000 - # 57FF and install PAPER equal to 
0, and INK how you like? Common sense suggests that in fact, 
and in another If we do not see anything at all. All

this is so, but the following program
proves the opposite.


         LD HL, # 5800

         LD (HL), L

         LD DE, # 5801

         LD BC, # 2FF

         LDIR

         LD HL, 0

         LD DE, # 4000

         LD BC, # 1800

         LDIR


         LD BC, # 7FFD

         LD A, # 17

         OUT (C), A


         LD HL, # C000

         LD (HL), L

         LD DE, # C001

         LD BC, # 17FF

         LDIR

         LD HL, # D800

         LD (HL), 7

         LD DE, # D801

         LD BC, # 2FF

         LDIR


         LD BC, # 7FFD
 M1 LD A, # 18

         OUT (C), A

         LD A, # 10

         OUT (C), A

         XOR A

         IN A, (254)

         CPL

         AND 31

         JR Z, M1

         RET


     This program fills in the 1 st screen contents ROM and 
resets the attributes (such way, the screen can not see 
anything), then clears the 2 nd screen and sets He attributes 
July INK, PAPER 0 (on 2-m screen can not see anything). The 
program then begins to rapidly switch between the 1 st and 2 nd 
screens, and here we see the following picture: 



             - - -

              - - -

               - - -

                - - -

                 - -

                  - -

            - - -



     Apparently, the following occurs: at
displaying an image on screen bytes from a screen memory, 
together with his attribute falls into a special shift register

but it may happen that the video controller will take a byte 
from the screen memory 1 screen, and then the program will 
switch the screen and the attribute byte is taken from the 
already 2 nd screen (or vice versa). In both cases, the screen 
shows white streaks. 

     I wonder whether this effect is observed
on other computers, but "Pentagona128? And the emulators? Can 
we find for it any use?



     Now we'll show you how I discovered this
effect. It was like this: I wrote a program
that show some picture on the
1-m screen, and then displays the following
Zoom in on the 2-m screen, and then again at
1-m, etc. Here's how this program works
(Active screen isolated double frame):


     1) A 1-m screen, some picture on the
2-m screen with another picture, hidden under
attributes INK 0, PAPER 0.



     2) Clear 1-th screen and set
7 INK, PAPER 0.



     3) Turn on the 2 nd screen, and on it at
moment, a horizontal white
line length of about 8 pixels.



                                 -



     4) After HALT 'and for the pictures on the 2-m
screen, set its attributes.



                   *







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:
Review - an overview of new additions to the markets of Moscow: Navy Seals, Abadia, Pirates, Wild West Seymour. As well as English hit parade of the best games late 80's - early 90's.
Topic - Musical ability ZX-Spectrum: What was, what is and what will happen.
Mozgomoechnaya - Reviews of Games. At the end of each game shall be FINAL CUT. Although not very large, but is required!
Projects - the revival of "Azerbaijan National Fund Spectrum (HFSP).

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