Implement the toUpper function that converts lower-case letters in a string to upper-case. The function takes one parameter: char *string. string is a char type pointer, which points to the beginning of the string. Because C- style strings are terminated by a zero, we do not need to take the length of the string as another parameter.
I need help getting started, I don't know what I am doing!!
void toUpper(char *string) {
__asm{
PUSH EAX
PUSH EBX
PUSH ECX
PUSH EDX
PUSH ESI
PUSH EDI
MOV EBX, string
/* Your code begins below this line. */
/* Your code ends above this line. */
POP EDI
POP ESI
POP EDX
POP ECX
POP EBX
POP EAX
}
}