Analysis model: gpt-5.5 xhigh

A Year of Agony by Hypnosis - Technical Dissection

Scope

A Year of Agony is an MS-DOS PC demo by Hypnosis from The Party 1993. The official result file ranks it twenty-first in the PC demo competition with 8 points, below Fraggabaharje's Tsocka Bryan and above Force II's Fiction.

Release context: The Party 1993 PC demo compo. Demozoo lists the production as released on 29 December 1993, while the bundled AGONY.DOC says the package was released on 1 January 1994. I treat it here as a 1993 competition entry with a post-party public package date.

This is a useful obscure target because the public archive looks simple but is not a single EXE demo. It is a silent multipart system: a 1.1 KB MZ loader, eleven embedded stripped executable parts stored as .DAT files, several PKLITE-packed part bodies, three 320x200x8 BMP-style images, a raw 320x200 image plane, and separate palette/effect data.

Private contact/address details from the bundled documentation are deliberately omitted.

Public References

The relevant result-table excerpt is:

19   28  Logical Thoughts              TDS Inc.
20   28  Tsocka Bryan                  Fraggabaharje
21    8  A year of agony               Hypnosis
22    4  Fiction                       Force II
23    0  The Newcomer                  Pyten

Pouet also lists it as an MS-DOS demo ranked twenty-first at The Party 1993.

Examined Package

Scene.org HTTP metadata observed for this pass:

HYP_YEAR.ZIP  content-length 193030  last-modified Tue, 13 Jul 2010 11:08:57 GMT

Archive hash:

77e4382d237556ad79a9aefae0f49a91829755172c90c85d6ddbcb35f6933b7e  HYP_YEAR.ZIP

unzip -t passed for all files.

Archive Layout

FILE_ID.DIZ      533  1994-01-02 00:24
AGONY.EXE       1146  1993-12-31 23:53
AGONY_1.DAT    65078  1993-10-19 17:49
AGONY_2.DAT    65078  1993-10-19 15:34
AGONY_3.DAT    16128  1993-12-24 19:43
AGONY_4.DAT     3072  1993-12-16 04:44
AGONY_5.DAT    64000  1993-12-16 04:04
AGONY_6.DAT    15952  1993-12-16 16:03
AGONY_7.DAT    22594  1993-12-16 16:03
AGONY_8.DAT    16454  1993-12-16 16:03
AGONY_9.DAT    17546  1993-12-16 16:03
AGONY_A.DAT    48000  1993-12-31 22:59
AGONY_B.DAT    25863  1993-12-16 16:04
AGONY_C.DAT     4583  1993-12-31 23:21
AGONY_D.DAT    14466  1993-12-16 16:04
AGONY_E.DAT     5232  1994-01-01 00:27
AGONY_F.DAT     5745  1994-01-01 00:05
AGONY_G.DAT     1478  1993-12-31 23:47
AGONY_H.DAT    65078  1993-12-16 09:07
AGONY.DOC       3905  1994-01-02 00:27

Extracted hashes:

ce9987eb41a248c72edd98fff7b3e1eca76700f3779c87b9e09d405c349e3195  AGONY.EXE
efec140ef4ad42fdbd40d6acd93353f9cf839ef360919f86d2b77e519be7a990  AGONY_1.DAT
ff5acbbdc3cff30b679a15d4a5f1a8059fab567c84c3fa21ac9a904288db3db6  AGONY_2.DAT
87e2071b7e17dda60e27674ba4764ff81ab81dac648e030a6471dea4b710707d  AGONY_3.DAT
e218ca8c36a8dc4f7e73cf3f68aca11ead571a60bf9ce9b1dc867c9274e5281e  AGONY_4.DAT
77043b400296ffe740c3034a11d8bab2f0f0e2cbfbb5c000463ee8267dd5b6d4  AGONY_5.DAT
890aecef4a67fa75d4d8e23c853017a94003d983978c91dbcf83e91ed31bd1a3  AGONY_6.DAT
2c2cb0c3535efd267906b8f7252e093df0226cc3f3e54ec0591fe0e9d94055a9  AGONY_7.DAT
3952132ece03767021f2e5adcce78df34146915acef9fb262fb62bbb0cbcca89  AGONY_8.DAT
8644b4274db04501460e59d84f8b10fc68ec67c3067f7828dfabdd92de300b98  AGONY_9.DAT
e147ad7c488c2e6ab99244311890eaa3fd078b4a29ae6e7f86b917cc791a6130  AGONY_A.DAT
2371ecb449e26303504bba27ff7dd41c7d04c7f58c9869ffadbb22a1cd3edbe4  AGONY_B.DAT
58e954363f21be9e5638d1d6fba77718d518339d793e974b9ceb9e875375aabe  AGONY_C.DAT
ccd1e12e06a50c96ab0e62c5727de2f8060bd0cbc5e73880a6612854d1f14a66  AGONY_D.DAT
4c940f443d041770673fafc08677a9c60f7f01b35537b0450cea8e9c66a18b64  AGONY_E.DAT
f9efe7e93654a42193dd749ad81270fd9214e784d78f251a0dd9d9cc63a47fe0  AGONY_F.DAT
903d9f5fd5f0867abbc778d7e695bceb95cddebb5ca500b3386c1a6ab77f0ff6  AGONY_G.DAT
6469552edca65ed658a8091866df64993ce7357ee7d7c776930d59907255e0e3  AGONY_H.DAT
2b424386178562479aa983ea31abd35485e8cc118222b241a3c28b727b03873e  AGONY.DOC
82a53ffc1dd1b9e7d224a5c3a2d41f35697734f5f4163f25364c700b046d09b7  FILE_ID.DIZ

