oblo wrote:Of course, here is.
Your attachtment has a BOM (Byte Order Mark) for Unicode UTF-16, but appears to be encoded in an different encoding.
First two bytes of text are 0xFEFF which are cofusing the compiler. Also some chars are "dirty" or misencoded. Which encoding did you use?
Please use UTF-8 whenever possible.
Update: your BOM is OK (UTF-8), but zxb does not understand BOMs (a 2-3 bytes at the beginning of the text file). Once removed I recompiled your program and got your error. The real error line is not at line 1917 but at 2662 (this is something I have to investigate further). Anyway, the syntax:
is not allowed. At the moment you cannot mix strings and bytes in the same DEFB line. I'm going to add this feature to the assembler.
Meanwhile you can workaround this rewriting the above line as:
Note the last line: The assembler makes distinction between strings (double quotes " "), and char (single quotes ' '). A char is a byte written as an ASCII char, and can be added a number (+$80). A string cannot. So "e" + $80 is not legal, but 'e' + $80 is.