Skip to content

Commit

Permalink
Implement rotate instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
tbodt committed May 25, 2018
1 parent ab81122 commit 5b0ad80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion emu/gadgets-x86/bits.S
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
.endr
.endm

.irp type, shl,shr,sar
.irp type, shl,shr,sar,rol,ror
.irp size, 8,16,32
do_shift \type, \size
.endr
Expand Down
4 changes: 2 additions & 2 deletions emu/gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ static inline void gen_op(struct gen_state *state, gadget_t *gadgets, enum arg a
#define CVT ga(cvt, sz(oz))
#define CVTE UNDEFINED

#define ROL(count, val,z) UNDEFINED
#define ROR(count, val,z) UNDEFINED
#define ROL(count, val,z) los(rol, count, val, z)
#define ROR(count, val,z) los(ror, count, val, z)
#define SHL(count, val,z) los(shl, count, val, z)
#define SHR(count, val,z) los(shr, count, val, z)
#define SAR(count, val,z) los(sar, count, val, z)
Expand Down

0 comments on commit 5b0ad80

Please sign in to comment.