diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-17 19:35:54 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-17 19:35:54 +0200 |
commit | a981673ec7b997bc664d0dce0cb852ce79b6a4f5 (patch) | |
tree | e28aa1a1c7e8d923832a3adb8eda32fd1c7bb94e | |
parent | On the way, solved segv (diff) | |
download | lowbat-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
-rw-r--r-- | asm/jo_c_args.asm | 4 |
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] |