Has anyone managed to implement "structured assembler" macros for the gnu assembler? You know, like:
cpi r17, 12 _ife ;;do stuff. _else ;; do other stuff _endif
I've seen two separate ways to do this, one of which relies on macros being able to do stringification of symbol values, and one of which relies on being able to set ".org" (or equivalent) backward.
Apparently neither of these is possible in the gnu assembler :-(
OTOH, I've recently seen some assembler that hints that there might be some commonly used "brute-force" techniques for addressing stringification (at least for a limited range of values), so perhaps someone has already implemented these after all?
Have they? Are there "structured assembler" macros for gas?
(web searches seem pretty hopeless...)