boeckmann / asm6502

Small but useful 6502 assembler in ~3K lines of ANSI C code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement unary is-defined operator ?, prohibit undefined .IF argument, remove .IFDEF

boeckmann opened this issue · comments

At the moment ? is used to return an undefined value. But the following usage seems to be more convinient:

.IF ?VICE
.ENDIF

Testing for undefined value should be much more common than expressing an undefined value. Undefined value will become .?.

Undefined arguments to .IF can be prohibited. .IFDEF is redundant and can be removed. Both not decided yet.

? and .? are implemented by dd2eda9. Regarding .IF and .IFDEF, a final decision is not made yet.

leave .ifdef, .ifndef in for now.