42-archive/libftasm/srcs/ft_toupper.s
2017-08-27 22:29:48 +02:00

13 lines
144 B
ArmAsm

global _ft_toupper
global ft_toupper
_ft_toupper:
ft_toupper:
mov rax, rdi
cmp rdi, 'a'
jl end
cmp rdi, 'z'
jg end
sub rax, 32
end:
ret