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