Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BorIDE ASM compilation error
#4
oblo Wrote:Of course, here is.
Cheers
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:
Code:
DEFB 5,0,5,0
DEFB 179,"cor","e"+$80
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:
Code:
DEFB 5,0,5,0
DEFB 179
DEFB "cor"
DEFB 'e'+$80
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.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)