Halo Thorsten,
also bei mir funzt es so im Main:
rolf
also bei mir funzt es so im Main:
Code
type
TzksBuffer = array[0..79] of byte;
{--------------------------------------------------------------}
{ functions }
procedure CS(var inTxBuffer : TzksBuffer);
var
xi, zi : byte;
tempBCC : byte;
begin
tempBCC:= 0;
zi:= inTxBuffer[79];
for xi:= 0 to zi - 1 do
tempBCC:= tempBCC xor inTxBuffer[xi];
endfor;
end CS;
TzksBuffer = array[0..79] of byte;
{--------------------------------------------------------------}
{ functions }
procedure CS(var inTxBuffer : TzksBuffer);
var
xi, zi : byte;
tempBCC : byte;
begin
tempBCC:= 0;
zi:= inTxBuffer[79];
for xi:= 0 to zi - 1 do
tempBCC:= tempBCC xor inTxBuffer[xi];
endfor;
end CS;
rolf