-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isprint.s
35 lines (31 loc) · 1.09 KB
/
ft_isprint.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
# **************************************************************************** #
# #
# ::: :::::::: #
# ft_isprint.s :+: :+: :+: #
# +:+ +:+ +:+ #
# By: edelangh <edelangh@student.42.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2015/03/24 14:15:44 by edelangh #+# #+# #
# Updated: 2015/03/27 18:18:00 by edelangh ### ########.fr #
# #
# **************************************************************************** #
section .text
global _ft_isprint
; rdi rsi rdx
; edi esi edx
_ft_isprint:
enter 0, 0
cmp edi, ' '
jl nope
cmp edi, '~'
jg nope
jmp yep
yep:
mov rax, 1
jmp end
nope:
mov rax, 0
jmp end
end:
leave
ret