Problem compiling EhBasic with vasm
Posted: Sat May 23, 2020 7:07 pm
Hello,
I recently build my own 6502 computer thanks to Ben eater videos and also examples and tutorials from this forum. I also wanted to get EhBasic running so I set up everything like in reference manual compile it with simulator and it worked fine with my computer. So I decided to also add my own code to build simple interface from which I can run EhBasic or my other programs. So since I was using vasm because is pretty simple work with it I wanted to compile EhBasic with vasm. There I got few errors and warnings I don't understand. since I am still begginer and don't understand macros. there are also some garbage characters with I coudlnt get rid of after rewriting line. I know it is noob question but hopefully someone will be able help me. Thank you very much.
I compile with "vasm6502 -dotdir -Fbin min_mon.asm"
source files will be in attachment
Here are errors and warning I got:
error 10 in line 1551 of "basic.asm": number or identifier expected
included from line 8 of "min_mon.asm"
> .IF [* & $FF] == $FD
warning 1007 in line 1551 of "basic.asm": garbage at end of line
included from line 8 of "min_mon.asm"
> .IF [* & $FF] == $FD
error 10 in line 1630 of "basic.asm": number or identifier expected
included from line 8 of "min_mon.asm"
> CMP #[TK_TAB-$80]*2 ; compare normalised token * 2 with TAB
warning 2002 in line 1630 of "basic.asm": trailing garbage in operand
included from line 8 of "min_mon.asm"
> CMP #[TK_TAB-$80]*2 ; compare normalised token * 2 with TAB
error 10 in line 3105 of "basic.asm": number or identifier expected
included from line 8 of "min_mon.asm"
> .IF [* & $FF] == $FD
warning 1007 in line 3105 of "basic.asm": garbage at end of line
included from line 8 of "min_mon.asm"
> .IF [* & $FF] == $FD
error 10 in line 3342 of "basic.asm": number or identifier expected
included from line 8 of "min_mon.asm"
> CPX #<[LAB_224Da+2] ; from concatenate low return address?
warning 2002 in line 3342 of "basic.asm": trailing garbage in operand
included from line 8 of "min_mon.asm"
> CPX #<[LAB_224Da+2] ; from concatenate low return address?
error 10 in line 3344 of "basic.asm": number or identifier expected
included from line 8 of "min_mon.asm"
> CMP #>[LAB_224Da+2] ; from concatenate high return address?
warning 2002 in line 3344 of "basic.asm": trailing garbage in operand
included from line 8 of "min_mon.asm"
> CMP #>[LAB_224Da+2] ; from concatenate high return address?
warning 1007 in line 168 of "min_mon.asm": garbage at end of line
> .end RES_vec
I recently build my own 6502 computer thanks to Ben eater videos and also examples and tutorials from this forum. I also wanted to get EhBasic running so I set up everything like in reference manual compile it with simulator and it worked fine with my computer. So I decided to also add my own code to build simple interface from which I can run EhBasic or my other programs. So since I was using vasm because is pretty simple work with it I wanted to compile EhBasic with vasm. There I got few errors and warnings I don't understand. since I am still begginer and don't understand macros. there are also some garbage characters with I coudlnt get rid of after rewriting line. I know it is noob question but hopefully someone will be able help me. Thank you very much.
I compile with "vasm6502 -dotdir -Fbin min_mon.asm"
source files will be in attachment
Here are errors and warning I got:
error 10 in line 1551 of "basic.asm": number or identifier expected
included from line 8 of "min_mon.asm"
> .IF [* & $FF] == $FD
warning 1007 in line 1551 of "basic.asm": garbage at end of line
included from line 8 of "min_mon.asm"
> .IF [* & $FF] == $FD
error 10 in line 1630 of "basic.asm": number or identifier expected
included from line 8 of "min_mon.asm"
> CMP #[TK_TAB-$80]*2 ; compare normalised token * 2 with TAB
warning 2002 in line 1630 of "basic.asm": trailing garbage in operand
included from line 8 of "min_mon.asm"
> CMP #[TK_TAB-$80]*2 ; compare normalised token * 2 with TAB
error 10 in line 3105 of "basic.asm": number or identifier expected
included from line 8 of "min_mon.asm"
> .IF [* & $FF] == $FD
warning 1007 in line 3105 of "basic.asm": garbage at end of line
included from line 8 of "min_mon.asm"
> .IF [* & $FF] == $FD
error 10 in line 3342 of "basic.asm": number or identifier expected
included from line 8 of "min_mon.asm"
> CPX #<[LAB_224Da+2] ; from concatenate low return address?
warning 2002 in line 3342 of "basic.asm": trailing garbage in operand
included from line 8 of "min_mon.asm"
> CPX #<[LAB_224Da+2] ; from concatenate low return address?
error 10 in line 3344 of "basic.asm": number or identifier expected
included from line 8 of "min_mon.asm"
> CMP #>[LAB_224Da+2] ; from concatenate high return address?
warning 2002 in line 3344 of "basic.asm": trailing garbage in operand
included from line 8 of "min_mon.asm"
> CMP #>[LAB_224Da+2] ; from concatenate high return address?
warning 1007 in line 168 of "min_mon.asm": garbage at end of line
> .end RES_vec