Store rcx to r11 instead of stack in tolower()/toupper() tests
This commit is contained in:
12
tests.asm
12
tests.asm
@ -276,11 +276,9 @@ main:
|
||||
.tolowerLoop:
|
||||
movzx r10, byte [rdi]
|
||||
mov byte [rdi], r10b
|
||||
push rcx
|
||||
sub rsp, 8
|
||||
mov r11, rcx
|
||||
call tolower
|
||||
add rsp, 8
|
||||
pop rcx
|
||||
mov rcx, r11
|
||||
mov byte [rdi], al
|
||||
inc rdi
|
||||
inc r10
|
||||
@ -298,11 +296,9 @@ main:
|
||||
.toupperLoop:
|
||||
movzx r10, byte [rdi]
|
||||
mov byte [rdi], r10b
|
||||
push rcx
|
||||
sub rsp, 8
|
||||
mov r11, rcx
|
||||
call toupper
|
||||
add rsp, 8
|
||||
pop rcx
|
||||
mov rcx, r11
|
||||
mov byte [rdi], al
|
||||
inc rdi
|
||||
inc r10
|
||||
|
Reference in New Issue
Block a user