projects
/
gbajam22
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
optimizations
[gbajam22]
/
src
/
util.h
diff --git
a/src/util.h
b/src/util.h
index
f719b17
..
2e5f013
100644
(file)
--- a/
src/util.h
+++ b/
src/util.h
@@
-18,10
+18,14
@@
REG_DISPCNT = DISPCNT_BG2 | DISPCNT_OBJ | 4 | ((x) << 4); \
} while(0)
REG_DISPCNT = DISPCNT_BG2 | DISPCNT_OBJ | 4 | ((x) << 4); \
} while(0)
+#define ARM_IWRAM __attribute__((noinline, target("arm"), section(".iwram")))
+
#else /* non-GBA build */
#define wait_vblank()
void present(int buf); /* defined in src/pc/main.c */
#else /* non-GBA build */
#define wait_vblank()
void present(int buf); /* defined in src/pc/main.c */
+
+#define ARM_IWRAM
#endif
#define set_bg_color(idx, r, g, b) \
#endif
#define set_bg_color(idx, r, g, b) \