why i can't use rsi at ror of Assembly code when calling function Assembly from C
With error: invalid combination of opcode and operands
Help me thank you
Assembly code:
section .text
global en_code
en_code:
mov ax,[rdi]
ror ax,rsi ;????
mov [r13],ax
mov rax,r13
ret
C code:
#include<stdio.h>
#include<string.h>
extern char* en_code();
int main()
{
printf("Here:%s .\n",en_code("ng",2));
return 0;
}