You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
test_repo/assemblytutorial.txt

24 lines
461 B
Plaintext

https://www.youtube.com/watch?v=6S5KRJv-7RU
rdi
rsi
r8
r - 64 bit pointer
mov rdi,8
mov rdi,rsi
memory operations
mov rdi, qword ptr[rsi] values from memory into register
mov qword ptr[rsi], rdi store into memory operation
https://blog.rchapman.org/posts/Linux_System_Call_Table_for_x86_64/
Compilation:
as -c assemblyexample1.asm -o assemblyexample1.o
gcc assemblyexample1.o -o assemblyexample1 -nostdlib -static
Check error code:
echo $?