From 45984f87821d62dfb95002de4ec8c9872b1510f6 Mon Sep 17 00:00:00 2001 From: zombie Date: Sat, 27 Nov 2021 04:43:03 -0500 Subject: [PATCH] changed case to use the new tolower --- case.asm | 6 ++---- lib/zombie-lib | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/case.asm b/case.asm index 8a6962b..c114b12 100644 --- a/case.asm +++ b/case.asm @@ -11,20 +11,18 @@ section .text main: sub rsp, 8 ;enter - cmp rdi, 2 jne _argument_error ;if its not exactly 2 then exit add rsi, 8 ;get the second argument because the first argument is the path mov r8, [rsi] ;this block here fenagles the pointer into memeory instead of a register - mov [tempstore], r8 ; i also really with i had the abilty to mov [thing1], [thing2] + mov rdi, r8 ; i also really with i had the abilty to mov [thing1], [thing2] - mov rdi, [tempstore] call libz_tolower ;libz_tolower modifies the text you send it - mov rdi, [tempstore] + mov rdi, rax cld call puts ;this is the puts way of printing a string diff --git a/lib/zombie-lib b/lib/zombie-lib index 048a430..0428078 160000 --- a/lib/zombie-lib +++ b/lib/zombie-lib @@ -1 +1 @@ -Subproject commit 048a43083ab59b05f5139f0e21617a08a22550bf +Subproject commit 0428078991057ebf2be8ef4c84094ee33a548468