Documentation And Requirements

AGONY.DOC identifies the demo as freeware and gives the hardware target:

fast 386/486 computer
about 450 Kb of conventional memory
fast VGA adapter

It also states that there is no sound in the demo because the group split up a week before The Party 1993 and could not finish a player in time. That matches the package: there are no MOD/S3M/FAR/SB resources, and no sound setup strings in the loader or expanded parts.

The documentation warns that EMS may interfere with the demo. Expanded part strings confirm explicit EMS status handling:

EMM PRESENT.
EMM NOT PRESENT.
EMM ERROR.
EMM_PRESENT
EMM_ERROR
SHOWEMMPRESENT
SHOWEMMERROR

Loader Executable

AGONY.EXE is a tiny, normal MZ program:

file size          1146 bytes
MZ image size      1146 bytes
header size         512 bytes
load image          634 bytes
relocations           1
min/max allocation 0011h / ffffh
SS:SP              0028:0100
CS:IP              0000:0000
relocation table   003eh

It contains only eleven part filenames:

agony_6 .dat
agony_7 .dat
agony_8 .dat
agony_9 .dat
agony_a .dat
agony_b .dat
agony_c .dat
agony_d .dat
agony_e .dat
agony_f .dat
agony_g .dat

The spaces before .dat are present in the executable strings and match the short 8.3 filenames on disk. On a DOS filesystem, AGONY_6 .DAT and AGONY_6.DAT refer to the same padded base name.

The top-level code calls the same loader routine for each part in sequence, then exits through DOS:

0203  mov dx,0080h   ; "agony_6 .dat"
0206  call 0325h
0209  mov dx,008dh   ; "agony_7 .dat"
020c  call 0325h
...
023f  mov dx,0102h   ; "agony_g .dat"
0242  call 0325h
0245  call 046ch     ; restore INT 21h
0248  mov ah,4ch
024a  int 21h

The loader routine opens the requested file, reads a 28-byte custom header, seeks to header_paragraphs * 16, reads the load image into memory, applies relocations from the stored relocation table offset, switches stack, and far jumps into the part. When a part returns through DOS int 21h / ah=4ch, the temporary INT 21h hook catches it and returns control to the loader instead of terminating the whole demo.

That makes AGONY.EXE a compact multipart executive rather than the actual effect code.

Stripped Executable Parts

The eleven executable .DAT files are not normal files with visible MZ magic. Their first 28 bytes are a compact MZ-like header used by the loader. Rebuilding conventional MZ headers from those fields exposes the part layout:

file         dat size  hdr  load   relocs  SS:SP       CS:IP
AGONY_6      15952    160  15792       1   03e6:0200   fff0:0100
AGONY_7      22594    160  22434       1   0585:0200   fff0:0100
AGONY_8      16454    112  16342       1   0405:0200   fff0:0100
AGONY_9      17546    160  12800       1   030b:0200   fff0:0100
AGONY_A      48000    320  47680      71   0bf7:fde8   0000:04e5
AGONY_B      25863    160  25703       1   0651:0200   fff0:0100
AGONY_C       4583    160   4423       1   011f:0200   fff0:0100
AGONY_D      14466    160  14306       1   0389:0200   fff0:0100
AGONY_E       5232    112   5120       1   0148:0200   fff0:0100
AGONY_F       5745    112   5633       1   0168:0200   fff0:0100
AGONY_G       1478    160   1318       1   005d:0200   fff0:0100

