Inferno #10
30 апреля 2007

Formats - The format of a packed file MegaLZ.

<b>Formats</b> - The format of a packed file MegaLZ.
     The format of a packed file MegaLZ

Lord Vader


   The first byte is copied into vyhod.Vtoroy -
is in bits.

   Bits in a byte of bits - from the senior.

   If you want a bit, but it is not (all 8 to
nchilis) - a new byte is selected from at
current. From the same selected and bytes, denoted
obtained  - but only after the sample
all the bits link.

   The format options:  - byte, which
ry is selected from the stream.

1  -  copied to the output.
000abc - copy an old byte

         shift FFF8 + [abc] to current

         position in the output

         (Abc == 000 - offset FFF8,

         abc == 111 - FFFF)
001  - copy 2 bytes at offset

           FF00 +  (-1 ..- 256)
0100  - copy 3 bytes of

           shift FF00 + 
0101abcd  - copy 3 bytes of

           shift (F [abcd] -1) * 256 + 

           (-257 ..- 4352)


   Longer links can be conveniently represented
in the form of 3 parts:


   Prefix:
011


   The length of the links:
1a -> 4 + [a]
01ab -> 6 + [ab]
001abc -> 10 + [abc]
0001abcd -> 18 + [abcd]
00001abcde -> 34 + [abcde]
000001abcdef -> 66 + [abcdef]
 0000001abcdefg -> 130 + [abcdefg] (here the length

                            no more than 255!)


   Displacement:
0  - FF00 +  ago (-1 ..- 256)
1abcd  - (F [abcd] -1) * 256 + 

                             (-257 ..- 4352)


   The label end of the stream:
011000000001


                 Examples:

000,111 - to repeat the last byte
 001  - repeat the last byte

             double (offset =- 1, length 2)

 011 001101 10000  - link length

      % 101 +10 = 15 bytes at offset -4352




Other articles:

Likbez - Batteries. Practices.

Likbez - Batteries. Results of experiments with different batteries.

Opportunities Spectrum - The format ani-files on the ZX.

Inferno - The authors of the magazine.

Opportunities Spectrum - How to play multichannel music on beeper.

Opportunities Spectrum - Support for the DVD format on ZX.

Gameland - On the competition absurd (or clumsy) games for the ZX Spectrum - Crap Games Competition.

Graphics - How to quickly draw colorful pictures.

Inferno - Entered from the editor.

Inferno - Errors in the previous numbers.

For Coderz - Gray code and optimization programs.

For Coderz - Building a graphical user interface.

Formats - details on the decoder jpeg.

Iron - Description of Products K561PU4.

Inferno - Letters to the Editor.

Formats - The format of a packed file MegaLZ.

Scorpion ZS - The structure of the markup on a computer hard drive Scorpion.

ZX Clones - multiplatform on the ZX Spectrum. Computers SAM Coupe and MSX.

Advertising - Advertising NedoPC.

Inferno - On the shell.

Activities - The "Spectrum" at the competition on the night orienteering Okinchitsa 2004.

Softinka - Comparative table of the results of packing code files with various packers.

Advertising - Advertising King of Evil.

Softinka - Software for printing in the annex to the magazine.

Softinka - Music Editor Pro Tracker v3.71. Revision history.

Advertising - Ads by V. Bogdanovich.

Iron - Some RND-generators.

Opportunities Spectrum - A hardware scrolling on ZX Spectrum.

Pentagon - Sinhroselektor video at Pentagon. Problems and the scheme.

DIY - Universal TAPE interface. Scheme of loading and recording tapes.

Sound - Features audio device TurboSound FM.

DIY - The scheme of the analyzer state TTL output.

Future Spectrum - Video Display V9990. Enhanced graphics capabilities ZX Spectrum.

Softinka - Updates to the image viewer: ANSI viewer, MCX viewer.

Interview - An interview with musician X-Raizor of Omega Hackers Group.


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

Similar articles:
Other - Scholz bedwetter.
Sharts - Spectrum chart from Demiurge Ash'a and Proxima Centauri ^ CTL.
Events, Facts - Information about demopati "Constructions Haosa'000 v1.500".
Advertising - advertising and announcements.

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