Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
As BorIDE progresses...
Currently I*m rewriting and refactoring tons of code to make the source better readable. The editor and most of the other stuff works again, but ...
@Boriel:
What happened there? First source code I tried to compile after upgrading to 1.8 branch of ZXBC:
Code:
function Piece(x as Uinteger,y as Uinteger)
    dim b as uinteger
    dim a$ as string
    b=@Buffer+(y<<5)+x
    if peek b=0 then a$=" "
    elseif peek b=1 then a$="\{i4}\a"
    elseif peek b=2 then a$="\{i5}\g"
    elseif peek b=3 then a$="\{i5}\h"
    end if
    print at y,x;a$;
end function
Throws out:
D:\LCD_ZX_Games\---\temp.bas:37: Syntax Error. Unexpected token 'ELSEIF' <ELSEIF>
D:\LCD_ZX_Games\---\temp.bas:37: Syntax Error. Unexpected token 'THEN' <THEN>
D:\LCD_ZX_Games\---\temp.bas:38: Syntax Error. Unexpected token 'ELSEIF' <ELSEIF>
D:\LCD_ZX_Games\---\temp.bas:38: Syntax Error. Unexpected token 'THEN' <THEN>
D:\LCD_ZX_Games\---\temp.bas:39: Syntax Error. Unexpected token 'ELSEIF' <ELSEIF>
D:\LCD_ZX_Games\---\temp.bas:39: Syntax Error. Unexpected token 'THEN' <THEN>
D:\LCD_ZX_Games\---\temp.bas:40: Syntax Error. Unexpected token 'IF' <IF>
D:\LCD_ZX_Games\---\temp.bas:42: Syntax Error. Unexpected token 'FUNCTION' <FUNCTION>

Please help. Has the syntax changed? I' using these options:
"D:\Restliche Programme\zxbasic\zxb.exe" "D:\LCD_ZX_Games\game\temp.bas" -S 24576 -o "C:\LCD_ZX_Games\Gameout\Test.tap.bin" -O 3
------------------------------------------------------------
http://lcd-one.da.ru redirector is dead
Visit my http://members.inode.at/838331/index.html home page!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)