I'm in the process of writing a new ABC Reader. The reader has code to automatically create Postit (mod 86) encoded files. With PB 3.5 I've run into a small problem, actually a couple:
1 - PB appears to have a 64k limit on string literals, is there any way around that?
2 - PB has a problem with the following code (PBCC/PBWIN and QB/PDS does not)
The above code is embedded in the self extracting Postit file.
It appears to skip the adjustment for C < 0 or somehow misinterprets the extraction of characters. C can have a negative value of only either -1 or -2.
Given the exact same data, PBCC/PBWIN, QB/PDS work properly.
Thank you.
------------------
Walt Decker
ABC Archives
1 - PB appears to have a 64k limit on string literals, is there any way around that?
2 - PB has a problem with the following code (PBCC/PBWIN and QB/PDS does not)
Code:
SUB U(Work as string) FOR I = 1 TO LEN(Work$) C = ASC(MID$(Work$,I, 1)) - 37 IF C < 0 THEN C = 91 + C * 32 IF K < 4 THEN K = C + 243 ELSE PRINT #OutHndl,CHR$(C + (K MOD 3) * 86); K = K \ 3 B = B + 1 END IF S = (S + C) AND 255 NEXT I END SUB
It appears to skip the adjustment for C < 0 or somehow misinterprets the extraction of characters. C can have a negative value of only either -1 or -2.
Given the exact same data, PBCC/PBWIN, QB/PDS work properly.
Thank you.
------------------
Walt Decker
ABC Archives
Comment