-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_toupper.s
More file actions
32 lines (28 loc) · 1.15 KB
/
ft_toupper.s
File metadata and controls
32 lines (28 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# **************************************************************************** #
# #
# ::: :::::::: #
# ft_toupper.s :+: :+: :+: #
# +:+ +:+ +:+ #
# By: vtarasiu <vtarasiu@student.unit.ua> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/07/19 14:12:43 by vtarasiu #+# #+# #
# Updated: 2019/07/19 14:18:02 by vtarasiu ### ########.fr #
# #
# **************************************************************************** #
global ft_toupper
global _ft_toupper
ft_toupper:
_ft_toupper:
push rbp
mov rbp, rsp
mov r11, rdi
cmp rdi, 97
jl .toupper_over
cmp rdi, 122
jg .toupper_over
sub rdi, 32
.toupper_over:
mov rax, rdi
mov rdi, r11
pop rbp
ret