diff options
Diffstat (limited to 'tnslc/compile')
-rw-r--r-- | tnslc/compile/arch/common.tnsl | 7 | ||||
-rw-r--r-- | tnslc/compile/comp.tnsl | 3 | ||||
-rw-r--r-- | tnslc/compile/compile.tnsl | 9 | ||||
-rw-r--r-- | tnslc/compile/format/format.tnsl | 2 | ||||
-rw-r--r-- | tnslc/compile/format/iex.tnsl | 0 | ||||
-rw-r--r-- | tnslc/compile/format/out.tnsl | 0 |
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 |