Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/asm_6.md
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,9 @@ _read_first_float_vector:
;; Set the length of the string we want to read from the standard input.
mov rdx, BUFFER_SIZE
;; Specify the system call number (0 is `sys_read`)
mov rdi, SYS_READ
mov rax, SYS_READ
;; Set the first argument of `sys_read` to 0 (`stdin`)
mov rax, STD_IN
mov rdi, STD_IN
;; Set the second argument of `sys_read` to the reference of the buffer where we will
;; read the data for the vector.
mov rsi, buffer_1
Expand Down
8 changes: 4 additions & 4 deletions float/dot_product.asm
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ _read_first_float_vector:
;; Set the length of the string we want to read from the standard input.
mov rdx, BUFFER_SIZE
;; Specify the system call number (0 is `sys_read`)
mov rdi, SYS_READ
mov rax, SYS_READ
;; Set the first argument of `sys_read` to 0 (`stdin`)
mov rax, STD_IN
mov rdi, STD_IN
;; Set the second argument of `sys_read` to the reference of the buffer where we will
;; read the data for the vector.
mov rsi, buffer_1
Expand Down Expand Up @@ -160,9 +160,9 @@ _read_second_float_vector:
;; Set the length of the string we want to read from the standard input.
mov rdx, BUFFER_SIZE
;; Specify the system call number (0 is `sys_read`).
mov rdi, SYS_READ
mov rax, SYS_READ
;; Set the first argument of `sys_read` to 0 (`stdin`).
mov rax, STD_IN
mov rdi, STD_IN
;; Set the second argument of `sys_read` to the reference of the buffer where we will
;; read the data for the vector.
mov rsi, buffer_2
Expand Down