You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I don't know if it is a pending issue or it is not working.
I have tested the attached code and when assembling it processes everything as if the condition was not interpreted.
.BIOS.BIOSVARS.FILENAME "TESTIFD.ROM";--------------------------------------------------------------------LABELEXIST:;Case 1: The Label does not exist. The ELSE must be processed.IFDEF THISLABELNOTEXIST CONSTANT1: EQU$01 CONSTANT2: EQU$02ELSECONSTANT1 EQU$01CONSTANT2 EQU$02ENDIF;Case 2: The Label exist. The ELSE does not have to be processed.IFDEF LABELEXISTCONSTANT3 EQU$03CONSTANT4 EQU$04ELSE CONSTANT3: EQU$03 CONSTANT4: EQU$04ENDIF;--------------------------------------------------------------------.PAGE 1.ROMMAIN:DI LD SP,[HIMEM] ;($FC4A) Stack at the top of memory EILOOP: halt ld A,7call SNSMATsub A,11111011B ;ESC JR Z,EXIT_HELPjpLOOPEXIT_HELP:call0
Failure to run is due to syntax error (unexpected : as is invalid), although I see your point of "should not be processed" as the condition is not met in both cases.
In this case, the error is generated during "preprocessing" phase 1, so it will check that all the code is valid and can be included.
duhow
changed the title
[BUG] IFDEF does not work
[BUG] Code processed despite IF condition is not met
Sep 4, 2024
Hello asMSX team!
Describe the bug
I don't know if it is a pending issue or it is not working.
I have tested the attached code and when assembling it processes everything as if the condition was not interpreted.
Current output
Code
TestIFDEF.asm.TXT
The text was updated successfully, but these errors were encountered: