about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2021-07-19 11:58:36 +0100
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2021-07-19 11:58:36 +0100
commit2d30c37b02f7cc1edbd1d8bc7808bbb2243b124c (patch)
tree7e2b50fe42bc74349ab66dcbcfe124cba52e414a
downloadCHIP8-Emulator-2d30c37b02f7cc1edbd1d8bc7808bbb2243b124c.tar.gz
CHIP8-Emulator-2d30c37b02f7cc1edbd1d8bc7808bbb2243b124c.tar.bz2
CHIP8-Emulator-2d30c37b02f7cc1edbd1d8bc7808bbb2243b124c.zip
Initial commit
-rw-r--r--.gitignore3
-rw-r--r--Makefile13
-rw-r--r--emulator.c0
-rw-r--r--emulator.h0
-rw-r--r--main.c12
5 files changed, 28 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6826944
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+chip8_emulator
+CHIP8_Emulator.*
+*.o
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..1346c94
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,13 @@
+CC=cc
+CFLAGS=-g -Wall -I.
+
+all: chip8_emulator
+
+%.o: %.c %.h
+	$(CC) $(CFLAGS) -c $^
+
+chip8_emulator: emulator.o main.c
+	$(CC) $(CFLAGS) -o $@ $^
+
+clean: chip8_emulator
+	rm *.o $@
diff --git a/emulator.c b/emulator.c
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/emulator.c
diff --git a/emulator.h b/emulator.h
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/emulator.h
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..8f61750
--- /dev/null
+++ b/main.c
@@ -0,0 +1,12 @@
+#include <stdio.h>
+#include "emulator.h"
+
+int main(int argc, char** argv)
+{
+    (void) argc;
+    (void) argv;
+
+    printf("Hello brother!\n");
+
+    return 0;
+}