notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
error checking for png
[picodrive.git]
/
Pico
/
cd
/
Misc.c
diff --git
a/Pico/cd/Misc.c
b/Pico/cd/Misc.c
index
905e919
..
74beade
100644
(file)
--- a/
Pico/cd/Misc.c
+++ b/
Pico/cd/Misc.c
@@
-1,4
+1,7
@@
+// Some misc stuff
+// (c) Copyright 2007, Grazvydas "notaz" Ignotas
+#include "../PicoInt.h"
unsigned char formatted_bram[4*0x10] =
{
unsigned char formatted_bram[4*0x10] =
{
@@
-21,7
+24,8
@@
unsigned char formatted_bram[4*0x10] =
// 128K | bit ] | bank0 |
// 256K | unused | bank1 |
// 128K | bit ] | bank0 |
// 256K | unused | bank1 |
-void wram_2M_to_1M(unsigned char *m)
+#ifndef _ASM_MISC_C
+PICO_INTERNAL_ASM void wram_2M_to_1M(unsigned char *m)
{
unsigned short *m1M_b0, *m1M_b1;
unsigned int i, tmp, *m2M;
{
unsigned short *m1M_b0, *m1M_b1;
unsigned int i, tmp, *m2M;
@@
-38,7
+42,7
@@
void wram_2M_to_1M(unsigned char *m)
}
}
}
}
-void wram_1M_to_2M(unsigned char *m)
+
PICO_INTERNAL_ASM
void wram_1M_to_2M(unsigned char *m)
{
unsigned short *m1M_b0, *m1M_b1;
unsigned int i, tmp, *m2M;
{
unsigned short *m1M_b0, *m1M_b1;
unsigned int i, tmp, *m2M;
@@
-53,4
+57,5
@@
void wram_1M_to_2M(unsigned char *m)
*m2M++ = tmp;
}
}
*m2M++ = tmp;
}
}
+#endif