ZX Review #3-4
22 июля 1997

Studies - E. Volchkov. Improvement routines address calculation system on display file.

<b>Studies</b> - E. Volchkov. Improvement routines
     address calculation system on display file.
(C) Evgeniy Volchkov (Hacker
Rowdy), Chita, 1996.


   In those days, when I was still with
an effort understand Assembler I
fortunate enough to buy the first
that series of books on the chart.
Very useful program, which was published in the book, was 
calculated address in the file system on display at

coordinates specified in the familiarity. In the original, as 
you know, of course, it looks like this: 140.


     LD DE, (COORDS)

     LD A, E

     AND # 18

     OR # 40

     LD H, A

     LD A, E

     AND # 07

     OR A

     RRA

     RRA

     RRA

     RRA

     ADD A, D

     LD L, A
2

   After I had, not without the help of your literature, 
increased their knowledge of Assembler, I stumbled once again 
on this program and command near OR A with surprised to read 
your comment Reset flag CARRY ". But

before OR A stands AND # 07, which, following the book "ZX 
Spectrum ' TR-DOS ", always, regardless of the result,

Resets flag CARRY, ie this
small sub can be used with equal success,
but simply removing OR A. In addition, the length of the 
routines can be reduced if the supply 3 bits, indicates the 
number of series, on its place with the command

RRCA. Thus, 5 teams:
140.

     OR A

     RRA

     RRA

     RRA

     RRA

replaced by 3:


     RRCA

     RRCA

     RRCA
2

   We win in two
areas - subtract two bytes of a routine that even without
that is small, and reduces
during her performance (although not much, but for dynamic games
it may be useful).

********************************





Other articles:

TR-DOS for beginners - Part 1.

Authoring - General Sound - Multimedia for the ZX Spectrum!

Business Card - Introducing the new electronic journal "Major Wares" (c) Codebusters & VMG

Computer novella - Knight Lore "legends of chivalry times."

New Programs - I. Roshchin. HELP_Z80. Davydov. Catalog's Base v1.8.

description of the shell of the journal "ZX-REVIEW"

Crossing Dragon - Aavlon, Castle of Dreams, Erik the Viking.

Crossing Dragon - Eureka!, Eye of Bain, Kentilla.

Crossing - Sherlock, Apollo, Shadows of Mordor, Rigels Revenge, Temple of Terror, ID, That's the Spirit, Return to Ithaka.

Retro - Dzh.Hardman, E. Hyuzon. Top 40 procedures.

Expert Tips - Castle Master.

Expert Tips - Firelord.

Expert Tips - Stonkers.

Forum Games - Insult Megademo, Catch 23, Livingstone, Rock Star ate my Hampster, UFO-2: Devils of the Abyss, Terminator 2, Venturama, The Spririts, Nipper, Sweewo'S World, King's Bounti -2, Hacker 2, Black Magic, Satcom, Star Heritage.

Forum - A. Gura. Code programmer.

Forum - A. Strelnikov. Prospects of development of ZX Spectrum.

Forum - Davydov. According to materials published in the ZX-REVIEW: Some issues related to autostart BASIC programs. Redefine Keys. How to print 42 characters per line. The procedure of multiplication HL = B * C. Refinement cloning downloaders. Mini-driver disk.

Forum - With 'Light'. Music processor ZX-Speccy.

Forum - Dmitry Fyodorov: Print images with a mask with pixel precision. Algorithm for calculating the address coordinates to within a pixel.

Forum - I. Roshchin. Sharing ZX ASM 3.0 and STS 5.1.

Forum - M. Bekarev. The calculation of the address display area of familiarity, and vice versa.

Forum - VP Fedin. Refinement Profi for conflict-free peripheral connectivity.

Forum - S. Astrov. Pseudorandom number generator.

reader-reader - V. Sirotkin. Protection program (look at the problem).

reader-reader - I. Roshchin. Display driver for the computer, "Pentagon-128.

Studies - A. Savinov: The procedure for displaying a double-height characters. Procedure "dissolution" of characters.

Studies - A. Urzha. The procedure for drawing a circle.

Studies - V. Sirotkin. Program checksum.

Studies - E. Volchkov. Improvement routines address calculation system on display file.

Studies - E. Frost. Running line.

Studies - I. Komandin. The program display screen.

Studies - I. Roshchin. Two graphic effect.

Studies - M. Lazutov: The modernization program font. Program encode / decode block codes. The effect of the attributes.

Studies - O. Smolyankin: Procedures for cleaning the screen. Output of text messages on the screen.


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

Similar articles:
Exchange of experience - Game Making 2: The various methods for deriving sprites (based on the game Full Shit).
Promotion - description of the game Elopement: back to the Earth.
Inferno - Letters to the Editor.
Scene - from party to party Cafe'03 and FOReVER 5 party reports and comparision.

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