Added ability to directly embed NED programs in NEDsim binary for runtime execution.
[screensavers] / hacks / NEDsim / ned_programs / container.x86_asm_template
diff --git a/hacks/NEDsim/ned_programs/container.x86_asm_template b/hacks/NEDsim/ned_programs/container.x86_asm_template
new file mode 100644 (file)
index 0000000..115ebd0
--- /dev/null
@@ -0,0 +1,20 @@
+# (c) 2021 Aaron Taylor <ataylor at subgeniuskitty dot com>
+# See LICENSE.txt file for copyright and license details.
+
+# This container is used to wrap NED binary blobs in x86 assembly files,
+# allowing them to be assembled into linkable object files.
+
+    .section .rodata
+
+    .global INSERTNAME
+    .type   INSERTNAME, @object
+    .balign 8
+INSERTNAME:
+    .incbin "INSERTNAME.bin"
+INSERTNAME_end:
+
+    .global INSERTNAME_size
+    .type   INSERTNAME_size, @object
+    .balign 8
+INSERTNAME_size:
+    .int    INSERTNAME_end - INSERTNAME