diff options
Diffstat (limited to 'src/file_parser.s')
| -rw-r--r-- | src/file_parser.s | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/file_parser.s b/src/file_parser.s index 059dabf..4c5bd44 100644 --- a/src/file_parser.s +++ b/src/file_parser.s @@ -3,6 +3,7 @@ # PURPOSE : Parses the file into the array format. # INPUTS : rdi = File descriptor # OUTPUTS : rax = address of array +# rdx = length of array # CLOBBERS: none # NOTES : Preserves all registers. # -------------------------------------------- @@ -45,7 +46,8 @@ parse_file: movq %r13, %rdi # Select coordinate buffer movq %r12, %rsi # Select number of coordinates call build_pointer_buffer # Create final array of pointers - movq %rax, %r13 # Override r13 with pointer to array + movq %rax, %rax # Return pointer to array + movq %r12, %rdx # Return line count # Restore registers pop %r15 |