Mercurial > hg > index.cgi
comparison lwasm/lwasm.h @ 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 | 2c1c5dd84024 |
children | 8181ddd707f1 |
comparison
equal
deleted
inserted
replaced
471:ad0efd5835c3 | 472:e97f9a302c6a |
---|---|
105 PRAGMA_M80EXT = 1 << 21, // enable Macro-80C assembler extensions | 105 PRAGMA_M80EXT = 1 << 21, // enable Macro-80C assembler extensions |
106 PRAGMA_6809CONV = 1 << 22, // enable 6809 convenience ops | 106 PRAGMA_6809CONV = 1 << 22, // enable 6809 convenience ops |
107 PRAGMA_6309CONV = 1 << 23, // enable 6309 convenience ops | 107 PRAGMA_6309CONV = 1 << 23, // enable 6309 convenience ops |
108 PRAGMA_NEWSOURCE = 1 << 24, // don't use compatibility source format | 108 PRAGMA_NEWSOURCE = 1 << 24, // don't use compatibility source format |
109 PRAGMA_OPERANDSIZE = 1 << 25, // warn if operand size is bigger than required | 109 PRAGMA_OPERANDSIZE = 1 << 25, // warn if operand size is bigger than required |
110 PRAGMA_EMUEXT = 1 << 26, // enable emulator extensions | |
110 PRAGMA_CLEARBIT = 1 << 31 // reserved to indicate negated pragma flag status | 111 PRAGMA_CLEARBIT = 1 << 31 // reserved to indicate negated pragma flag status |
111 }; | 112 }; |
112 | 113 |
113 enum | 114 enum |
114 { | 115 { |