Is this code with rdfast secure?
I have narrowed crashes down to using the following routine, which is part of TAQOZ to find the length of a NULL terminated sring. It executes from COG memory. Adress is given in register a and the length is also returned in a.
00818 07b fc780023 STRLEN rdfast #0,a 0081c 07c f6044600 mov a,#0 00820 07d fd781e10 .L0 rfbyte x wcz ' read a byte 00824 07e 1b8c47fe if_nc_and_nz ijnz a,#.L0 ' continue while not 0 or not >$7F' 00828 07f fd64002d ret
Is it possible, that sometimes the streamer is not yet filled properly, when rfbyte executes?
In the P2 docu there ist: "For RDFAST modes, it is necessary to do a RDFAST sometime beforehand, to ensure that the hub RAM FIFO is ready to deliver data."
What means sometime?
I have replaced the routine with a much slower version in Forth and this avoids the crashes.
Thanks for any hints!