Skip to content

Commit 0720195

Browse files
committed
GBA: Move more code to IWRAM
1 parent 3d4703a commit 0720195

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

common/rvidHeader.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ u32 rvidSoundOffset = 0;
4848
u32 rvidSoundRightOffset = 0;
4949
#endif
5050

51+
#ifdef __GBA__
52+
__attribute__((section(".iwram")))
53+
#endif
5154
void readRvidHeader(
5255
#ifdef __GBA__
5356
const void* rvid
Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ bool frameDelayEven = true;
2525
bool bottomField = false;
2626
bool bottomFieldForHBlank = false;
2727

28-
__attribute__((section(".iwram")))
2928
void fillBorders(void) {
3029
int scanline = REG_VCOUNT;
3130
scanline++;
@@ -40,7 +39,6 @@ void fillBorders(void) {
4039
}
4140
}
4241

43-
__attribute__((section(".iwram")))
4442
void fillBordersInterlaced(void) {
4543
int scanline = REG_VCOUNT;
4644
scanline++;
@@ -60,7 +58,6 @@ void fillBordersInterlaced(void) {
6058
}
6159
}
6260

63-
__attribute__((section(".iwram")))
6461
void HBlank_dmaFrameToScreen(void) {
6562
int scanline = REG_VCOUNT;
6663
scanline++;
@@ -78,7 +75,6 @@ void HBlank_dmaFrameToScreen(void) {
7875
}
7976
}
8077

81-
__attribute__((section(".iwram")))
8278
void HBlank_dmaFrameToScreenInterlaced(void) {
8379
int scanline = REG_VCOUNT;
8480
scanline++;
@@ -103,7 +99,6 @@ void HBlank_dmaFrameToScreenInterlaced(void) {
10399
}
104100
}
105101

106-
__attribute__((section(".iwram")))
107102
void dmaFrameToScreen(void) {
108103
// if (frameOffsets) {
109104
rvidFrameOffset = (u32)frameOffsets[currentFrame];
@@ -175,7 +170,6 @@ void init_sound(void) {
175170
}
176171

177172
//---------------------------------------------------------------------------------
178-
__attribute__((section(".iwram")))
179173
void VblankInterrupt()
180174
//---------------------------------------------------------------------------------
181175
{

0 commit comments

Comments
 (0)