Convert use of lea instruction

This commit is contained in:
Jeremy Soller
2022-08-19 11:53:20 -06:00
parent af040956df
commit 3d75c04628
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ pub unsafe extern "C" fn ustart() {
# Setup a stack.
mov eax, {number}
mov ebx, {fd}
lea ecx, {map} # pointer to Map struct
mov ecx, offset {map} # pointer to Map struct
mov edx, {map_size} # size of Map struct
int 0x80
+1 -1
View File
@@ -24,7 +24,7 @@ pub unsafe extern "C" fn ustart() {
# Setup a stack.
mov rax, {number}
mov rdi, {fd}
lea rsi, {map} # pointer to Map struct
mov rsi, offset {map} # pointer to Map struct
mov rdx, {map_size} # size of Map struct
syscall