This is the first time I am talking to an assembly and cannot change the index values of an array. Here is the method I'm working on
int ascending_sort( char arrayOfLetters[], int arraySize )
{
char temp;
__asm
{
}
}
And here is what I tried
mov temp, 'X'
mov al, temp
mov arrayOfLetters[0], al
And that gave me error C2415: wrong type of operand
so i tried
mov temp, 'X'
mov al, temp
mov BYTE PTR arrayOfLetters[0], al
This is done, but it did not change the array ...
source
share