ZX Review #5-6
04 ноября 1997

Forum - With regard to relotsiruemyh programs.

<b>Forum</b> - With regard to relotsiruemyh programs.
            FORUM



(C) Ivan Roshchin, Moscow, 1997

About relotsiruemyh programs


   After reading several articles in
ZX-REVIEW on relotsiruemym program, I noticed that
to determine the base address
usually uses the following
way:
140.
CALL # 007C; at this address - RET.
DEC SP; Since in the stack is
DEC SP; return address.
POP HL; Remove address from the stack.
2

   This method has several drawbacks:

   - If during this
fragment program will
interrupt, the stack will be corrupted, resulting in
obtain an incorrect address. Therefore,
have to remember the state of
trigger an interrupt, restrain
interrupt and then restore the old regime of their work.
All this leads to additional costs of memory.

   - Method does not work if
at # 007C, no team RET
(Non-standard ROM).

   - A large length of the fragment (6
bytes).

   There is a way, free from
the above-mentioned drawbacks:

HALT; written to the stack address

            , The following command (for

            ; Return from interrupt)
DEC SP; Just as in the first
DEC SP; fragment
POP HL; remove the address from the stack


   The consumption of memory is only four bytes instead of
six. In contrast to previous
example, interruption during operation of the program fragment
should be allowed (to execute the command HALT). Despite this, 
the teams DEC SP interrupt can not happen, because after the 
command HALT is still 1 / 50 seconds before the next 
interruption. 


           *







Other articles:

Adventure Project - Design and razrabotaka Adventyurnyh and RPG games.

Adventure Project - Russification adventyur.

TR-DOS for beginners - Continued.

Authoring - Scorpion 2000 (S. Zonov).

Authoring - Trampoline (S. Veremeenko).

Business Card - a new electronic humor magazine "SpectrofUn".

Crossing Dragon - Promotion of the game Finders Keepers.

Crossing Dragon - Promotion of the game Knight Tyme.

Crossing Dragon - Game Promotions Spellbound.

Crossing Dragon - Game Promotions Stormbringer.

Retro - 40 best procedures: Merge images, rotation of the symbol clockwise Inverting character, changing the attribute, fill circuit construction templates (Dzh.Hardman, E. Hyuzon.).

Expert Tips - Total Eclipse 2.

Expert Tips Super League.

Forum Games - Description of the game land of myths.

Forum Games - Passage Renegade.

Forum Games - Subtleties trading game Elite

Forum - Studying and debugging @ files using STS 5.1. Features of debugging using a monitor STS. Bugfix STS 5.1.

Forum - compression programs.

forum - Reduction in the time format. On the recording sectors while formatting. Rebuilding the screen for one interrupt.

Forum - Features assembly ZX ASM 3.0.

Forum - As for the BASIC compiler "Blast".

Forum - With regard to relotsiruemyh programs.

Forum - Program "Flame" and "Dragon."

reader-reader - TR-DOS: how to avoid mistakes?

reader-reader - The effective work with the drive.

ethidium - The calculation of addresses in the file attributes. Program scrolling specified window 1 pixel to the right. Cleanup of the specified window. Procedure display images from the buffer.

Studies - LED channel music processor. The procedure for cleaning the screen. Proposal for standardization.

Studies - A set of eight programs of "extension" screen. Two procedures are manifestations of the screen.

Studies - New themes for development.

Studies - Playback software tool from the editors of digitized music.

Studies - processing program @ BASIC files.

Studies - The procedure for turning the symbol 90 degrees clockwise.

Studies - The procedure for searching text files.

Studies - Screen procedure "UP HL".


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

Similar articles:
WANTED - Searching software ...
War of Fennec - one-day chronicle of war (Game Section Tolkinovskogo Society in action).

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