Mercurial > hg > index.cgi
comparison lwasm/instab.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 | 4fd16faa4d93 |
children | a584b9ddffc4 |
comparison
equal
deleted
inserted
replaced
471:ad0efd5835c3 | 472:e97f9a302c6a |
---|---|
46 lwasm_insn_setdata = 1 << 5, /* insn uses the data address for symbols */ | 46 lwasm_insn_setdata = 1 << 5, /* insn uses the data address for symbols */ |
47 lwasm_insn_is6800 = 1 << 6, /* insn is a 6800 compatibility operation */ | 47 lwasm_insn_is6800 = 1 << 6, /* insn is a 6800 compatibility operation */ |
48 lwasm_insn_is6809 = 1 << 7, /* insn is 6809 only */ | 48 lwasm_insn_is6809 = 1 << 7, /* insn is 6809 only */ |
49 lwasm_insn_is6809conv = 1 << 8, /* insn is 6809 convenience only */ | 49 lwasm_insn_is6809conv = 1 << 8, /* insn is 6809 convenience only */ |
50 lwasm_insn_is6309conv = 1 << 9, /* insn is 6309 convenience only */ | 50 lwasm_insn_is6309conv = 1 << 9, /* insn is 6309 convenience only */ |
51 lwasm_insn_isemuext = 1 << 10, /* insn is an emulator extension */ | |
51 lwasm_insn_normal = 0 | 52 lwasm_insn_normal = 0 |
52 }; | 53 }; |
53 | 54 |
54 | 55 |
55 #define PARSEFUNC(fn) void (fn)(asmstate_t *as, line_t *l, char **p) | 56 #define PARSEFUNC(fn) void (fn)(asmstate_t *as, line_t *l, char **p) |