-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isdigit.s
36 lines (31 loc) · 1.09 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
35
36
# **************************************************************************** #
# #
# ::: :::::::: #
# ft_isdigit.s :+: :+: :+: #
# +:+ +:+ +:+ #
# By: edelangh <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2015/03/24 13:56:38 by edelangh #+# #+# #
# Updated: 2015/03/27 18:17:42 by edelangh ### ########.fr #
# #
# **************************************************************************** #
section .text
global _ft_isdigit
; rdi rsi rdx
; edi esi edx
_ft_isdigit:
enter 0, 0
cmp edi, '0'
jl nope
cmp edi, '9'
jg nope
jmp yep
yep:
mov rax, 1
jmp end
nope:
mov rax, 0
jmp end
end:
leave
ret