Convert use of lea instruction
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user