12-06-2004, 12:33 AM
I'm trying to compile some old code, a bit spaghetti'ish, to really proof-test the compiler.
I've found that the compiler does not understand some QB stuff:
---
The compiler complains with, stopping at the comma:
Also with this line, stopping at the ":" (error: expected ","):
---
I had to change it for:
to make it work. Plus LINE INPUT throws a "?" on screen, when it shouldn't. Not a single LINE INPUT variable$ worked in the code, it needs a string literal and a ";" before the variable to work.
---
QB accepted:
Which closed every open file. FB doesn't, it complains about "expression expected".
---
I also got something you should document (I dunno if you have done it already): If your BAS filename has a "-" the assembler fails with
My BAS file was called OPA-OPA.BAS.
The ASM lines that are not working are those:
Error messages:
I renamed the file to OPAOPA.BAS and it compiled without problems.
Awesome work! Those are just minor issues and the code was like 120 Kb and written 6 years ago... Really UGLY code.
I've found that the compiler does not understand some QB stuff:
---
The compiler complains with, stopping at the comma:
Code:
NEXT x, y
Also with this line, stopping at the ":" (error: expected ","):
---
Code:
LINE INPUT sn$: sn$ = LCASE$(sn$)
I had to change it for:
Code:
LINE INPUT ">"; sn$: sn$ = LCASE$(sn$)
to make it work. Plus LINE INPUT throws a "?" on screen, when it shouldn't. Not a single LINE INPUT variable$ worked in the code, it needs a string literal and a ";" before the variable to work.
---
QB accepted:
Code:
CLOSE
Which closed every open file. FB doesn't, it complains about "expression expected".
---
I also got something you should document (I dunno if you have done it already): If your BAS filename has a "-" the assembler fails with
Code:
junk at the end of line, first unrecognized character is `-'
My BAS file was called OPA-OPA.BAS.
The ASM lines that are not working are those:
Code:
.globl fb_opa-opa_entry
.globl FB_OPA-OPA_ENTRY
fb_opa-opa_entry:
FB_OPA-OPA_ENTRY:
Error messages:
Code:
opa-opa.asm: Assembler messages:
opa-opa.asm:10: Error: junk at end of line, first unrecognized character is `-'
opa-opa.asm:11: Error: junk at end of line, first unrecognized character is `-'
opa-opa.asm:12: Error: invalid character '_' in mnemonic
opa-opa.asm:13: Error: invalid character '_' in mnemonic
I renamed the file to OPAOPA.BAS and it compiled without problems.
Awesome work! Those are just minor issues and the code was like 120 Kb and written 6 years ago... Really UGLY code.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i