aboutsummaryrefslogtreecommitdiffstats
path: root/asm
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-17 19:35:54 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-17 19:35:54 +0200
commita981673ec7b997bc664d0dce0cb852ce79b6a4f5 (patch)
treee28aa1a1c7e8d923832a3adb8eda32fd1c7bb94e /asm
parentOn the way, solved segv (diff)
downloadlowbat-bsd-a981673ec7b997bc664d0dce0cb852ce79b6a4f5.tar.gz
lowbat-bsd-a981673ec7b997bc664d0dce0cb852ce79b6a4f5.tar.bz2
lowbat-bsd-a981673ec7b997bc664d0dce0cb852ce79b6a4f5.tar.xz
lowbat-bsd-a981673ec7b997bc664d0dce0cb852ce79b6a4f5.tar.zst
lowbat-bsd-a981673ec7b997bc664d0dce0cb852ce79b6a4f5.zip
Better comment
Diffstat (limited to 'asm')
-rw-r--r--asm/jo_c_args.asm4
1 files changed, 3 insertions, 1 deletions
diff --git a/asm/jo_c_args.asm b/asm/jo_c_args.asm
index 8c91e57..94a9413 100644
--- a/asm/jo_c_args.asm
+++ b/asm/jo_c_args.asm
@@ -10,6 +10,8 @@
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+;; jo_c_args(argc: rdi, *argv[]: rsi)
+;; ----------------------------------
;; returns 0 if args are invalid
;; returns 1 if args are valid
@@ -17,7 +19,7 @@ section .text
extern strncmp
global jo_c_args
-jo_c_args: ; jo_c_args(argc: rdi, *argv[]: rsi)
+jo_c_args:
cmp rdi, 0x2
jle no_args
mov rax, [rsi + 0x8 * 0x2]