From a981673ec7b997bc664d0dce0cb852ce79b6a4f5 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 17 Apr 2020 19:35:54 +0200 Subject: Better comment --- asm/jo_c_args.asm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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] -- cgit v1.2.3