I am trying to implement a function where it converts lower case to upper case right now, not affecting the punctuation or numbers. but this code seems to not be working. please help thank you!
void capital(char *x)
{
__asm
{
PUSH EAX
PUSH EBX
PUSH ECX
PUSH EDX
PUSH ESI
PUSH EDI
mov ebx, string
next_char:
lodsb
test al, al
jz done
cmp al, 'a'
bl next_char
cmp al, 'z'
bg next_char
sub al, 'a'-'A'
mov [esi-1], al
jmp next_char
POP EDI
POP ESI
POP EDX
POP ECX
POP EBX
POP EAX
}