X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fcd%2FMisc.c;h=74beade924430a3ab392ea88a8fa94613bcbf063;hb=e5fa9817777032758511868c8aaa9ff780786c3f;hp=905e919504033953a3418f89141808cd83cbd006;hpb=fa1e5e2948e9b06dec3353081081173f7ae4d742;p=picodrive.git diff --git a/Pico/cd/Misc.c b/Pico/cd/Misc.c index 905e919..74beade 100644 --- 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] = { @@ -21,7 +24,8 @@ unsigned char formatted_bram[4*0x10] = // 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; @@ -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; @@ -53,4 +57,5 @@ void wram_1M_to_2M(unsigned char *m) *m2M++ = tmp; } } +#endif