Most of these parts have the classic packed-entry CS:IP = fff0:0100 and a visible PKLITE notice at offset 001eh in the stored file:

PKLITE Copr. 1990-92 PKWARE Inc. All Rights Reserved

AGONY_A.DAT is the outlier. It has 71 relocations, a normal-looking Borland runtime tail, and a direct entry at 0000:04e5; it is not a PKLITE wrapper in the examined package.

UNP Expansion

After reconstructing normal MZ headers in scratch, UNP expands most of the parts:

file        rebuilt before  after UNP  notes
AGONY_6          15952       80196     expanded MZ, 37 relocations
AGONY_7          22594       76842     expanded MZ, 18 relocations
AGONY_8          16454       36096     expanded MZ, 90 relocations
AGONY_9          17546      140938     expanded MZ, EMM/status strings
AGONY_A          48000       48000     already direct Borland-style part
AGONY_B          25863      178208     expanded MZ
AGONY_C           4583        6815     expanded MZ
AGONY_D          14466      138320     expanded MZ
AGONY_E           5232        9040     expanded MZ
AGONY_F           5745        5745     still PKLITE-marked after this run
AGONY_G           1478        1478     still PKLITE-marked after this run

Expanded hashes for the largest and most structurally useful parts:

5b6dbd3bc0d769922546a42df80a0b0e2baa7754231ed222b74bfca497d49dc2  AGONY_6.EXE
69d2937c0d5e45035efc226d264ed11723ec6bc46979119a5d0a46f3b3329cb4  AGONY_7.EXE
808c36cc53f2c0e7c80b40a851d7b80843e3470a3f3ddb04cf25cf3a5633a0c0  AGONY_9.EXE
04be3e62af93f35637f9efb1ec28cae8e9277de040eef66070c557affa2b7b4c  AGONY_B.EXE
0a239f6a54c9d8eeb85473e5bc627db502c6a495a408f519f46d4f42b52ba309  AGONY_D.EXE

The unpacked view shows that the demo is much larger than the archive's individual .DAT sizes imply. Several visible strings identify presentation and effect sections rather than a single monolithic playback loop:

INTROFADE
FALLING AGONY
GLASS BALL
SKYMOUSE SCROLLER
TURBULENCE
PLASMA
TWISTER SCROLLER
CREDITS

Those strings are in the expanded code/data and are useful as section labels, not as proof of a complete routine-level map.

Image And Palette Assets

file(1) identifies three .DAT files as 320x200x8 Windows BMP-style images:

AGONY_1.DAT  PC bitmap, Windows 3.x format, 320 x 200 x 8
AGONY_2.DAT  PC bitmap, Windows 3.x format, 320 x 200 x 8
AGONY_H.DAT  PC bitmap, Windows 3.x format, 320 x 200 x 8

Their headers are recognizable:

00000000  42 4d 36 04 00 00 00 00 00 00 36 04 00 00 28 00
00000010  00 00 40 01 00 00 c8 00 00 00 01 00 08 00 00 00

The stored BMP file-size field is 1078, which is just header plus palette, but the actual file size is 65,078 bytes. The pixel plane follows at offset 0436h and the images render correctly as 320x200 indexed screens.

AGONY_5.DAT is exactly one 320x200 byte plane:

AGONY_5.DAT  64000 bytes

AGONY_4.DAT is 3,072 bytes, exactly four 768-byte VGA palettes. Combining AGONY_5.DAT with these palettes renders a readable logo image; the first palette variant is colored, while later variants are gray/white fades.

The image-related strings in the expanded parts line up with that split:

AGONY_A  agony_1  agony_2
AGONY_9  agony_4.DAT  agony_5.DAT  agony_3.dat

AGONY_3.DAT is 16,128 bytes and uses mostly 00h, 0fh, and feh values. It is effect data rather than a straightforward BMP or palette table; I do not assign a stronger format without tracing the consuming routine.

Runtime Probe

A bounded DOSBox-X run using the original package, dummy video, and dummy audio started the loader and switched video modes before the internal time limit. It did not report missing files. The probe is only startup evidence; the structural claims above come from the loader disassembly, rebuilt part headers, UNP expansion, and decoded image assets.

Technical Character

A Year of Agony is a rushed but technically interesting late-1993 PC demo. It has no music, by the authors' own documentation, but it compensates with a compact multipart loader and a set of compressed effect executables:

For a twenty-first-place entry, it is a good example of how much PC demo infrastructure could sit behind an unimpressive public archive: a silent demo, but not a simple one-file slideshow.