This commit is contained in:
zombie maniac 2021-10-02 08:31:21 -04:00
parent 8960a62da9
commit 23125185c3
4 changed files with 7 additions and 7 deletions

View file

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

View file

@ -1,5 +1,5 @@
extern puts extern puts
extern libz_strlen extern _libz_strlen
extern libz_strcmp extern libz_strcmp
extern libz_tolower extern libz_tolower
@ -33,7 +33,7 @@ main:
mov rdi, text2 mov rdi, text2
call libz_strlen call _libz_strlen
add [stoer], rax add [stoer], rax

View file

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

View file

@ -1,4 +1,4 @@
extern libz_strlen extern _libz_strlen
global libz_tolower global libz_tolower
section .text section .text
@ -8,7 +8,7 @@ libz_tolower:
mov r11, rdi mov r11, rdi
call libz_strlen call _libz_strlen
mov r10, rax mov r10, rax