Spectrum.EXE/Docs/FORMATS/HOBETA.txt
2024-10-25 00:46:14 +10:00

74 lines
2.0 KiB
Plaintext
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Ä SPECTRUM RULEZ! (2:5020/993.213) ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ZX.SPECTRUM Ä
Msg : 133 of 185
From : Alexei Bugai 2:461/173.3 Fri 31 Oct 97 23:24
To : Ilya Zverev Mon 03 Nov 97 17:43
Subj : ”®p¬ â ä ©«®¢ 审¥âë
ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
Peace unto you, _Ilya_!
29 Oct 97 Ilya Zverev write to All about "®p¬ â ä ©«®¢ 审¥âë":
IZ> Žç¥­ì ­ã¦¥­ á ¡¦, pls.
== Cut ==
‘âàãªâãà  17-¡ ©â­®£® § £®«®¢ª , ¤®¡ ¢«ï¥¬®£® ª TR-DOS­ë¬
ä ©« ¬ ¯à®£à ¬¬®© HoBeta.exe:
00-07 - ¨¬ï ä ©« 
08 - ⨯ ä ©« 
09-0A - Start
0B-0C - Length
0D-0E - Length ¢ 256-¡ ©â­ëå § ¯¨áïå (¡ ©â 0E - p §¬¥p ¢ ᥪâ®p å)
0F-10 - Š®­â஫쭠ï á㬬 
’ ª¨¬ ®¡à §®¬, ¯¥à¢ë¥ 14 ¡ ©â ª®¯¨àãîâáï ¨§ TR-DOS®¢áª®£® ª â «®£ .
‚ë稫¥­¨¥ ª®­â஫쭮© á㬬ë: S=S+257*Di+i, £¤¥
S ­ ç «ì­®¥=0
Di - §­ ç¥­¨¥ ¡ ©â 
i - ¯®à浪®¢ë© ­®¬¥à ¡ ©â  (¥á«¨ ­¥ ®è¨¡ îáì, ­ ç¨­ ï á 0,   ­¥ á 1)
C src:
union {
struct {
unsigned char tr_filename[8];
unsigned char tr_filetype;
unsigned int tr_address;
unsigned int tr_length;
unsigned int tr_tr;
unsigned int tr_crc;
} tr_head;
unsigned char head[17];
} header;
unsigned int CheckSum;
int i;
CheckSum=0;
for (i=0; i<=14; CheckSum = CheckSum + (header.head[i] * 257) + i, i++);
header.tr_head.tr_crc = CheckSum;
‚®â ¢ ®¤­®© ¨§ ᢮¨å ¯à®£à ¬¬®ª ­ è¥« â ª®© § ¡ ¢­ë© ᯮᮡ ¯®¤áç¥â 
ª®­â஫쭮© áã¬¬ë § £®«®¢ª :
checksum=0;
for (i=0; i<=14; checksum+=(unsigned char)*(bufptr+i), i++);
checksum*=257;
checksum+=105;
bufptr, ®ç¥¢¨¤­®, ¯®¨­â¥à ­  ­ ç «® § £®«®¢ª .
=== Cut ===
With best wishes, [ZX_Power Team]
Dr.Squizer. [Power_ZX Team]
... Don't try to understand me... You never will!
--- Powered by Spectrum Mail System.
* Origin: X-Project BBS (2:461/173.3)