aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--asm/jo_c_args.asm4
-rw-r--r--asm/jo_r_lowbat.asm10
2 files changed, 7 insertions, 7 deletions
diff --git a/asm/jo_c_args.asm b/asm/jo_c_args.asm
index 47a2032..c18fbf7 100644
--- a/asm/jo_c_args.asm
+++ b/asm/jo_c_args.asm
@@ -18,7 +18,7 @@ jo_c_args: ; jo_c_args(argc: rdi, *argv[]: rdi)
cmp rdi, 0x2
jle no_args
push rdi
- mov rdi, [rsi + 4 * 0]
+ mov rdi, [rsi + 8 * 1]
push rsi
mov rsi, reference
mov rdx, len
@@ -27,7 +27,7 @@ jo_c_args: ; jo_c_args(argc: rdi, *argv[]: rdi)
pop rdi
cmp rax, 0x0
jne no_args
- mov rax, [rsi + 4 * 0]
+ mov rax, [rsi + 8 * 2]
retq
no_args:
diff --git a/asm/jo_r_lowbat.asm b/asm/jo_r_lowbat.asm
index 5c9b2b7..9753a12 100644
--- a/asm/jo_r_lowbat.asm
+++ b/asm/jo_r_lowbat.asm
@@ -18,7 +18,7 @@
;; c: check
section .text
- extern printf
+ extern puts
extern jo_n_speak
extern jo_c_args
global jo_r_lowbat
@@ -38,13 +38,13 @@ jo_r_lowbat:
joprint:
push rdi
push rsi
- mov rdi, fmt
- mov rsi, rax
- call printf
+ ;; mov rdi, fmt
+ mov rdi, rax
+ call puts
pop rsi
pop rdi
retq
section .data
msg: db "Welcome back, partner!", 0x0
- fmt: db "argv[2]: %s\n", 0x0
+ ;; fmt: db "argv[2]: %s\n", 0x0