comparison lwasm/pragma.c @ 472:e97f9a302c6a

Add emuext pragma and associated instructions. This provides two emulator specific instructions ("log" and "debug") enabled by the "emuext" pragma. This is from a patch provided by tim Lindner <tlindner@macmess.org>. From Tim's submission: ---- I stole the whole patch from Erik Gavriluk. I hope he doesn't mind. :) The two instructions are "debug" and "log". They are enabled with pragmas. I also added them to the manual. Hopefully all is well. ---- Said Erik Gavriluk <erik@bombfactory.com> in response: ...happy to see them picked up in mainline (if you choose to do so)....
author William Astle <lost@l-w.ca>
date Thu, 01 Nov 2018 23:00:00 -0600
parents da72c084e0ac
children 8181ddd707f1
comparison
equal deleted inserted replaced
471:ad0efd5835c3 472:e97f9a302c6a
73 { "6809conv", "no6809conv", PRAGMA_6809CONV }, 73 { "6809conv", "no6809conv", PRAGMA_6809CONV },
74 { "6309conv", "no6309conv", PRAGMA_6309CONV }, 74 { "6309conv", "no6309conv", PRAGMA_6309CONV },
75 { "newsource", "nonewsource", PRAGMA_NEWSOURCE }, 75 { "newsource", "nonewsource", PRAGMA_NEWSOURCE },
76 { "nooldsource", "oldsource", PRAGMA_NEWSOURCE }, 76 { "nooldsource", "oldsource", PRAGMA_NEWSOURCE },
77 { "operandsizewarning", "nooperandsizewarning", PRAGMA_OPERANDSIZE }, 77 { "operandsizewarning", "nooperandsizewarning", PRAGMA_OPERANDSIZE },
78 { "emuext", "noemuext", PRAGMA_EMUEXT },
78 { 0, 0, 0 } 79 { 0, 0, 0 }
79 }; 80 };
80 81
81 int parse_pragma_helper(char *p) 82 int parse_pragma_helper(char *p)
82 { 83 {