Compare commits

...

8 Commits

Author SHA1 Message Date
b1379590ca wth? 2025-06-06 11:54:18 -04:00
2153e52c75 mistake 2025-06-06 11:51:38 -04:00
394fddb024 bla 2025-06-06 10:40:14 -04:00
c3b61c2d95 asdffa 2023-12-05 21:49:23 -05:00
df3b8bd0f8 , 2023-12-05 21:37:07 -05:00
20be72dbf9 merged? 2023-12-05 21:36:10 -05:00
afd7076106 test merge conf 2023-12-05 21:34:23 -05:00
5fbf00fa11 more code 2023-12-05 21:26:41 -05:00
5 changed files with 76 additions and 0 deletions

9
a_test_addition.txt Normal file
View File

@ -0,0 +1,9 @@
Suppose this is like a piece of code that I'm adding to the repository. This is version 1.
I'm adding stuff. Lots of stuff. just piling it in.
Suppose I make a mistake during some commit?
git reset --soft HEAD~1 isn't really undoing the addition of the mistake line?

30
assemblyexample1.asm Normal file
View File

@ -0,0 +1,30 @@
.global _start
//exposes a symbol called start to the assembler
.intel_syntax noprefix
//See: https://www.youtube.com/watch?v=6S5KRJv-7RU
//See: https://blog.rchapman.org/posts/Linux_System_Call_Table_for_x86_64/
_start:
//write call (sys_write)
mov rax,1
//sys_write system call
mov rdi, 1
//unsigned int fd = 1 (stdout)
lea rsi,[hello_world]
//load effective address (lea) into rsi of hello_world data
mov rdx, 14
//size_t count excluding null terminator
syscall
//exit call
mov rax, 60
mov rdi, 33
//return result (must be "rdi" not "rdx" - how are these registers named?)
syscall
//apprently int 80h interrupt is also syscall?
hello_world:
.asciz "Hello, World!\n"

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 $?

View File

@ -3,3 +3,9 @@ I've added this new thing
a new addition
Added a third line
a third line
A fourth line
An alternate fourth line.

7
test_repo.code-workspace Normal file
View File

@ -0,0 +1,7 @@
{
"folders": [
{
"path": "./"
}
]
}