M .gitignore => .gitignore +1 -0
@@ 6,6 6,7 @@ space_invaders/
# CMake
cmake-build-debug/
+build/
# Object files
*.o
M CMakeLists.txt => CMakeLists.txt +5 -2
@@ 1,6 1,9 @@
cmake_minimum_required(VERSION 3.20)
-project(di0des C)
+project(di0des VERSION 0.1.0 LANGUAGES C)
set(CMAKE_C_STANDARD 11)
+set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
-add_executable(di0des main.c)
+add_compile_options(-Wall -g)
+
+add_executable(di0des src/main.c)
R main.c => src/main.c +1 -0
@@ 1,3 1,4 @@
+#include <stdlib.h>
#include <stdio.h>
int disassemble_8080_op(unsigned char *codebuffer, int pc);