asMSX icon indicating copy to clipboard operation
asMSX copied to clipboard

Conditional assembly does not evade tag definitions

Open jamque opened this issue 4 years ago • 1 comments

Take this code

USE_SCREEN=5
  ZILOG
  BIOS
  ROM
  START    GAME
  
GAME:
  
IF USE_SCREEN == 4
  call SCREEN4RENDER
ENDIF

IF USE_SCREEN == 5
  call SCREEN5RENDER
ENDIF

SCREEN5RENDER:
  ret

and asmsx says in reference to call SCREEN4RENDER

TEST.ASM, line 10: undefined identifier

Shouldn't it ignore the tags inside the IF before looking to see if that CALL SCREEN4RENDER exists?

jamque avatar Aug 02 '21 10:08 jamque

Related with #58

Fubukimaru avatar Aug 02 '21 10:08 Fubukimaru

Fixed in #113

duhow avatar Nov 04 '23 10:11 duhow