summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-05-15 13:03:12 -0700
committerYamaArashi <shadow962@live.com>2016-05-15 13:03:12 -0700
commit91b1aab02668e4671a01854db28e093d9cacc1c8 (patch)
tree9b240f50e48adaa21213e20fc489b56a6ce48d76 /src
parented9492f91540ccfd09e982e1d567abb4efab584c (diff)
eliminate need for register variable in MPlayExtender
Diffstat (limited to 'src')
-rw-r--r--src/m4a_2.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/m4a_2.c b/src/m4a_2.c
index 29f9bf910..56487808c 100644
--- a/src/m4a_2.c
+++ b/src/m4a_2.c
@@ -251,7 +251,6 @@ void MPlayExtender(struct CgbChannel *cgbChans)
{
struct SoundInfo *soundInfo;
u32 ident;
- register u32 maxLines asm("r0");
REG_SOUNDCNT_X = SOUND_MASTER_ENABLE
| SOUND_4_ON
@@ -291,9 +290,7 @@ void MPlayExtender(struct CgbChannel *cgbChans)
soundInfo->CgbSound = CgbSound;
soundInfo->CgbOscOff = CgbOscOff;
soundInfo->MidiKeyToCgbFreq = MidiKeyToCgbFreq;
-
- maxLines = MAX_LINES;
- soundInfo->maxLines = maxLines;
+ soundInfo->maxLines = MAX_LINES;
CpuFill32(cgbChans, 0, sizeof(struct CgbChannel) * 4);