home *** CD-ROM | disk | FTP | other *** search
- {
- Xorbyte: 7C 52
- Dec : 114 82
- Sym : R |
- }
-
- var a: array[1..$c] of word;
- tmp:word;
- xorbyte:word;
- i,j:byte;
- c1,c2:byte;
- filein:file of byte;
- ttt:byte;
- begin
- assign(filein,'123');
- rewrite(filein);
-
- {array of crypted bytes}
- a[1] :=$6f84;
- a[2] :=$5f83;
- a[3] :=$587b;
- a[4] :=$5282;
- a[5] :=$3d38;
- a[6] :=$3712;
- a[7] :=$5f5d;
- a[8] :=$587b;
- a[9] :=$7658;
- a[$a]:=$2cfd;
- a[$b]:=$d8c9;
- a[$c]:=$9245;
-
-
- for j:=1 to $ff do
- begin
- asm
- mov bh,j
- mov bl,$7c
- mov [xorbyte],bx
- end;
-
- for i:=1 to $c do
- begin
- tmp:=a[i] xor xorbyte;
- asm
- mov bx,[tmp]
- mov [c1],bl
- mov [c2],bh
- end;
-
- if i=5 then
- begin
- if chr(c1)='D' then
- begin
- if chr(c2)='o' then write('■ XorByte= ',xorbyte,' decimal');
- end;
- end;
-
- write(filein,c1);
- write(filein,c2);
- end;
- ttt:=$d;
- write(filein,ttt);
- ttt:=$a;
- write(filein,ttt);
- end;
- close(filein);
- end.