Statistics: Posted by mikefromca — Thu Oct 17, 2019 11:16 pm
Statistics: Posted by burger2227 — Wed Oct 16, 2019 12:38 pm
Code:
funcn%=10checksum%=14myvalue&=254'convert to output for serialtoser$=chr$(funcn%)+chr$(myvalue& AND 255)+chr$((myvalue&/256) AND &H100)+chr$((myvalue&/&H10000) AND 255)+chr$(checksum%);convert to user readable outputbytes$=""for n%=1 to len(toser$)bytes$=bytes$+right$("00"+hex$(asc(mid$(toser$,n%,1))),2)next n%print bytes$
Code:
... chr$(myvalue& AND 255)+chr$((myvalue&/256) AND &H100)+chr$((myvalue&/&H10000) AND 255)+chr$(chr$((myvalue&/&H1000000))
Code:
mkl$(myvalue&)
Statistics: Posted by mikefromca — Wed Oct 16, 2019 11:51 am