-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_isprint.s
34 lines (29 loc) · 1.16 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
# **************************************************************************** #
# #
# ::: :::::::: #
# ft_isprint.s :+: :+: :+: #
# +:+ +:+ +:+ #
# By: vtarasiu <[email protected]> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ #
# Created: 2019/07/19 14:01:37 by vtarasiu #+# #+# #
# Updated: 2019/07/19 18:39:30 by vtarasiu ### ########.fr #
# #
# **************************************************************************** #
global ft_isprint
global _ft_isprint
ft_isprint:
_ft_isprint:
push rbp
mov rbp, rsp
cmp rdi, 32
jl .isprint_fail
cmp rdi, 126
jg .isprint_fail
.isprint_succ:
mov rax, 1
jmp .isprint_over
.isprint_fail:
mov rax, 0
.isprint_over:
pop rbp
ret