mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
final src and Makefile adjustments for PSP release
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@298 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
110df09c8a
commit
8b99ab90aa
14 changed files with 60 additions and 11 deletions
|
@ -1,5 +1,8 @@
|
||||||
# vim:filetype=mips
|
# 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 noreorder # don't reorder any instructions
|
||||||
.set noat # don't use $at
|
.set noat # don't use $at
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
# vim:filetype=mips
|
# vim:filetype=mips
|
||||||
|
|
||||||
|
# Some misc routines for Allegrex MIPS
|
||||||
|
# (c) Copyright 2007, Grazvydas "notaz" Ignotas
|
||||||
|
# All Rights Reserved
|
||||||
|
|
||||||
.set noreorder
|
.set noreorder
|
||||||
.set noat
|
.set noat
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
// 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_LINE 488 // suitable for both PAL/NTSC
|
||||||
#define CYCLES_M68K_VINT_LAG 68
|
#define CYCLES_M68K_VINT_LAG 68
|
||||||
#define CYCLES_M68K_ASD 148
|
#define CYCLES_M68K_ASD 148
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/***********************************************************
|
/***********************************************************
|
||||||
* *
|
* *
|
||||||
* This source was taken from the Gens project *
|
* This source file was taken from the Gens project *
|
||||||
* Written by Stéphane Dallongeville *
|
* Written by Stéphane Dallongeville *
|
||||||
* Copyright (c) 2002 by Stéphane Dallongeville *
|
* Copyright (c) 2002 by Stéphane Dallongeville *
|
||||||
* Modified/adapted for PicoDrive by notaz, 2007 *
|
* Modified/adapted for PicoDrive by notaz, 2007 *
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/***********************************************************
|
/***********************************************************
|
||||||
* *
|
* *
|
||||||
* This source was taken from the Gens project *
|
* This source file was taken from the Gens project *
|
||||||
* Written by Stéphane Dallongeville *
|
* Written by Stéphane Dallongeville *
|
||||||
* Copyright (c) 2002 by Stéphane Dallongeville *
|
* Copyright (c) 2002 by Stéphane Dallongeville *
|
||||||
* Modified/adapted for PicoDrive by notaz, 2007 *
|
* Modified/adapted for PicoDrive by notaz, 2007 *
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
// some code for sample mixing
|
||||||
|
// (c) Copyright 2006-2007, Grazvydas "notaz" Ignotas
|
||||||
|
|
||||||
#define MAXOUT (+32767)
|
#define MAXOUT (+32767)
|
||||||
#define MINOUT (-32768)
|
#define MINOUT (-32768)
|
||||||
|
|
||||||
|
|
|
@ -16,11 +16,11 @@
|
||||||
|
|
||||||
// Options //
|
// Options //
|
||||||
#define FAMEC_ROLL_INLINE
|
#define FAMEC_ROLL_INLINE
|
||||||
//#define FAMEC_EMULATE_TRACE
|
#define FAMEC_EMULATE_TRACE
|
||||||
//#define FAMEC_CHECK_BRANCHES
|
#define FAMEC_CHECK_BRANCHES
|
||||||
//#define FAMEC_EXTRA_INLINE
|
#define FAMEC_EXTRA_INLINE
|
||||||
// #define FAMEC_DEBUG
|
// #define FAMEC_DEBUG
|
||||||
//#define FAMEC_NO_GOTOS
|
#define FAMEC_NO_GOTOS
|
||||||
#define FAMEC_ADR_BITS 24
|
#define FAMEC_ADR_BITS 24
|
||||||
// #define FAMEC_FETCHBITS 8
|
// #define FAMEC_FETCHBITS 8
|
||||||
#define FAMEC_DATABITS 8
|
#define FAMEC_DATABITS 8
|
||||||
|
|
|
@ -11,8 +11,6 @@ amalgamate = 0
|
||||||
CFLAGS += -I../.. -I. -DNO_SYNC
|
CFLAGS += -I../.. -I. -DNO_SYNC
|
||||||
CFLAGS += -Wall -Winline -G0
|
CFLAGS += -Wall -Winline -G0
|
||||||
#CFLAGS += -DLPRINTF_STDIO
|
#CFLAGS += -DLPRINTF_STDIO
|
||||||
#CFLAGS += -fprofile-generate
|
|
||||||
#CFLAGS += -fprofile-use
|
|
||||||
#CFLAGS += -pg
|
#CFLAGS += -pg
|
||||||
ifeq ($(DEBUG),)
|
ifeq ($(DEBUG),)
|
||||||
CFLAGS += -O2 -ftracer -fstrength-reduce -ffast-math
|
CFLAGS += -O2 -ftracer -fstrength-reduce -ffast-math
|
||||||
|
@ -109,7 +107,11 @@ AS := psp-as
|
||||||
|
|
||||||
../../Pico/Memory.o : ../../Pico/Memory.c
|
../../Pico/Memory.o : ../../Pico/Memory.c
|
||||||
@echo ">>>" $<
|
@echo ">>>" $<
|
||||||
$(CC) $(CFLAGS) -c $< -o $@ -D_ASM_MEMORY_C -D_ASM_MEMORY_C_AMIPS
|
$(CC) $(CFLAGS) -O2 -c $< -o $@ -D_ASM_MEMORY_C -D_ASM_MEMORY_C_AMIPS
|
||||||
|
|
||||||
|
../../Pico/cd/Memory.o : ../../Pico/cd/Memory.c
|
||||||
|
@echo ">>>" $<
|
||||||
|
$(CC) $(CFLAGS) -O2 -c $< -o $@
|
||||||
|
|
||||||
../../Pico/Draw.o : ../../Pico/Draw.c
|
../../Pico/Draw.o : ../../Pico/Draw.c
|
||||||
@echo ">>>" $<
|
@echo ">>>" $<
|
||||||
|
@ -119,6 +121,10 @@ AS := psp-as
|
||||||
@echo ">>>" $<
|
@echo ">>>" $<
|
||||||
$(CC) $(CFLAGS) -c $< -o $@ -D_ASM_MISC_C_AMIPS
|
$(CC) $(CFLAGS) -c $< -o $@ -D_ASM_MISC_C_AMIPS
|
||||||
|
|
||||||
|
../../Pico/cd/gfx_cd.o : ../../Pico/cd/gfx_cd.c
|
||||||
|
@echo ">>>" $<
|
||||||
|
$(CC) $(CFLAGS) -O2 -c $< -o $@
|
||||||
|
|
||||||
readme.txt: ../../tools/textfilter ../base_readme.txt
|
readme.txt: ../../tools/textfilter ../base_readme.txt
|
||||||
../../tools/textfilter ../base_readme.txt $@ PSP
|
../../tools/textfilter ../base_readme.txt $@ PSP
|
||||||
|
|
||||||
|
@ -142,6 +148,7 @@ up: EBOOT.PBP
|
||||||
# cleanup
|
# cleanup
|
||||||
|
|
||||||
myclean:
|
myclean:
|
||||||
|
$(RM) PicoDrive.map
|
||||||
make -C ../../cpu/musashi clean
|
make -C ../../cpu/musashi clean
|
||||||
|
|
||||||
|
|
||||||
|
@ -158,5 +165,9 @@ endif
|
||||||
|
|
||||||
# ?
|
# ?
|
||||||
rel: EBOOT.PBP readme.txt
|
rel: EBOOT.PBP readme.txt
|
||||||
zip -9 -r ../../PicoDrive_$(VER).zip skin -i \*.png -i \*.txt
|
mkdir -p PicoDrive/skin/
|
||||||
|
cp $^ PicoDrive/
|
||||||
|
cp skin/* PicoDrive/skin/
|
||||||
|
zip -9 -r ../../PicoDrive_$(VER).zip PicoDrive
|
||||||
|
rm -rf PicoDrive
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// (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/stat.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/syslimits.h> // PATH_MAX
|
#include <sys/syslimits.h> // PATH_MAX
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// (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 <string.h>
|
||||||
#include "psp.h"
|
#include "psp.h"
|
||||||
#include "emu.h"
|
#include "emu.h"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// (c) Copyright 2006,2007 notaz, All rights reserved.
|
// (c) Copyright 2007 notaz, All rights reserved.
|
||||||
// Free for non-commercial use.
|
// Free for non-commercial use.
|
||||||
|
|
||||||
// For commercial use, separate licencing terms must be obtained.
|
// For commercial use, separate licencing terms must be obtained.
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// (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 <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// (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 <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
|
// (c) Copyright 2007 notaz, All rights reserved.
|
||||||
|
// Free for non-commercial use.
|
||||||
|
|
||||||
|
// For commercial use, separate licencing terms must be obtained.
|
||||||
|
|
||||||
#include <pspctrl.h>
|
#include <pspctrl.h>
|
||||||
|
|
||||||
void psp_init(void);
|
void psp_init(void);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue