aboutsummaryrefslogtreecommitdiffstats
path: root/_/arm64
diff options
context:
space:
mode:
authorHunter Kvalevog <hunter@kvog.sh>2026-10-28 16:05:43 -0500
committerHunter Kvalevog <hunter@kvog.sh>2026-10-28 16:06:50 -0500
commit64321f1b4b50c46ae57f8c083bc110a75849dd9d (patch)
tree017225eba0fe70a0e0c24eef35d3cfb73d7e9812 /_/arm64
parentb0a21fa91599c632e0acb054e25f4d8e3c5a08e5 (diff)
downloaddemos-64321f1b4b50c46ae57f8c083bc110a75849dd9d.tar.gz
demos-64321f1b4b50c46ae57f8c083bc110a75849dd9d.zip
Diffstat (limited to '_/arm64')
-rw-r--r--_/arm64/common.S21
1 files changed, 21 insertions, 0 deletions
diff --git a/_/arm64/common.S b/_/arm64/common.S
new file mode 100644
index 0000000..616af28
--- /dev/null
+++ b/_/arm64/common.S
@@ -0,0 +1,21 @@
+// ================================================================================================
+// Shared macros
+//
+// License:
+// Copyright (c) 2026 Hunter Kvalevog
+//
+// Permission to use, copy, modify, and/or distribute this software for any
+// purpose with or without fee is hereby granted.
+//
+// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+// WITH REGARD TO THIS SOFTWARE.
+// ================================================================================================
+
+#ifdef __APPLE__
+# define SYM(LABEL) _##LABEL
+# define TEXT_SEGMENT .section __TEXT,__text
+#else
+# define SYM(LABEL) LABEL
+# define TEXT_SEGMENT .section .text
+#endif
+