Всякое
This commit is contained in:
9
casm/CMakeLists.txt
Normal file
9
casm/CMakeLists.txt
Normal 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
7
casm/asm.asm
Normal file
@@ -0,0 +1,7 @@
|
||||
global main
|
||||
|
||||
section .text
|
||||
main:
|
||||
mov rdi, 0
|
||||
mov rax, 60
|
||||
syscall
|
||||
Reference in New Issue
Block a user