Hello! I'm trying to swap some characters in this form, in Linux+NASM:
abc -> cab -> bca -> abc
I tried the following method
section .data string: db 'abc',10 strlen: equ $-string section .text global _start _start: mov ebx,1 add ebx,string mov string, [ebx]
But it gives me these errors:
error: invalid combination of opcode and operands
Please help me understanding what it means and how to do it in the best way.