This commit is contained in:
Thomas Muller 2021-10-02 13:33:15 -04:00
parent 23125185c3
commit b5e1d53f01
Signed by untrusted user: thomas
GPG key ID: AF006EB730564952
4 changed files with 7 additions and 7 deletions

View file

@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.14)
project (z)
project (zlib)
#set(CMAKE_ASM_NASM_LINK_EXECUTABLE ld)

View file

@ -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

View file

@ -1,7 +1,7 @@
global _libz_strlen
global libz_strlen
section .text
_libz_strlen:
libz_strlen:
sub rsp, 8 ;enter
mov r10, rdi

View file

@ -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