From 34f348f45b3c113433176e7553b5074aad1d5c37 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 18 Apr 2020 15:20:23 +0200 Subject: eSpeak is the problem --- Makefile | 1 - asm/jo_r_loop.asm | 17 ++++++----------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 6dfe8e6..cd09c6c 100644 --- a/Makefile +++ b/Makefile @@ -41,7 +41,6 @@ CFLAGS += -Wno-variadic-macros CFLAGS += -Werror CFLAGS += -pedantic CFLAGS += ${DEBUG} -# -------------------------------------------------------------------------------------- # # CFLAGS += ${OPTI} # -------------------------------------------------------------------------------------- # OPTI = -O2 -pipe diff --git a/asm/jo_r_loop.asm b/asm/jo_r_loop.asm index 6264cf1..a8b41e0 100644 --- a/asm/jo_r_loop.asm +++ b/asm/jo_r_loop.asm @@ -14,26 +14,21 @@ ;; ------------------------------- section .text - extern puts extern jo_n_speak + extern jo_n_notify global jo_r_loop jo_r_loop: - push rcx + push rbp push rbx mov rbx, rsi - mov rcx, rdi + mov ebp, edi speak1: - cmp rcx, 0x1 - jne speak1 + ;; cmp edx, 1 + ;; jne speak1 mov rdi, [rbx + 8 * 2] call jo_n_speak - pop rcx - push rdi - mov rdi, message - call puts - pop rdi jmp speak1 return: @@ -41,4 +36,4 @@ return: retq section .data - message: db "qwe", 0x0 + msg: db "qwe", 0x0 -- cgit v1.2.3