Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
pimpmobile
Commits
fc0e97d3
Commit
fc0e97d3
authored
Feb 01, 2020
by
PoroCYon
Browse files
fix IRQ_SAFE mode and make it the default
parent
d6edc566
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pimp_mixer_arm.S
View file @
fc0e97d3
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
@
irq
-
safe
:
1121327
@
irq
-
safe
:
1121327
@
irq
-
unsafe
:
1105083
@
irq
-
unsafe
:
1105083
//
#
define
IRQ_SAFE
#define IRQ_SAFE
/* on by default */
#define USE_BRESENHAM_MIXER
#define USE_BRESENHAM_MIXER
//
#
define
NO_MIXING
//
#
define
NO_MIXING
//
#
define
NO_CLIPPING
//
#
define
NO_CLIPPING
...
@@ -214,13 +214,14 @@ pimp_mixer_mix_samples:
...
@@ -214,13 +214,14 @@ pimp_mixer_mix_samples:
ldr
r4
,
=
0x4000208
@
load
address
of
REG_IME
ldr
r4
,
=
0x4000208
@
load
address
of
REG_IME
ldr
r5
,
.
ime_store
@
stash
for
later
ldr
r5
,
.
ime_store
@
stash
for
later
str
r5
,
[
r4
]
@
write
value
to
REG_IME
str
r5
,
[
r4
]
@
write
value
to
REG_IME
ldr
sp
,
.
stack_store
@
restore
stack
pointer
#endif
#endif
.
ret
:
.
ret
:
@
clean
return
@
clean
return
mov
r0
,
SAMPLE_CURSOR
mov
r0
,
SAMPLE_CURSOR
ldr
sp
,
.
stack_store
@
restore
stack
pointer
ldmfd
sp
!,
{
r4
-
r12
,
lr
}
@
restore
rest
of
registers
ldmfd
sp
!,
{
r4
-
r12
,
lr
}
@
restore
rest
of
registers
bx
lr
@
return
to
caller
bx
lr
@
return
to
caller
...
@@ -298,9 +299,10 @@ pimp_mixer_mix_samples:
...
@@ -298,9 +299,10 @@ pimp_mixer_mix_samples:
ldr
r4
,
=
0x4000208
@
load
address
of
REG_IME
ldr
r4
,
=
0x4000208
@
load
address
of
REG_IME
ldr
r5
,
.
ime_store
@
stash
for
later
ldr
r5
,
.
ime_store
@
stash
for
later
str
r5
,
[
r4
]
@
write
value
to
REG_IME
str
r5
,
[
r4
]
@
write
value
to
REG_IME
#endif
ldr
sp
,
.
stack_store
@
restore
stack
pointer
ldr
sp
,
.
stack_store
@
restore
stack
pointer
#endif
ldr
r0
,
.
sample_data_store
@
restore
the
old
sample
data
ldr
r0
,
.
sample_data_store
@
restore
the
old
sample
data
@
calculate
how
the
sample
cursor
changed
@
calculate
how
the
sample
cursor
changed
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment