From fc5a382661262b4dac085d75739c4ac0601574a7 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Wed, 29 Jun 2022 20:15:46 -0400 Subject: [TNSLC] General updates --- tnslc/compile/arch/common.tnsl | 7 ++++++- tnslc/compile/comp.tnsl | 3 +++ tnslc/compile/compile.tnsl | 9 +++++++-- tnslc/compile/format/format.tnsl | 2 +- tnslc/compile/format/iex.tnsl | 0 tnslc/compile/format/out.tnsl | 0 6 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 tnslc/compile/comp.tnsl delete mode 100644 tnslc/compile/format/iex.tnsl delete mode 100644 tnslc/compile/format/out.tnsl (limited to 'tnslc/compile') 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 diff --git a/tnslc/compile/format/out.tnsl b/tnslc/compile/format/out.tnsl deleted file mode 100644 index e69de29..0000000 -- cgit v1.2.3