#144283 - HyperHacker - Wed Oct 31, 2007 3:18 am
(Was: Error: invalid offset, value too big (0x00000440), and more
This problem appears to be solved, but the sound problems below aren't.)
WTF is this supposed to mean? It's just randomly started giving me this error when I add code to routines in boot.c.
[edit] Here's another good one on ARM7. (Param4 = 8.)
Gets me a 2000hz tone.
Gets me what sounds like a 100hz tone.
Even these won't do it:
It only works if I use a constant. The hell? Putting in higher values does get higher frequencies, but nowhere near 2000hz, and only up to about 4000 (which is maybe 200hz), anything above that drops back down to the same as 2000. I can even pass it back to ARM9 to be printed on the screen to verify that it's 2000.
_________________
I'm a PSP hacker now, but I still <3 DS.
Last edited by HyperHacker on Sat Nov 03, 2007 5:37 am; edited 2 times in total
This problem appears to be solved, but the sound problems below aren't.)
Code: |
make -C arm7
make[1]: Entering directory `/f/Programs/Sources/DS/bootmenu2/arm7' make[2]: `/f/Programs/Sources/DS/bootmenu2/bootmenu2.arm7' is up to date. make[1]: Leaving directory `/f/Programs/Sources/DS/bootmenu2/arm7' make -C arm9 make[1]: Entering directory `/f/Programs/Sources/DS/bootmenu2/arm9' boot.c arm-eabi-gcc -MMD -MP -MF /f/Programs/Sources/DS/bootmenu2/arm9/build/boot.d -g -std=gnu99 -Wall -O2 -mcpu=arm9tdmi -mtune=arm9tdmi -fomit-frame-pointer -ffast- math -mthumb -mthumb-interwork -I/f/Programs/Sources/DS/bootmenu2/arm9/build -I/ f/Programs/Sources/DS/bootmenu2/arm9/../bootmenu2 -I/F/DOS/DevKitPro/libnds/incl ude -I/f/Programs/Sources/DS/bootmenu2/arm9/build -DARM9 -c /f/Programs/Sources/ DS/bootmenu2/arm9/source/boot.c -o boot.o C:/DOCUME~1/Admin/LOCALS~1/Temp/ccA64Ehb.s: Assembler messages: C:/DOCUME~1/Admin/LOCALS~1/Temp/ccA64Ehb.s:623: Error: invalid offset, value too big (0x00000440) make[2]: *** [boot.o] Error 1 make[1]: *** [build] Error 2 make[1]: Leaving directory `/f/Programs/Sources/DS/bootmenu2/arm9' make: *** [arm9/bootmenu2.elf] Error 2 |
WTF is this supposed to mean? It's just randomly started giving me this error when I add code to routines in boot.c.
[edit] Here's another good one on ARM7. (Param4 = 8.)
Code: |
SCHANNEL_TIMER(Param4) = SOUND_FREQ(2000 << 3);
SCHANNEL_CR(Param4) = SOUND_VOL(32) | SOUND_PAN(64) | SCHANNEL_WAVEDUTY(3) | SOUND_FORMAT_PSG | SCHANNEL_ENABLE; |
Code: |
u32 Param2 = 2000;
SCHANNEL_TIMER(Param4) = SOUND_FREQ(Param2 << 3); SCHANNEL_CR(Param4) = SOUND_VOL(32) | SOUND_PAN(64) | SCHANNEL_WAVEDUTY(3) | SOUND_FORMAT_PSG | SCHANNEL_ENABLE; |
Even these won't do it:
Code: |
u32 WTF = 16000;
SCHANNEL_TIMER(Param4) = SOUND_FREQ(WTF); SCHANNEL_CR(Param4) = SOUND_VOL(32) | SOUND_PAN(64) | SCHANNEL_WAVEDUTY(3) | SOUND_FORMAT_PSG | SCHANNEL_ENABLE; |
Code: |
u32 WTF = 16000;
SCHANNEL_TIMER(Param4) = WTF; SCHANNEL_CR(Param4) = SOUND_VOL(32) | SOUND_PAN(64) | SCHANNEL_WAVEDUTY(3) | SOUND_FORMAT_PSG | SCHANNEL_ENABLE; |
_________________
I'm a PSP hacker now, but I still <3 DS.
Last edited by HyperHacker on Sat Nov 03, 2007 5:37 am; edited 2 times in total