Error with over 3 asm files

Bug reports (if you don't/won't have a Github account)
Post Reply
WauloK
Member
Posts: 63
Joined: Thu Oct 10, 2019 10:45 am

Error with over 3 asm files

Post by WauloK »

It drove me crazy for a while and I don't know what's going on, but if I use this line the compile is successful:
zcc +vz -zorg=31488 -vn -m file.c foxsprites.asm file_title.asm file_music.asm sprites.asm -o output.vz -create-app -lndos -z80-verb
But if I do it this way:
zcc +vz -zorg=31488 -vn -m file.c *.asm -o output.vz -create-app -lndos -z80-verb
I get this error:
Reading 'sprites.asm' = 'sprites.asm'
Error at file '*.asm' line 953: syntax error

Errors in source file *.asm:
Error at file '*.asm' line 953: syntax error
If I take out ONE of the .asm files the last commandline above works fine.
I thought my asm code was somehow faulty. It didn't have 953+ lines. Only 242
User avatar
dom
Well known member
Posts: 2072
Joined: Sun Jul 15, 2007 10:01 pm

Post by dom »

That?s weird. What os are you on? It looks like the shell glob for *.asm has picked up something it shouldn?t.

If you could zip up that directory and send it to me I?ll see if I can reproduce it and come up with a solution.
WauloK
Member
Posts: 63
Joined: Thu Oct 10, 2019 10:45 am

Post by WauloK »

I think I've fixed it now. The error is not occurring any more.
I think because I used
include "sprites.asm"
in another file
Then when I compile with *.asm it includes twice and confuses it.
Trying to work out another way to make sure the sprites.asm file is added to the bottom of another .asm file but without using include
In the meantime I am specifying each .asm manually and excluding sprites.asm
Post Reply