diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-06-27 13:00:19 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-06-27 13:00:19 +0300 |
| commit | 6aefc5167a64e05580dcf1afc70efa496ed145ac (patch) | |
| tree | 57032839fd8f5f748b273c679f3766c6911bbca5 /ops/common.h | |
| parent | e80d3758a37848cda7990e8eff68ed9df344afa4 (diff) | |
| download | copyjit-6aefc5167a64e05580dcf1afc70efa496ed145ac.tar.gz copyjit-6aefc5167a64e05580dcf1afc70efa496ed145ac.zip | |
add immediate loading
Diffstat (limited to 'ops/common.h')
| -rw-r--r-- | ops/common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ops/common.h b/ops/common.h index 8c504d3..546b064 100644 --- a/ops/common.h +++ b/ops/common.h @@ -22,7 +22,11 @@ typedef void (*op_call)(reg_t *sp, reg_t a, reg_t x, reg_t y, reg_t o); #define UNUSED(x) (void)(x); +#define IMM() (*(unsigned long *)(&__imm)) + #define __hidden __attribute__((visibility("hidden"))) __hidden extern void *__next_op; +__hidden extern unsigned long __imm; + #endif /* OPS_COMMON_H */ |
