aboutsummaryrefslogtreecommitdiff
path: root/ft_atoi_base.s
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-04-12 19:54:39 +0200
committerCharles <sircharlesaze@gmail.com>2020-04-12 19:54:39 +0200
commit8529228d532fffedf20fc892467c7676121f219a (patch)
tree472d86a454ba9402affdf0e8edd8cc3c47b0f4c1 /ft_atoi_base.s
parent28424105e255f0a4c887b6e6a83afd6dce372709 (diff)
parent94d61d8aaee7a3df0dc1f055e27e0f4484cb3ffa (diff)
downloadlibasm-8529228d532fffedf20fc892467c7676121f219a.tar.gz
libasm-8529228d532fffedf20fc892467c7676121f219a.tar.bz2
libasm-8529228d532fffedf20fc892467c7676121f219a.zip
Added change in ft_write, ft_readlinux
Diffstat (limited to 'ft_atoi_base.s')
-rw-r--r--ft_atoi_base.s14
1 files changed, 7 insertions, 7 deletions
diff --git a/ft_atoi_base.s b/ft_atoi_base.s
index 663b399..5a8d4c1 100644
--- a/ft_atoi_base.s
+++ b/ft_atoi_base.s
@@ -19,7 +19,7 @@
; 2. pass param with regs rdi, rsi, rdx, rcx, r8, r9
; if there is more pass them onto the stack in reverse order
; 3. use call
-; 4. restore stack state by removing passed on the stack param
+; 4. restore stack state by removing passed on the stack param
; 5. return value of callee in rax
; 6. restore the caller-saved register and saved passed params
; We can assume that no other register has been altered.
@@ -38,12 +38,12 @@
; 6. use ret
-extern _ft_strlen
+extern ft_strlen
-global _ft_atoi_base
+global ft_atoi_base
; int ft_atoi_base(const char *str, const char *base);
-_ft_atoi_base:
+ft_atoi_base:
; ===prolog===
; long int nb (8)
; int radix (4)
@@ -95,9 +95,9 @@ FT_ATOI_BASE_SIGN_LOOP:
; base radix
push rdi
mov rdi, rsi
- call _ft_strlen
+ call ft_strlen
pop rdi
- mov dword [rsp + 8], eax
+ mov dword [rsp + 8], eax
; main loop
FT_ATOI_BASE_LOOP:
@@ -163,7 +163,7 @@ _check_base:
mov dword [rsp], 0
; check for empty or size 1 base
push rdi
- call _ft_strlen
+ call ft_strlen
pop rdi
cmp rax, 2
jl CHECK_BASE_FALSE