summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordweller <dweller@cabin.digital>2025-03-26 20:47:55 +0200
committerdweller <dweller@cabin.digital>2025-03-26 20:47:55 +0200
commit2bcb97cade32e4781135ff4c1500b95fcf351889 (patch)
treefcaeeca83e8a5e831ee3827414ba954c52a8db86
parent750cd23d7afac165502defa1d259ace00ca0e414 (diff)
add LICENSE(s) + README
-rw-r--r--LICENSE30
-rw-r--r--README25
-rw-r--r--sources/bits.c8
-rw-r--r--sources/chip8.c8
-rw-r--r--sources/log.c8
-rw-r--r--sources/main.c8
-rw-r--r--sources/meta/disasm.c7
-rw-r--r--sources/meta/exec.c8
-rw-r--r--sources/meta/undef.c8
9 files changed, 110 insertions, 0 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..774fd60
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,30 @@
+BSD 3-Clause License (BSD-3-Clause)
+
+Copyright (C) 2025 dwlr <dweller@cabin.digital>
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice,
+ this list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/README b/README
new file mode 100644
index 0000000..c31beb1
--- /dev/null
+++ b/README
@@ -0,0 +1,25 @@
+CHIP-8 Cross-Platform(in the future) Interpreter
+================================================
+
+## What?
+ See https://en.wikipedia.org/wiki/CHIP-8
+
+ Heavily Work In Progress. Do not use even for fun! Well unless you're making fun of
+ my code, then feel free to.
+
+## Why?
+ For fun and glory!
+
+## How?
+ C89 baby! + system libs in the future.
+
+## Build?
+ *nix:
+ $ CC=/your/compiler/cc ./build/x11
+
+## Run?
+ *nix:
+ $ ./artifacts/xip-8 [binary file containing CHIP-8 instructions]
+
+## Who?
+ Me! See LICENSE.
diff --git a/sources/bits.c b/sources/bits.c
index ba52f4f..0197436 100644
--- a/sources/bits.c
+++ b/sources/bits.c
@@ -1,3 +1,11 @@
+/*
+ * Copyright (C) 2025 dwlr <dweller@cabin.digital>
+ *
+ * BSD 3-Clause License (BSD-3-Clause)
+ * See LICENSE for details
+ */
+
+
#define iota __COUNTER__
#define lengthof(x) (sizeof(x) / sizeof((x)[0]))
diff --git a/sources/chip8.c b/sources/chip8.c
index f5a28a8..1c5f907 100644
--- a/sources/chip8.c
+++ b/sources/chip8.c
@@ -1,3 +1,11 @@
+/*
+ * Copyright (C) 2025 dwlr <dweller@cabin.digital>
+ *
+ * BSD 3-Clause License (BSD-3-Clause)
+ * See LICENSE for details
+ */
+
+
#define C8_RESET_VECTOR 0x200
#define C8_CYCLES_PER_FRAME 1000
diff --git a/sources/log.c b/sources/log.c
index ba0aa86..b289939 100644
--- a/sources/log.c
+++ b/sources/log.c
@@ -1,3 +1,11 @@
+/*
+ * Copyright (C) 2025 dwlr <dweller@cabin.digital>
+ *
+ * BSD 3-Clause License (BSD-3-Clause)
+ * See LICENSE for details
+ */
+
+
typedef enum log_kind
{
LK_DEBUG,
diff --git a/sources/main.c b/sources/main.c
index 2036b73..5bc1c42 100644
--- a/sources/main.c
+++ b/sources/main.c
@@ -1,3 +1,11 @@
+/*
+ * Copyright (C) 2025 dwlr <dweller@cabin.digital>
+ *
+ * BSD 3-Clause License (BSD-3-Clause)
+ * See LICENSE for details
+ */
+
+
#define _DEFAULT_SOURCE
#include <stdlib.h>
#include <stdio.h>
diff --git a/sources/meta/disasm.c b/sources/meta/disasm.c
index 82e715e..841a455 100644
--- a/sources/meta/disasm.c
+++ b/sources/meta/disasm.c
@@ -1,3 +1,10 @@
+/*
+ * Copyright (C) 2025 dwlr <dweller@cabin.digital>
+ *
+ * BSD 3-Clause License (BSD-3-Clause)
+ * See LICENSE for details
+ */
+
#define X_C8_PRELUDE
#define X_C8_EPILOGUE
diff --git a/sources/meta/exec.c b/sources/meta/exec.c
index a39aef2..b5aaba4 100644
--- a/sources/meta/exec.c
+++ b/sources/meta/exec.c
@@ -1,3 +1,11 @@
+/*
+ * Copyright (C) 2025 dwlr <dweller@cabin.digital>
+ *
+ * BSD 3-Clause License (BSD-3-Clause)
+ * See LICENSE for details
+ */
+
+
#define BEGIN do{
#define END }while(0)
diff --git a/sources/meta/undef.c b/sources/meta/undef.c
index 01ce25f..dc538c1 100644
--- a/sources/meta/undef.c
+++ b/sources/meta/undef.c
@@ -1,3 +1,11 @@
+/*
+ * Copyright (C) 2025 dwlr <dweller@cabin.digital>
+ *
+ * BSD 3-Clause License (BSD-3-Clause)
+ * See LICENSE for details
+ */
+
+
#undef X_C8_PRELUDE
#undef X_C8_EPILOGUE