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 comparison operators ==, !=, <, >, <=, >=

boeckmann opened this issue · comments

Operators return 1 if true and 0 if false. Operators return undef if one of the operands is undefined. Returned type is byte.

Implemented by f56f7cc.

One thing I do not like about my solution is that < and > now have a different meaning depending on context. a) byte select and b) as comparison operator. But I don´t like things like LT, GT, NE, EQ etc. neither. So I probably leave it as it is now.

I want to leave it as byte select because it is VERY common in the Commodore world.