Skip to content

Commit

Permalink
Macros to compile functions as arm/thumb (#11)
Browse files Browse the repository at this point in the history
this change allows to force the compiler to put the code of a function in thumb or arm mode.
  • Loading branch information
maraflush authored Jan 14, 2024
1 parent 7fa00eb commit 755c7e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/gba_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@

#define IWRAM_DATA __attribute__((section(".iwram_data")))
#define EWRAM_DATA __attribute__((section(".ewram_data")))

#define ARM_CODE __attribute__((target("arm")))
#define THUMB_CODE __attribute__((target("thumb")))

#define EWRAM_BSS __attribute__((section(".sbss")))
#define ALIGN(m) __attribute__((aligned (m)))

Expand Down

0 comments on commit 755c7e4

Please sign in to comment.