the code is this:
int DECL2 davePutProgramBlock(int blockType, int blknumber, char* buffer, int * length)
{
#define maxPBlockLen 0xDe;
int res = 0;
int cnt = 0;
int size = 0;
int blockNumber, rawLen, netLen, blockCont;
int number = 0;
uc pup[] = { 0x1A, 0, 1, 0, 0, 0, 0, 0, 9, 0x5F, 0x30...