Всякое

This commit is contained in:
Пытков Роман
2025-09-20 18:48:55 +03:00
parent 95e5aab32d
commit 8f705bb7b8
9 changed files with 634 additions and 35 deletions

9
casm/CMakeLists.txt Normal file
View File

@@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.14)
project(casm)
enable_language(ASM_NASM)
set(CMAKE_ASM_NASM_FLAGS "-gdwarf -f elf64")
add_executable(casm asm.asm c.c)

7
casm/asm.asm Normal file
View File

@@ -0,0 +1,7 @@
global main
section .text
main:
mov rdi, 0
mov rax, 60
syscall

3
casm/c.c Normal file
View File

@@ -0,0 +1,3 @@
int sum(int a, int b) {
return a+b;
}