llvm-mos icon indicating copy to clipboard operation
llvm-mos copied to clipboard

Symbols based on .zeropage symbols should also be .zeropage

Open mysterymath opened this issue 3 years ago • 0 comments

Whenever a symbol gets its value from an arithmetic expression involving symbols marked as .zeropage, it is sometimes possible to know statically that the result is also in the zero page. In such cases, the resulting symbol should also be marked accordingly.

In particularly, this allows creating named aliases for register variables, which is pretty essential to readable assembly-language programming.

mysterymath avatar Mar 06 '23 20:03 mysterymath