DCPUTeam / DCPUToolchain

[ARCHIVED] The code repository for the DCPU-16 Toolchain.
http://dcputoolcha.in/
MIT License
96 stars 14 forks source link

Preprocessor can't match any ELSE or ENDIF statements to the corresponding IFDEF or IFNDEF #232

Open unbibium opened 11 years ago

unbibium commented 11 years ago

Here's the source file:

.DEFINE TESTVAR 1 

:START
   SET A, 1
.IFDEF TESTVAR
   SET B, 3
.ENDIF
   SET PC, START

Attempting to assemble with dtasm gives this:

error: free occuring .ENDIF without a matching .IF near line 7 of 'definetest.dasm16'
assembler: error occurred.