Epacik / 8051-ASM-Plugin

8051 Assembly support for code editors
MIT License
4 stars 0 forks source link

Could it support macro in .a51 ? #2

Open NickLiu635 opened 1 year ago

NickLiu635 commented 1 year ago

Some environment support preprocessor to use #define FOUR 4 even #include "defs.h". In addition, some languages support the following syntax.

WRITE_XDATA MACRO dst, val
            mov dptr, #dst
            mov a, #val
            movx @dptr, a
            ENDM
main:
            WRITE_XDATA  0x8000 01h
Epacik commented 1 year ago

Yes, although it may take some time. I'm currently working on a lexical analysis and parsing of the code user is writing. I should be able to add Macros, include and other popular directives to the plugin.