summaryrefslogtreecommitdiff
path: root/cgiwas.c
diff options
context:
space:
mode:
authorJohn van Groningen2011-04-19 09:43:10 +0000
committerJohn van Groningen2011-04-19 09:43:10 +0000
commit914651427fe8bf50616cb37951ab5d594874d285 (patch)
treeb9b45f4751a7fe679a06fc1c8d04b6a77b155852 /cgiwas.c
parentuse #NO_APP to assemble faster, remove space after r8 and r9 (diff)
add rotl% and rotr% instructions
Diffstat (limited to 'cgiwas.c')
-rw-r--r--cgiwas.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/cgiwas.c b/cgiwas.c
index a62ff2a..acaa9e9 100644
--- a/cgiwas.c
+++ b/cgiwas.c
@@ -4016,6 +4016,18 @@ static void w_as_instructions (register struct instruction *instruction)
case IMOD:
w_as_floordiv_mod_instruction (instruction,1);
break;
+ case IROTL:
+ w_as_shift_instruction (instruction,"rol");
+ break;
+ case IROTR:
+ w_as_shift_instruction (instruction,"ror");
+ break;
+ case IROTL_S:
+ w_as_shift_s_instruction (instruction,"rol");
+ break;
+ case IROTR_S:
+ w_as_shift_s_instruction (instruction,"ror");
+ break;
case IFMOVE:
instruction=w_as_fmove_instruction (instruction);
break;