J'essaie d'insérer une instruction JMP en utilisant l'assembleur en ligne mais je reçois une erreur disant:C++ erreur assembleur en ligne
« expression expected »
// Allocate a place in memory for the bytes
BYTE *jmp = (BYTE*)malloc(len + 5);
// Copy the bytes of original + length to the allocated memory place:
memcpy(jmp, orig, len);
// Next we want to insert a jump back to the original + length
jmp += len; // increment to the end of the copied bytes
jmp[0] = _asm JMP // this is where i get the error
*(DWORD*)(jmp + 1) = (DWORD)(orig + len - jmp) - 5;
Je suis nouveau à l'Assemblée et je voudrais connaître un moyen d'atteindre cet objectif d'une autre manière.