diff --git a/CMakeLists.txt b/CMakeLists.txt index a42cee9..28c2089 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.14) -project (z) +project (zlib) #set(CMAKE_ASM_NASM_LINK_EXECUTABLE ld) diff --git a/example.asm b/example.asm index 8d1c60c..73cc0b0 100644 --- a/example.asm +++ b/example.asm @@ -1,5 +1,5 @@ extern puts -extern _libz_strlen +extern libz_strlen extern libz_strcmp extern libz_tolower @@ -33,7 +33,7 @@ main: mov rdi, text2 - call _libz_strlen + call libz_strlen add [stoer], rax diff --git a/strlen.asm b/strlen.asm index d1fa5c9..64fad05 100644 --- a/strlen.asm +++ b/strlen.asm @@ -1,7 +1,7 @@ -global _libz_strlen +global libz_strlen section .text -_libz_strlen: +libz_strlen: sub rsp, 8 ;enter mov r10, rdi diff --git a/tolower.asm b/tolower.asm index a9672ba..add19b3 100644 --- a/tolower.asm +++ b/tolower.asm @@ -1,4 +1,4 @@ -extern _libz_strlen +extern libz_strlen global libz_tolower section .text @@ -8,7 +8,7 @@ libz_tolower: mov r11, rdi - call _libz_strlen + call libz_strlen mov r10, rax