Virtual Worlds #01
31 декабря 1999

Assembler - Z80 Flags: undocumented command processor Z80.

<b>Assembler</b> - Z80 Flags: undocumented command processor Z80.
           Z80-Flags.



                   (C) Unknown
 (Text taken from the Spectrum
 Conference fido7.zx.spectrum)



  There is another unlit
area in the processor Z80, which has implications for
Some programs, such as
Sabre Wulf, Ghosts'n Goblins and
Speedlock. This undocumented flags!


  Bits 3 and 5 of the flag register
F is not used. But they can
contain information and it can
be used because there are such obvious command, like PUSH AF 
and POP AF. But however, sometimes still

contents of these flags are changed. I found the following rule 
of thumb: 


  The values ​​of bits 7,5,3 repeat
values ​​of the corresponding bits
last 8-bit result
instructions, which I usually flags.


  For example, after the team ADD
A, B, these bits will be identical bits in register A. Bit 7 
Register F - is the sign bit, and he, of course, by definition, 
always should be the rule. exception is the team CP x (where

x - register or (HL) or direct
argument). In that case bits
not copied to the result, but with
argument.


  For instructions that operate on double-byte operands
8 bits within the derived rule - it's top 8
bits from 16-bit result.
This should be expected, since there is a significant
Senior 15th bit.


  Ghosts'n Goblins use
undocumented flags as a result of programmer error. In
Playing Sabre Wulf unnatural acts rhinoceros
which sometimes runs low
circles in the corners, if the sign
Bit by BIT team calculated
wrong. I quote:

# AD86 DD CB 06 7E BIT 7, (IX +6)
# AD8A F2 8F AD JP P, # AD8F


  Striking piece of code! A
As for "Spidloka", then
He maketh a number of
obscure and puzzling tricks that in order for it to work in the 
emulator, it should tochnehonko correspond to the real Spectrum.








Other articles:

From the Editor - the story of creating a magazine.

Guide - the detailed contents of rooms.

Description shells - a description of the shell and methods for its proper operation.

Authors - the authors.

Assembler - Z80 Flags: undocumented command processor Z80.

Assembler - Overlays for JC: Description of methods for creating utilities running Jemmini_Commander 4.0T.

Assembler - Secrets of the TR-DOS: the methods of distribution presence drives.

Assembler - Circles on the water: The algorithms simulate the effect of a well-known on other platforms, called "ripples."

Assembler - search path. Solution to the problem of "static" find the shortest route between two points.

Spending - The mechanical effect. This story is about what happens using condoms dubious origin.

Iron - Bugs keyboard: why in the game for two players, when playing together, the computer does not listen to your management, and information on how to avoid it.

Iron - Interrupts: Something strange about the interruptions of the second kind.

Technical assistance - the thought aloud. It is interesting letter from fido7.zx.spectrum conference on the theme "On the question of standardization."

Technical assistance - File FAQ. A complete analysis of file formats, most often vstechayuschihsya the Internet, and not only, as well as methods for their conversion into a "normal" form.

Technical assistance - Dos Review: material on the format of the disk operating system IS-DOS.

Technical assistance - Dos Review 2: The material on the format of disk operating systems, PC "Agat", Radio-86RK, SP-DOS, BK-0011M.

Technical assistance - Dos Review 3: The material on the format of the disk operating system CP / M, ASC SOUND MASTER, RT11, SM computers RAFOS.

Technical assistance - Dos Review 4: The material on the format of the disk operating system from an unknown author.

DI: HALT: 99 - An analysis of DH: 99. Finally, the whole truth about the past summer, in Dzerzhinsk party, from the organizers themselves.

DI: HALT: 99 - Hidden Parts. Dzerzhinsky life (not only) in the period spektrumistov of DI: HALT: 99.

DI: HALT: 99 - The results. Having walked DH: 99, almost every other newspaper, considered it their duty to come up with a new version of the results. This article is the direction on the fact that finally put the record straight "I".

Programs - Alien: description and walkthrough of the film "Alien."

Programs - description of the Universal AntiProtector 0.01 (a program for automatically splitting a number of popular defense systems).

Programs - Editor-game screens, "White Spot".

Programs - Exhumator: a program to "drive the exhumation."

Programs - chankovy graphics editor: Hard Core ver 3.01

Programs - Eye of crying: the files of allowing to watch pictures, sprites, while listening to etommuzyku.

Spending - Verse of Sysop'e. Poetry, but ...

Spending - Sex and Fido. Humorous raskaz about What about actually making love inveterate fidoshniki.

Spending - Anecdotes. A selection of jokes with a computer theme.


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

Similar articles:
From the Editor - New Issue ZX-News.
FAQ.
Smiley - a collection of humorous banalities.
Feedback - contact the publisher.

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