aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--asm/jo_r_loop.asm17
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