From fcaf7f98f744d5437c0d8580efbc7a02155fbae7 Mon Sep 17 00:00:00 2001 From: zombie Date: Sat, 18 Sep 2021 06:35:54 -0400 Subject: [PATCH] made case use length_func --- case.asm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/case.asm b/case.asm index c99c448..790cb74 100644 --- a/case.asm +++ b/case.asm @@ -1,14 +1,19 @@ extern puts +%include "../inc/length_func.inc" + section .data text db "rEEEeee!EEeeeEeEEeE!EEEEEeEEE$eeeEE)EEeEeEEeeeEeEEEEEeeeEeeEeeEeeeeeEeEeEeeE",0 - textlength db 76 + textlength db 0 section .text global main main: sub rsp, 8 ;enter + mov r8, text ;get textlength + call length_func + mov [textlength], rax xor rcx, rcx ;we do this to clear rcx incase it had garbage in it before