mirror of
https://github.com/ish-app/ish.git
synced 2026-02-01 14:32:26 +00:00
Implement bswap
This commit is contained in:
parent
83c130030e
commit
509fb7a2df
@ -76,3 +76,12 @@
|
||||
.each_reg x
|
||||
.purgem x
|
||||
.gadget_array bt
|
||||
|
||||
.macro x name reg
|
||||
.gadget bswap_\name
|
||||
bswap %\reg
|
||||
gret
|
||||
.endm
|
||||
.each_reg x
|
||||
.purgem x
|
||||
.gadget_list bswap, REG_LIST
|
||||
|
||||
@ -286,7 +286,7 @@ static inline bool gen_op(struct gen_state *state, gadget_t *gadgets, enum arg a
|
||||
#define BSF(src, dst,z) los(bsf, src, dst, z)
|
||||
#define BSR(src, dst,z) los(bsr, src, dst, z)
|
||||
|
||||
#define BSWAP(dst) UNDEFINED
|
||||
#define BSWAP(dst) ga(bswap, arg_##dst)
|
||||
|
||||
#define strop(op, rep, z) gag(op, sz(z) * size_count + rep_##rep, saved_ip)
|
||||
#define STR(op, z) strop(op, once, z)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user