# vim:filetype=mips
+# several drawing related functions for Allegrex MIPS
+# (c) Copyright 2007, Grazvydas "notaz" Ignotas
+# All Rights Reserved
.set noreorder # don't reorder any instructions
.set noat # don't use $at
# vim:filetype=mips
+# Some misc routines for Allegrex MIPS
+# (c) Copyright 2007, Grazvydas "notaz" Ignotas
+# All Rights Reserved
+
.set noreorder
.set noat
+// common code for Pico.c and cd/Pico.c
+// (c) Copyright 2007, Grazvydas "notaz" Ignotas
+
#define CYCLES_M68K_LINE 488 // suitable for both PAL/NTSC
#define CYCLES_M68K_VINT_LAG 68
#define CYCLES_M68K_ASD 148
/***********************************************************\r
* *\r
- * This source was taken from the Gens project *\r
+ * This source file was taken from the Gens project *\r
* Written by Stéphane Dallongeville *\r
* Copyright (c) 2002 by Stéphane Dallongeville *\r
* Modified/adapted for PicoDrive by notaz, 2007 *\r
/***********************************************************\r
* *\r
- * This source was taken from the Gens project *\r
+ * This source file was taken from the Gens project *\r
* Written by Stéphane Dallongeville *\r
* Copyright (c) 2002 by Stéphane Dallongeville *\r
* Modified/adapted for PicoDrive by notaz, 2007 *\r
+// some code for sample mixing
+// (c) Copyright 2006-2007, Grazvydas "notaz" Ignotas
+
#define MAXOUT (+32767)
#define MINOUT (-32768)
\r
// Options //\r
#define FAMEC_ROLL_INLINE\r
-//#define FAMEC_EMULATE_TRACE\r
-//#define FAMEC_CHECK_BRANCHES\r
-//#define FAMEC_EXTRA_INLINE\r
+#define FAMEC_EMULATE_TRACE\r
+#define FAMEC_CHECK_BRANCHES\r
+#define FAMEC_EXTRA_INLINE\r
// #define FAMEC_DEBUG\r
-//#define FAMEC_NO_GOTOS\r
+#define FAMEC_NO_GOTOS\r
#define FAMEC_ADR_BITS 24\r
// #define FAMEC_FETCHBITS 8\r
#define FAMEC_DATABITS 8\r
CFLAGS += -I../.. -I. -DNO_SYNC\r
CFLAGS += -Wall -Winline -G0\r
#CFLAGS += -DLPRINTF_STDIO\r
-#CFLAGS += -fprofile-generate\r
-#CFLAGS += -fprofile-use\r
#CFLAGS += -pg\r
ifeq ($(DEBUG),)\r
CFLAGS += -O2 -ftracer -fstrength-reduce -ffast-math\r
\r
../../Pico/Memory.o : ../../Pico/Memory.c\r
@echo ">>>" $<\r
- $(CC) $(CFLAGS) -c $< -o $@ -D_ASM_MEMORY_C -D_ASM_MEMORY_C_AMIPS\r
+ $(CC) $(CFLAGS) -O2 -c $< -o $@ -D_ASM_MEMORY_C -D_ASM_MEMORY_C_AMIPS\r
+\r
+../../Pico/cd/Memory.o : ../../Pico/cd/Memory.c\r
+ @echo ">>>" $<\r
+ $(CC) $(CFLAGS) -O2 -c $< -o $@\r
\r
../../Pico/Draw.o : ../../Pico/Draw.c\r
@echo ">>>" $<\r
@echo ">>>" $<\r
$(CC) $(CFLAGS) -c $< -o $@ -D_ASM_MISC_C_AMIPS\r
\r
+../../Pico/cd/gfx_cd.o : ../../Pico/cd/gfx_cd.c\r
+ @echo ">>>" $<\r
+ $(CC) $(CFLAGS) -O2 -c $< -o $@\r
+\r
readme.txt: ../../tools/textfilter ../base_readme.txt\r
../../tools/textfilter ../base_readme.txt $@ PSP\r
\r
# cleanup\r
\r
myclean:\r
+ $(RM) PicoDrive.map\r
make -C ../../cpu/musashi clean\r
\r
\r
\r
# ?\r
rel: EBOOT.PBP readme.txt\r
- zip -9 -r ../../PicoDrive_$(VER).zip skin -i \*.png -i \*.txt\r
+ mkdir -p PicoDrive/skin/\r
+ cp $^ PicoDrive/\r
+ cp skin/* PicoDrive/skin/\r
+ zip -9 -r ../../PicoDrive_$(VER).zip PicoDrive\r
+ rm -rf PicoDrive\r
\r
+// (c) Copyright 2007 notaz, All rights reserved.
+// Free for non-commercial use.
+
+// For commercial use, separate licencing terms must be obtained.
+
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/syslimits.h> // PATH_MAX
+// (c) Copyright 2007 notaz, All rights reserved.
+// Free for non-commercial use.
+
+// For commercial use, separate licencing terms must be obtained.
+
#include <string.h>
#include "psp.h"
#include "emu.h"
-// (c) Copyright 2006,2007 notaz, All rights reserved.
+// (c) Copyright 2007 notaz, All rights reserved.
// Free for non-commercial use.
// For commercial use, separate licencing terms must be obtained.
+// (c) Copyright 2007 notaz, All rights reserved.
+// Free for non-commercial use.
+
+// For commercial use, separate licencing terms must be obtained.
+
#include <stdio.h>
#include <string.h>
+// (c) Copyright 2007 notaz, All rights reserved.
+// Free for non-commercial use.
+
+// For commercial use, separate licencing terms must be obtained.
+
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
+// (c) Copyright 2007 notaz, All rights reserved.
+// Free for non-commercial use.
+
+// For commercial use, separate licencing terms must be obtained.
+
#include <pspctrl.h>
void psp_init(void);