Software
int repeat =0;
if( len >= 16 ) {
for( i = 0; i < len ; i +=16) {
if(line >0) {
if(0 == memcmp( &buffer[i], &lastBuf[0], 16) ) {
+;
} else {
repeat =0;
}
}
switch(repeat) {
case 0:
printf("\n%08x:", i+offset);
for( j = 0; j < 16; j ++){
printf(" %02x", buffer[i+j]);
}
break;
case 1:
printf("\n*");
break;
}
memcpy( lastBuf, &buffer[i], 16);
line ++;
}
} else {
i = 16;
}
if( i > len ) {
i -=16;
printf("\n%08x:", i+offset);
for( ; i < len; i ++){
printf(" %02x", buffer[i]);
}
}
printf("\n%08x\n", i+offset);
}
Page 24 of 36
Hardware Manual • Doc. No.: I.2322.21 / Rev. 1.2
CPCI-DP-2S