From 202a8205a2e726b753ea83f2a65cb1b52cc470c4 Mon Sep 17 00:00:00 2001 From: Andreas Kapp Lindquist Date: Wed, 8 Oct 2025 12:23:06 +0200 Subject: docs(file_parser): return type --- src/file_parser.s | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/file_parser.s') diff --git a/src/file_parser.s b/src/file_parser.s index 4c5bd44..b63708f 100644 --- a/src/file_parser.s +++ b/src/file_parser.s @@ -3,7 +3,7 @@ # PURPOSE : Parses the file into the array format. # INPUTS : rdi = File descriptor # OUTPUTS : rax = address of array -# rdx = length of array +# rdx = length of array in 8 byte chunks # CLOBBERS: none # NOTES : Preserves all registers. # -------------------------------------------- @@ -47,7 +47,7 @@ parse_file: movq %r12, %rsi # Select number of coordinates call build_pointer_buffer # Create final array of pointers movq %rax, %rax # Return pointer to array - movq %r12, %rdx # Return line count + movq %r12, %rdx # Return Number of coordinates # Restore registers pop %r15 -- cgit v1.2.3-70-g09d2