aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-02-08 17:22:05 -0800
committerFuwn <[email protected]>2025-06-09 00:42:12 -0700
commit65a87d0bba5a432b7b9e2dce95e87af3d940f4e5 (patch)
treea3f8e7b45192a05a6d0aa8d9167152bd61170ae7
downloadinit-65a87d0bba5a432b7b9e2dce95e87af3d940f4e5.tar.xz
init-65a87d0bba5a432b7b9e2dce95e87af3d940f4e5.zip
feat(init): release init :star:
-rw-r--r--.gitignore8
-rw-r--r--Divina.lua23
-rw-r--r--LICENSE24
-rw-r--r--README.rst9
-rw-r--r--change_me/Main.asm17
5 files changed, 81 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..2d4092b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+# Development
+/out/
+
+# Divina
+/divina.exe
+
+# IDE
+/.idea/
diff --git a/Divina.lua b/Divina.lua
new file mode 100644
index 0000000..30a84b9
--- /dev/null
+++ b/Divina.lua
@@ -0,0 +1,23 @@
+--- @class Package
+--- @field public name string
+--- @field public version string
+--- @field public description string
+--- @field public compile_options string[]
+--- @field public minimum_divina_version string
+--- @field public sources string[]
+--- @field public license string
+Package = {
+ name = "change_me",
+ version = "0.1.0",
+ description = "A default Divina project that you can extend!",
+ compile_options = {},
+ minimum_divina_version = Divina.version,
+ sources = {
+ "change_me/Main.asm",
+ },
+ type = Divina.Type.Bin,
+ arch = Divina.Arch.x64,
+ license = "Unlicense",
+}
+
+return Package
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..68a49da
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <http://unlicense.org/>
diff --git a/README.rst b/README.rst
new file mode 100644
index 0000000..db8529a
--- /dev/null
+++ b/README.rst
@@ -0,0 +1,9 @@
+:code:`change-me`
+=================
+
+A default Divina project that you can extend!
+
+License
+~~~~~~~
+
+`The Unlicense <./LICENSE>`_
diff --git a/change_me/Main.asm b/change_me/Main.asm
new file mode 100644
index 0000000..86b015d
--- /dev/null
+++ b/change_me/Main.asm
@@ -0,0 +1,17 @@
+global main
+extern printf
+
+section .rodata
+message: db "Hello World!", 13, 10, 0
+
+section .text
+main:
+ sub rsp, 8
+ sub rsp, 32
+ mov rcx, qword message
+ call printf
+ add rsp, 32
+
+ xor eax, eax
+ add rsp, 8
+ ret