Serious error - File vera.inc, line 3 (Zone <untitled>): Value not defined (MACHINE_C64).

sfulham

New Member
Dec 23, 2019
2
0
1
Hey, I'm trying to assemble the demos in the x16 demos repository, and when I try to assemble the file I get the error: Serious error - File vera.inc, line 3 (Zone <untitled>): Value not defined (MACHINE_C64). The command I used to assemble was: ./acme -f cbm -I C:\Users\NAME\Downloads\x16emu_win-r35\x16-demo-master\assembly\ --cpu 65c02 -o demo.prg C:\Users\NAME\Downloads\x16emu_win-r35\x16-demo-master\assembly\sprite-demo.asm
 

Jestin

New Member
Jan 25, 2020
10
7
3
In case you are still having this problem, I believe it is because you lack a -DMACHINE_C64=0 argument on your command line. The -D<SYMBOL_NAME> argument allows you to specify a global symbol. The code you are trying to assemble must contain a reference to this symbol (most likely as a pre-processor directive used for optional assembly), so by not specifying a value the assembly fails.

A lot of the demos have been written to be able to optionally assemble on the C64, so it's important to tell the assembler that is NOT what you are doing.