summaryrefslogtreecommitdiff
path: root/include/global.h
diff options
context:
space:
mode:
authorscnorton <scnorton@biociphers.org>2017-06-13 10:19:12 -0400
committerscnorton <scnorton@biociphers.org>2017-06-13 10:19:12 -0400
commitbf5ee99db06cbd805058cc4c2f0fcb4ccf9506da (patch)
tree5d55b2504c4ebc3d0108b4eb9c495e189fc485cb /include/global.h
parent175d4724a33bbb34e1a5ee609584a45ab9685058 (diff)
parentdb6818ca9149304463e5e2219ec90993a3af53b2 (diff)
Merge branch 'field_effect'
Diffstat (limited to 'include/global.h')
-rwxr-xr-x[-rw-r--r--]include/global.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h
index 716aae15f..13db2620f 100644..100755
--- a/include/global.h
+++ b/include/global.h
@@ -10,6 +10,16 @@
// to help in decompiling
#define asm_comment(x) asm volatile("@ -- " x " -- ")
+#define asm_unified(x) asm(".syntax unified\n" x "\n.syntax divided\n")
+
+#define nonmatching(fndec, x) {\
+__attribute__((naked))\
+fndec\
+{\
+ asm_unified(x);\
+}\
+}
+
#define ARRAY_COUNT(array) (sizeof(array) / sizeof((array)[0]))
#define POKEMON_NAME_LENGTH 10