summaryrefslogtreecommitdiffstats
path: root/Graphic_Equalizer/src/smartmedia.hcc
diff options
context:
space:
mode:
authorOliver Schinagl <oliver@schinagl.nl>2004-11-11 16:13:58 (GMT)
committerOliver Schinagl <oliver@schinagl.nl>2004-11-11 16:13:58 (GMT)
commit27405f4f8c65baabb28ce427912851be10207781 (patch)
tree3a090403142563d916a8cbb5ef8a3c4113a5b6ae /Graphic_Equalizer/src/smartmedia.hcc
parent9877678730e53e9ee99241a8ab5babe35eacf28d (diff)
downloadTASS-27405f4f8c65baabb28ce427912851be10207781.zip
TASS-27405f4f8c65baabb28ce427912851be10207781.tar.gz
TASS-27405f4f8c65baabb28ce427912851be10207781.tar.bz2
Added fft files
fixed some issues, included equalizer.
Diffstat (limited to 'Graphic_Equalizer/src/smartmedia.hcc')
-rw-r--r--Graphic_Equalizer/src/smartmedia.hcc9
1 files changed, 7 insertions, 2 deletions
diff --git a/Graphic_Equalizer/src/smartmedia.hcc b/Graphic_Equalizer/src/smartmedia.hcc
index 5c547cc..86d6f44 100644
--- a/Graphic_Equalizer/src/smartmedia.hcc
+++ b/Graphic_Equalizer/src/smartmedia.hcc
@@ -100,7 +100,7 @@ macro proc smartmedia_loaddata(RAM_BANK0) {
* We start with the address of the skin, and do the loop until we have
* done the end of the help.
*/
- for (address = ADDRESS_SKIN_START; address != (ADDRESS_HELP_END +1); address++) {
+ for (address = ADDRESS_SKIN_START; address != (ADDRESS_SKIN_END +1); address++) {
/*
* Once we are done with the loading of our skin, we need to
* change the smartmedia start addresses.
@@ -114,7 +114,12 @@ macro proc smartmedia_loaddata(RAM_BANK0) {
* Before reading our data from the smartmedia we set our
* address pointer to the address from our loop.
*/
+#if SKIP_LOAD
+ PalPL2RAMSetWriteAddress(RAM_BANK0, 0);
+#else
+/* Warning: Make sure the proper images are loaded into ram before calling! */
PalPL2RAMSetWriteAddress(RAM_BANK0, address);
+#endif
/*
* SmartMedia data is read one byte per call. Because we want
@@ -145,7 +150,7 @@ macro proc smartmedia_loaddata(RAM_BANK0) {
data = 0 @ mask @ r @ g @ b;
#else
- data = 0xff000f00;
+ data = 0x0000ff00;
#endif
/*
* Now that we have gathered all pixel data, store it in ram.