Can't you do something like this as it is coming in?
T VAR BYTE
B VAR WORD
R VAR BYTE
ST VAR WORD
SP VAR SP
SERIN2, 1,N2400,[DEC2 T,DEC3 B,DEC2 R, DEC5 ST,DEC5 SP]
To my way of reading the book but not having tested, this would break up a string of 11222334444455555 into 11 in T, 222 in B, 33 in R 44444 in ST and 55555 in SP
So long as ST and SP are not larger than 65535 I reckon that should work??
However I could be wrong of course.
That is what I would start playing with and take it as it comes.
Peter Moritz.
Up the bush, Western Plains,
New South Wales,
Australia.
Bookmarks