-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isdigit.s
34 lines (28 loc) · 1.15 KB
/
ft_isdigit.s
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
33
34
# **************************************************************************** #
# #
# ::: :::::::: #
# ft_isdigit.s :+: :+: :+: #
# +:+ +:+ +:+ #
# By: vtarasiu <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/07/19 13:24:52 by vtarasiu #+# #+# #
# Updated: 2019/07/19 13:55:49 by vtarasiu ### ########.fr #
# #
# **************************************************************************** #
global ft_isdigit
global _ft_isdigit
ft_isdigit:
_ft_isdigit:
push rbp
mov rbp, rsp
cmp rdi, 48
jl .isdigit_fail
cmp rdi, 57
jg .isdigit_fail
mov rax, 1
jmp .isdigit_over
.isdigit_fail:
mov rax, 0
.isdigit_over:
pop rbp
ret