more code

This commit is contained in:
2023-12-05 21:26:41 -05:00
parent 459b790012
commit 5fbf00fa11
2 changed files with 54 additions and 0 deletions

24
assemblytutorial.txt Normal file
View File

@ -0,0 +1,24 @@
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 $?