08-20-2013, 03:10 PM
Trying to compile the sub-routine below...
...produces this error message:
However the following sub-routine compiles just fine:
This other sub-routine also compiles just fine:
ZX BASIC parser is obviously misunderstanding those two apostrophes in the first case.
Code:
sub test()
asm
ex af,af' ; A'=player
end asm
end sub
...produces this error message:
Quote:C:\...\zxbasic-1.3.0s1022\dist>zxb test.bas
test.bas:4: Error: illegal preprocessor character '='
However the following sub-routine compiles just fine:
Code:
sub test()
asm
ex af,af' ; A=player
end asm
end sub
This other sub-routine also compiles just fine:
Code:
sub test()
asm
exx ; A'=player
end asm
end sub
ZX BASIC parser is obviously misunderstanding those two apostrophes in the first case.