summaryrefslogtreecommitdiff
path: root/change_freq.src
diff options
context:
space:
mode:
Diffstat (limited to 'change_freq.src')
-rw-r--r--change_freq.src22
1 files changed, 22 insertions, 0 deletions
diff --git a/change_freq.src b/change_freq.src
new file mode 100644
index 0000000..03ba5ae
--- /dev/null
+++ b/change_freq.src
@@ -0,0 +1,22 @@
+ .export _change_freq
+
+ .SECTION P,CODE,ALIGN=4
+
+_change_freq:
+ mov r4, r0
+ and #h'3F, r0
+ shll16 r0
+ shll8 r0
+ mov.l #h'A4150000, r1
+ mov.l #h'C0FFFFFF, r3
+ mov.l @r1, r2
+ and r3, r2
+ or r0, r2
+ mov.l r2, @r1
+ mov.l #h'80000000, r0
+ mov.l @r1, r2
+ or r0, r2
+ rts
+ mov.l r2, @r1
+ .align 4
+ .END \ No newline at end of file