1
0

Afegides mes operacions de ARM assembly

This commit is contained in:
2025-11-15 22:02:38 +01:00
parent 988261cea8
commit cdd85b8e0d
3 changed files with 1 additions and 71 deletions

55
.gitignore vendored
View File

@@ -1,54 +1 @@
# ---> C out_64
# Prerequisites
*.d
# Object files
*.o
*.ko
*.obj
*.elf
# Linker output
*.ilk
*.map
*.exp
# Precompiled Headers
*.gch
*.pch
# Libraries
*.lib
*.a
*.la
*.lo
# Shared objects (inc. Windows DLLs)
*.dll
*.so
*.so.*
*.dylib
# Executables
*.exe
*.out
*.app
*.i*86
*.x86_64
*.hex
# Debug files
*.dSYM/
*.su
*.idb
*.pdb
# Kernel Module Compile Results
*.mod*
*.cmd
.tmp_versions/
modules.order
Module.symvers
Mkfile.old
dkms.conf

View File

@@ -1,11 +0,0 @@
#include <stdio.h>
extern int my_function(int a, int b);
int main()
{
int a = 6;
int b = 4;
printf("Calling assembly function my_function with x0=%d and x1=%d results in %d\n", a, b, my_function(a, b));
return (0);
}

View File

@@ -1,6 +0,0 @@
.global my_function
.type my_function, "function"
.p2align 4
my_function:
add x0, x0, x1
ret