Jump to content
IGNORED

Help with mysterious .cas file


miker

Recommended Posts

Hi guys!

 

Today I was asked to check some .cas file. It's a production from Synchrony Oldskool Compo called La Rain, 99 Years Later and I have totally no idea how to run it.

 

Both Altirra and WinPLus go into Self Test after trying to load single record. Can somebody check it more advanced way?

 

 

Here's demozoo link to that mystery:

 

https://demozoo.org/productions/167687/

 

And the cas itself is attached as well (zipped).

 

Thanks in advance.

 

m.

la_rain.zip

Edited by miker
Link to comment
Share on other sites

Hi,

Here is the header of the file.

00000000 46 55 4A 49 11 00 00 00 76 65 72 73 69 6F 6E 20 FUJI....version
00000010 74 72 69 6C 69 6E 67 75 65 62 61 75 64 00 00 58 trilinguebaud..X
00000020 02 64 61 74 61 84 00 04 4C 55 55 FC 00 00 00 01 .data„..LUUü....
00000030 67 01 68 01 B8 02 81 87 01 A8 50 A8 54 31 A4 54 g.h.¸.‡.¨P¨T1¤T
00000040 32 A4 54 33 A4 54 34 A4 54 35 A4 D9 54 A4 DA D8 2¤T3¤T4¤T5¤ÙT¤ÚØ
00000050 50 4F 53 A8 C7 52 A4 52 45 CD C6 CC 53 31 A8 53 POS¨ÇR¤REÍÆÌS1¨S
00000060 32 A8 C3 53 A8 52 45 54 55 52 CE 42 A8 C2 C1 43 2¨ÃS¨RETURÎB¨ÂÁC
00000070 54 45 4D D0 4E CD 58 D4 4F 4C C4 59 A4 43 A4 45 TEMÐNÍXÔOLÄY¤C¤E
00000080 A4 53 43 52 45 45 CE 53 43 52 45 CE 59 CD 50 45 ¤SCREEÎSCREÎYÍPE
00000090 45 4C A8 52 45 D4 56 A4 58 D9 53 A4 D3 46 A4 00 EL¨REÔV¤XÙS¤ÓF¤.
000000A0 40 00 00 00 00 00 00 00 41 01 1C 64 61 74 61 84 @.......A..data„
000000B0 00 04 01 55 55 FC 78 00 06 00 04 00 80 02 00 00 ...UUüx.....€...
000000C0 00 00 00 00 80 03 00 00 00 00 00 00 80 04 00 00 ....€.......€...
000000D0 00 00 00 00 80 05 00 00 00 00 00 00 80 06 00 00 ....€.......€...
000000E0 00 00 00 00 00 07 40 09 63 52 94 10 81 08 00 00 ......@.cR”....
000000F0 50 00 78 00 00 09 40 02 00 00 00 00 00 0A 40 14 P.x...@.......@.

Link to comment
Share on other sites

It is a BASIC program, but the CAS file is broken. Here's the first data block:

00000020: 02 64 61 74 61 84 00 04-4C 55 55 FC 00 00 00 01  |.data...LUU.....|
00000030: 67 01 68 01 B8 02 81 87-01 A8 50 A8 54 31 A4 54  |g.h.......P.T1.T|
00000040: 32 A4 54 33 A4 54 34 A4-54 35 A4 D9 54 A4 DA D8  |2.T3.T4.T5..T...|
00000050: 50 4F 53 A8 C7 52 A4 52-45 CD C6 CC 53 31 A8 53  |POS..R.RE...S1.S|
00000060: 32 A8 C3 53 A8 52 45 54-55 52 CE 42 A8 C2 C1 43  |2..S.RETUR.B...C|
00000070: 54 45 4D D0 4E CD 58 D4-4F 4C C4 59 A4 43 A4 45  |TEM.N.X.OL.Y.C.E|
00000080: A4 53 43 52 45 45 CE 53-43 52 45 CE 59 CD 50 45  |.SCREE.SCRE.Y.PE|
00000090: 45 4C A8 52 45 D4 56 A4-58 D9 53 A4 D3 46 A4 00  |EL.RE.V.X.S..F..|
000000a0: 40 00 00 00 00 00 00 00-41 01 1C 64 61 74 61 84  |@.......A..data.|

The first 'data' chunk says it has 132 bytes, which is correct -- two for sync ($55 55), one for control ($FC), 128 bytes of data, and one byte for checksum. However, there are only 130 bytes present until the next 'data' chunk. Looks like someone uploaded it in ASCII mode, because of the corruption in the variable value table:

000000a0: 40 00 00 00 00 00 00 00-41 01 1C 64 61 74 61 84  |@.......A..data.|
000000b0: 00 04 01 55 55 FC 78 00-06 00 04 00 80 02 00 00  |...UU.x.........|
000000c0: 00 00 00 00 80 03 00 00-00 00 00 00 80 04 00 00  |................|
000000d0: 00 00 00 00 80 05 00 00-00 00 00 00 80 06 00 00  |................|
000000e0: 00 00 00 00 00 07 40 09-63 52 94 10 81 08 00 00  |......@.cR......|
000000f0: 50 00 78 00 00 09 40 02-00 00 00 00 00 0A 40 14  |P.x...@.......@.|
00000100: 00 00 00 00 40 0B 00 00-00 00 00 00 00 0C 00 00  |....@...........|
00000110: 00 00 00 00 80 00 00 00-00 00 00 00 0E 00 00 00  |................|
00000120: 00 00 00 00 0F 40 01 00-00 00 00 00 10 00 00 00  |.....@..........|

Note the conspicuous absence of variable token $0D... otherwise known as carriage return (CR).

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...