Have i done with https://github.com/jedie/PyDragon32/com ... c47#L0R377Sarah wrote:You need to set the gap flag ($FF) for ASCII BASIC.
But why? ...or: what is the gap flag for?
GAP-FLAG if ASCII-BASIC and NO-GAPS if tokenized BASIC ?? Makes no sense, because we have the flag if ASCII or tokenized...
I have seens this "MAGIC BYTE" as terminator of blocks in other code. So i have also add it in the stream. But doesn't really make sense, because we have the block-length information, so no terminator is needed...Sarah wrote:Your sync byte trailing the header is commented incorrectly but that won't matter; it's not required (sync bytes come before blocks rather than after them).
I have removed the MAGIC BYTE stuff.
I have also seen this in other code. And it seems to work. But maybe there is also no terminator needed? Because of existing block-length, too?Sarah wrote:Since this is an ASCII file the text should end with the final carriage return ($0D which I presume is what your '\r' character generates) rather than $0000.
I have tested it. It works with only one \r at the end.
Maybe $0000 is in tokenized BASIC needed?
I have removed the code terminator with https://github.com/jedie/PyDragon32/com ... 2e719f6685