Tits
This commit is contained in:
parent
23125185c3
commit
b5e1d53f01
4 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
cmake_minimum_required(VERSION 3.14)
|
||||
project (z)
|
||||
project (zlib)
|
||||
|
||||
#set(CMAKE_ASM_NASM_LINK_EXECUTABLE ld)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
global _libz_strlen
|
||||
global libz_strlen
|
||||
section .text
|
||||
|
||||
_libz_strlen:
|
||||
libz_strlen:
|
||||
sub rsp, 8 ;enter
|
||||
|
||||
mov r10, rdi
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue