summaryrefslogtreecommitdiff
path: root/tnslc/compile
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2022-06-29 20:15:46 -0400
committerKyle Gunger <kgunger12@gmail.com>2022-06-29 20:15:46 -0400
commitfc5a382661262b4dac085d75739c4ac0601574a7 (patch)
treea705dcb7387e316a05c5162c0351488bd664e55a /tnslc/compile
parent2572cd049ee5e1e2685b1abe6bfcfbb8aa988a71 (diff)
[TNSLC] General updates
Diffstat (limited to 'tnslc/compile')
-rw-r--r--tnslc/compile/arch/common.tnsl7
-rw-r--r--tnslc/compile/comp.tnsl3
-rw-r--r--tnslc/compile/compile.tnsl9
-rw-r--r--tnslc/compile/format/format.tnsl2
-rw-r--r--tnslc/compile/format/iex.tnsl0
-rw-r--r--tnslc/compile/format/out.tnsl0
6 files changed, 17 insertions, 4 deletions
diff --git a/tnslc/compile/arch/common.tnsl b/tnslc/compile/arch/common.tnsl
index cba0d9f..1ff1c89 100644
--- a/tnslc/compile/arch/common.tnsl
+++ b/tnslc/compile/arch/common.tnsl
@@ -14,4 +14,9 @@
EXPRESS OR IMPLIED
#/
-; struct instruction {} \ No newline at end of file
+# Instructions are always stored in big-endian format internally.
+# The settings for the isa/compiler dictate weather the instruction
+# data will be reversed when the sections are being written.
+; struct instruction {
+ {}uint8 data
+} \ No newline at end of file
diff --git a/tnslc/compile/comp.tnsl b/tnslc/compile/comp.tnsl
new file mode 100644
index 0000000..18ca4b5
--- /dev/null
+++ b/tnslc/compile/comp.tnsl
@@ -0,0 +1,3 @@
+/; do_compile ({}charp file, ast.Node data, Settings settings)
+
+;/ \ No newline at end of file
diff --git a/tnslc/compile/compile.tnsl b/tnslc/compile/compile.tnsl
index 263dc59..2787eba 100644
--- a/tnslc/compile/compile.tnsl
+++ b/tnslc/compile/compile.tnsl
@@ -15,7 +15,12 @@
#/
/; module compile
- :include "compile/arch/arch.tnsl"
+ # :include "compile/arch/arch.tnsl"
:include "compile/format/format.tnsl"
-
+ # :include "compile/comp.tnsl"
+;/
+
+
+/; do_compile ({}charp file, ast.Node data, Settings settings)
+
;/
diff --git a/tnslc/compile/format/format.tnsl b/tnslc/compile/format/format.tnsl
index 2d4ed4b..14831b5 100644
--- a/tnslc/compile/format/format.tnsl
+++ b/tnslc/compile/format/format.tnsl
@@ -15,6 +15,6 @@
#/
/; module format
- :include "compile/format/out.tnsl"
+ # :include "compile/format/out.tnsl"
:include "compile/format/elf.tnsl"
;/ \ No newline at end of file
diff --git a/tnslc/compile/format/iex.tnsl b/tnslc/compile/format/iex.tnsl
deleted file mode 100644
index e69de29..0000000
--- a/tnslc/compile/format/iex.tnsl
+++ /dev/null
diff --git a/tnslc/compile/format/out.tnsl b/tnslc/compile/format/out.tnsl
deleted file mode 100644
index e69de29..0000000
--- a/tnslc/compile/format/out.tnsl
+++ /dev/null