You still haven't explained what the problem is (or which files you have changed), "it doesn't work" doesn't tell me anything.
Based on the code snippet I'm assuming you're editing the
end of engine/move/title.asm
If I copy-paste your code onto line 407, I get the error:
Code:
ERROR: main.asm(10) -> engine/movie/title.asm(407):
Expected constant expression: '_GREEN' is not constant at assembly time
error: Assembly aborted (1 error)!
make: *** [Makefile:89: main_red.o] Error 1
This is because the _GREEN is not inside a DEF function like the other version checks are, changing the first line to
causes the code to compile fine (but it won't actually do anything since _GREEN is never defined anywhere).
If I copy-paste
Code:
db $62,$63,$64,$7F,$65,$66,$67,$68,$69,"@" ; "Green Version"
to the
IF DEF(_RED) block, I get a red rom with the text "green version" on the title screen, which is what I assume you wanted to happen.