-#include "../PicoInt.h"
+#include "../pico_int.h"
#include "../sound/sn76496.h"
#ifndef UTYPES_DEFINED
-#include "../PicoInt.h"
+#include "../pico_int.h"
// x: 0x03c - 0x19d
// y: 0x1fc - 0x2f7
* best sounding of the ones that I tried.
*/
-#include "../PicoInt.h"
+#include "../pico_int.h"
#define ADPCMSHIFT 8
#define ADFIX(f) (int) ((double)f * (double)(1<<ADPCMSHIFT))
// For commercial use, separate licencing terms must be obtained.\r
\r
\r
-#include "PicoInt.h"\r
+#include "pico_int.h"\r
\r
// ym2612\r
#include "sound/ym2612.h"\r
// For commercial use, separate licencing terms must be obtained.\r
\r
\r
-#include "PicoInt.h"\r
+#include "pico_int.h"\r
#include "../zlib/zlib.h"\r
#include "../unzip/unzip.h"\r
#include "../unzip/unzip_stream.h"\r
* while the game runs, memcpy will suffice.
*/
-#include "../PicoInt.h"
+#include "../pico_int.h"
/* 12-in-1 and 4-in-1. Assuming >= 2MB ROMs here. */
// (c) Copyright 2008, Grazvydas "notaz" Ignotas
// Free for non-commercial use.
-#include "../../PicoInt.h"
+#include "../../pico_int.h"
#include "compiler.h"
#define u32 unsigned int
// For commercial use, separate licencing terms must be obtained.
-#include "../../PicoInt.h"
-#include "../../PicoInt.h"
+#include "../../pico_int.h"
#ifndef UTYPES_DEFINED
typedef unsigned char u8;
* Useful for homebrew or if a new VR revision pops up. */
//#define DO_CHECKS
-#include "../../PicoInt.h"
-
/*
* Register info
*
* ops not used by VR are not implemented
*/
-#include "../../PicoInt.h"
+#include "../../pico_int.h"
#define u32 unsigned int
// For commercial use, separate licencing terms must be obtained.
-#include "../../PicoInt.h"
+#include "../../pico_int.h"
#include "compiler.h"
#ifdef __GP2X__
#include <sys/mman.h>
* *\r
***********************************************************/\r
\r
-#include "../PicoInt.h"\r
+#include "../pico_int.h"\r
\r
#define CDC_DMA_SPEED 256\r
\r
// (c) Copyright 2007, Grazvydas "notaz" Ignotas
-#include "../PicoInt.h"
+#include "../pico_int.h"
// ym2612
#include "../sound/ym2612.h"
// Buffering handling
// (c) Copyright 2007, Grazvydas "notaz" Ignotas
-#include "../PicoInt.h"
+#include "../pico_int.h"
int PicoCDBuffers = 0;
static unsigned char *cd_buffer = NULL;
* *
***********************************************************/
-#include "../PicoInt.h"
+#include "../pico_int.h"
#include "cd_file.h"
#include "cue.h"
\r
#include <stdio.h>\r
\r
-#include "../PicoInt.h"\r
+#include "../pico_int.h"\r
#include "cd_sys.h"\r
#include "cd_file.h"\r
\r
PICO_INTERNAL void LBA_to_MSF(int lba, _msf *MSF);\r
PICO_INTERNAL int Track_to_LBA(int track);\r
\r
-// moved to Pico.h\r
+// moved to pico.h\r
// int Insert_CD(char *iso_name, int is_bin);\r
// void Stop_CD(void);\r
\r
#include <string.h>
#include "cue.h"
-#include "../PicoInt.h"
+#include "../pico_int.h"
// #define elprintf(w,f,...) printf(f "\n",##__VA_ARGS__);
#ifdef _MSC_VER
// (c) Copyright 2007, Grazvydas "notaz" Ignotas
-#include "../PicoInt.h"
+#include "../pico_int.h"
#define _rot_comp Pico_mcd->rot_comp
// (c) Copyright 2007, Grazvydas "notaz" Ignotas\r
\r
\r
-#include "../PicoInt.h"\r
+#include "../pico_int.h"\r
\r
#include "../sound/ym2612.h"\r
#include "../sound/sn76496.h"\r
#ifndef _ASM_CD_MEMORY_C\r
#define _CD_MEMORY_C\r
#undef _ASM_MEMORY_C\r
-#include "../MemoryCmn.c"\r
+#include "../memory_cmn.c"\r
#include "cell_map.c"\r
#endif\r
\r
// Some misc stuff
// (c) Copyright 2007, Grazvydas "notaz" Ignotas
-#include "../PicoInt.h"
+#include "../pico_int.h"
unsigned char formatted_bram[4*0x10] =
{
// Based on Gens code by Stéphane Dallongeville
// (c) Copyright 2007, Grazvydas "notaz" Ignotas
-#include "../PicoInt.h"
+#include "../pico_int.h"
#include "pcm.h"
static unsigned int g_rate = 0; // 18.14 fixed point
// (c) Copyright 2007 notaz, All rights reserved.
-#include "../PicoInt.h"
+#include "../pico_int.h"
#include "../sound/ym2612.h"
extern unsigned char formatted_bram[4*0x10];
#define PICO_CD
-#include "../PicoFrameHints.c"
+#include "../pico_cmn.c"
PICO_INTERNAL void PicoFrameMCD(void)
// (c) Copyright 2007 notaz, All rights reserved.
-#include "../PicoInt.h"
+#include "../pico_int.h"
int SekCycleCntS68k=0; // cycles done in this frame
// some debug code, just for fun of it
// (c) Copyright 2008 notaz, All rights reserved.
-#include "PicoInt.h"
-#include "Debug.h"
+#include "pico_int.h"
+#include "debug.h"
#define bit(r, x) ((r>>x)&1)
#define MVP dstrp+=strlen(dstrp)
-#include "PicoInt.h"\r
+#include "pico_int.h"\r
\r
typedef unsigned char u8;\r
\r
* AS is enabled by user and takes priority over "sonic mode".\r
*/\r
\r
-#include "PicoInt.h"\r
+#include "pico_int.h"\r
\r
int (*PicoScanBegin)(unsigned int num) = NULL;\r
int (*PicoScanEnd) (unsigned int num) = NULL;\r
// this is a frame-based renderer, alternative to Dave's line based which is in Draw.c\r
\r
\r
-#include "PicoInt.h"\r
+#include "pico_int.h"\r
\r
// port_config.h include must define these 2 defines:\r
// #define START_ROW 1 // which row of tiles to start rendering at?\r
// For commercial use, separate licencing terms must be obtained.\r
\r
\r
-#include "PicoInt.h"\r
+#include "pico_int.h"\r
\r
#include "sound/ym2612.h"\r
#include "sound/sn76496.h"\r
Pico.m.prot_bytes[(a>>2)&1] = (u8)d;\r
}\r
\r
-#include "MemoryCmn.c"\r
+#include "memory_cmn.c"\r
\r
\r
// -----------------------------------------------------------------\r
// For commercial use, separate licencing terms must be obtained.\r
\r
\r
-#include "PicoInt.h"\r
+#include "pico_int.h"\r
\r
// H-counter table for hvcounter reads in 40col mode\r
// based on Gens code\r
//#include <string.h>
#include <ctype.h>
-#include "PicoInt.h"
-#include "Patch.h"
+#include "pico_int.h"
+#include "patch.h"
struct patch
{
// For commercial use, separate licencing terms must be obtained.\r
\r
\r
-#include "PicoInt.h"\r
+#include "pico_int.h"\r
#include "sound/ym2612.h"\r
\r
int PicoVer=0x0133;\r
#endif\r
}\r
\r
-\r
-#include "PicoFrameHints.c"\r
-\r
+#include "pico_cmn.c"\r
\r
int z80stopCycle;\r
int z80_cycle_cnt; /* 'done' z80 cycles before z80_run() */\r
{\r
Pico.m.frame_count++;\r
\r
-#if 0\r
- if ((Pico.m.frame_count & 0x3f) == 0)\r
- {\r
- extern int idlehit_addrs[], idlehit_counts[];\r
- int i;\r
- printf("--\n");\r
- for (i = 0; i < 128 && idlehit_addrs[i] != 0; i++) {\r
- if (idlehit_counts[i] != 0) {\r
- printf("%06x %i %i\n", idlehit_addrs[i], idlehit_counts[i], idlehit_counts[i] >> 6);\r
- idlehit_counts[i] = 0;\r
- }\r
- }\r
- }\r
-#endif\r
-\r
if (PicoAHW & PAHW_MCD) {\r
PicoFrameMCD();\r
return;\r
#include <stdio.h>\r
#include <stdlib.h>\r
#include <string.h>\r
-#include "Pico.h"\r
+#include "pico.h"\r
#include "carthw/carthw.h"\r
\r
//\r
// For commercial use, separate licencing terms must be obtained.\r
\r
\r
-#include "PicoInt.h"\r
+#include "pico_int.h"\r
\r
\r
int SekCycleCnt=0; // cycles done in this frame\r
#include <string.h>\r
#include "ym2612.h"\r
#include "sn76496.h"\r
-\r
-#include "../PicoInt.h"\r
+#include "../pico_int.h"\r
#include "../cd/pcm.h"\r
#include "mix.h"\r
\r
// For commercial use, separate licencing terms must be obtained.\r
\r
\r
-#include "PicoInt.h"\r
+#include "pico_int.h"\r
\r
int PicuAnd=0xf7de;\r
\r
// For commercial use, separate licencing terms must be obtained.\r
\r
\r
-#include "PicoInt.h"\r
+#include "pico_int.h"\r
#include "cd/gfx_cd.h"\r
\r
extern const unsigned char hcounts_32[];\r
\r
#if PICODRIVE_HACKS\r
#undef EMU_M68K\r
-#include <Pico/PicoInt.h>\r
+#include <pico/pico_int.h>\r
#endif\r
\r
#ifndef ALIGN_DATA\r
+# asm stuff
+ifeq "$(asm_render)" "1"
+DEFINC += -D_ASM_DRAW_C
+OBJS += pico/draw_arm.o pico/draw2_arm.o
+endif
+ifeq "$(asm_memory)" "1"
+DEFINC += -D_ASM_MEMORY_C
+OBJS += pico/memory_arm.o
+endif
+ifeq "$(asm_ym2612)" "1"
+DEFINC += -D_ASM_YM2612_C
+OBJS += pico/sound/ym2612_arm.o
+endif
+ifeq "$(asm_misc)" "1"
+DEFINC += -D_ASM_MISC_C
+OBJS += pico/misc_arm.o
+OBJS += pico/cd/misc_arm.o
+endif
+ifeq "$(asm_cdpico)" "1"
+DEFINC += -D_ASM_CD_PICO_C
+OBJS += pico/cd/pico_arm.o
+endif
+ifeq "$(asm_cdmemory)" "1"
+DEFINC += -D_ASM_CD_MEMORY_C
+OBJS += pico/cd/memory_arm.o
+endif
+
+
.c.o:
@echo ">>>" $<
$(CC) $(CFLAGS) $(DEFINC) -c $< -o $@
mkdir -p $(DIRS)
# deps
-Pico/carthw/svp/compiler.o : ../../Pico/carthw/svp/ssp16.o ../../Pico/carthw/svp/gen_arm.c
-Pico/Pico.o Pico/cd/Pico.o : ../../Pico/PicoFrameHints.c ../../Pico/PicoInt.h
-Pico/Memory.o Pico/cd/Memory.o : ../../Pico/MemoryCmn.c ../../Pico/PicoInt.h
-
-# individual rules
-Pico/draw_asm.o : ../../Pico/Draw.s
- @echo ">>>" $@
- $(AS) $(ASFLAGS) $< -o $@
-Pico/draw2_asm.o : ../../Pico/Draw2.s
- @echo ">>>" $@
- $(AS) $(ASFLAGS) $< -o $@
-Pico/memory_asm.o : ../../Pico/Memory.s
- @echo ">>>" $@
- $(AS) $(ASFLAGS) $< -o $@
-Pico/sound/ym2612_asm.o : ../../Pico/sound/ym2612.s
- @echo ">>>" $@
- $(AS) $(ASFLAGS) $< -o $@
-Pico/sound/mix_asm.o : ../../Pico/sound/mix.s
- @echo ">>>" $@
- $(AS) $(ASFLAGS) $< -o $@
-Pico/misc_asm.o : ../../Pico/Misc.s
- @echo ">>>" $@
- $(AS) $(ASFLAGS) $< -o $@
-Pico/cd/pico_asm.o : ../../Pico/cd/Pico.s
- @echo ">>>" $@
- $(AS) $(ASFLAGS) $< -o $@
-Pico/cd/memory_asm.o : ../../Pico/cd/Memory.s
- @echo ">>>" $@
- $(AS) $(ASFLAGS) $< -o $@
-Pico/cd/misc_asm.o : ../../Pico/cd/Misc.s
- @echo ">>>" $@
- $(AS) $(ASFLAGS) $< -o $@
-#Pico/carthw/svp/stub_arm.o : ../../Pico/carthw/svp/stub_arm.S
-# @echo ">>>" $@
-# $(GCC) $(CFLAGS) $(DEFINC) -c $< -o $@
+pico/carthw/svp/compiler.o : ../../pico/carthw/svp/ssp16.o ../../pico/carthw/svp/gen_arm.c
+pico/pico.o pico/cd/pico.o : ../../pico/pico_cmn.c ../../pico/pico_int.h
+pico/memory.o pico/cd/memory.o : ../../pico/memory_cmn.c ../../pico/pico_int.h
# build Cyclone
cpu/Cyclone/proj/Cyclone.s:
@echo building Cyclone...
@make -C ../../cpu/Cyclone/proj CONFIG_FILE=config_pico.h
+../../cpu/musashi/m68kops.c :
+ @make -C ../../cpu/musashi
+
# build helix libs
../common/helix/$(CROSS)helix-mp3.a:
make -C ../common/helix clean all
#include "menu.h"
#include "emu.h"
-#include <Pico/Pico.h>
+#include <pico/pico.h>
extern menu_entry opt_entries[];
extern menu_entry opt2_entries[];
#include "config.h"\r
#include "common.h"\r
\r
-#include <Pico/PicoInt.h>\r
-#include <Pico/Patch.h>\r
-#include <Pico/cd/cue.h>\r
+#include <pico/pico_int.h>\r
+#include <pico/patch.h>\r
+#include <pico/cd/cue.h>\r
#include <zlib/zlib.h>\r
\r
\r
#include <sys/stat.h>\r
#include <sys/types.h>\r
\r
-#include <Pico/Pico.h>\r
-#include <Pico/Debug.h>\r
+#include <pico/pico.h>\r
+#include <pico/debug.h>\r
\r
void SekStepM68k(void);\r
\r
#include <stdio.h>
#include <string.h>
-#include "../../Pico/PicoInt.h"
-#include "../../Pico/sound/mix.h"
+#include "../../pico/pico_int.h"
+#include "../../pico/sound/mix.h"
#include "helix/pub/mp3dec.h"
#include "lprintf.h"
\r
# Pico\r
ifeq "$(amalgamate)" "1"\r
-OBJS += PicoAll.o\r
+OBJS += picoAll.o\r
else\r
-OBJS += Pico/Area.o Pico/Cart.o Pico/Memory.o Pico/Misc.o Pico/Pico.o Pico/Sek.o \\r
- Pico/VideoPort.o Pico/Draw2.o Pico/Draw.o Pico/Patch.o Pico/Debug.o\r
+OBJS += pico/area.o pico/cart.o pico/memory.o pico/misc.o pico/pico.o pico/sek.o \\r
+ pico/videoport.o pico/draw2.o pico/draw.o pico/patch.o pico/debug.o\r
# Pico - CD\r
-OBJS += Pico/cd/Pico.o Pico/cd/Memory.o Pico/cd/Sek.o Pico/cd/LC89510.o \\r
- Pico/cd/cd_sys.o Pico/cd/cd_file.o Pico/cd/gfx_cd.o Pico/cd/cue.o \\r
- Pico/cd/Area.o Pico/cd/Misc.o Pico/cd/pcm.o Pico/cd/buffering.o\r
+OBJS += pico/cd/pico.o pico/cd/memory.o pico/cd/sek.o pico/cd/LC89510.o \\r
+ pico/cd/cd_sys.o pico/cd/cd_file.o pico/cd/gfx_cd.o pico/cd/cue.o \\r
+ pico/cd/area.o pico/cd/misc.o pico/cd/pcm.o pico/cd/buffering.o\r
endif\r
# Pico - Pico\r
-OBJS += Pico/Pico/Pico.o Pico/Pico/Memory.o Pico/Pico/xpcm.o\r
+OBJS += pico/pico/pico.o pico/pico/memory.o pico/pico/xpcm.o\r
# Pico - carthw\r
-OBJS += Pico/carthw/carthw.o Pico/carthw/svp/svp.o Pico/carthw/svp/Memory.o \\r
- Pico/carthw/svp/ssp16.o Pico/carthw/svp/compiler.o Pico/carthw/svp/stub_arm.o\r
-\r
-# asm stuff\r
-ifeq "$(asm_render)" "1"\r
-DEFINC += -D_ASM_DRAW_C\r
-OBJS += Pico/draw_asm.o Pico/draw2_asm.o\r
-endif\r
-ifeq "$(asm_memory)" "1"\r
-DEFINC += -D_ASM_MEMORY_C\r
-OBJS += Pico/memory_asm.o\r
-endif\r
-ifeq "$(asm_ym2612)" "1"\r
-DEFINC += -D_ASM_YM2612_C\r
-OBJS += Pico/sound/ym2612_asm.o\r
-endif\r
-ifeq "$(asm_misc)" "1"\r
-DEFINC += -D_ASM_MISC_C\r
-OBJS += Pico/misc_asm.o\r
-OBJS += Pico/cd/misc_asm.o\r
-endif\r
-ifeq "$(asm_cdpico)" "1"\r
-DEFINC += -D_ASM_CD_PICO_C\r
-OBJS += Pico/cd/pico_asm.o\r
-endif\r
-ifeq "$(asm_cdmemory)" "1"\r
-DEFINC += -D_ASM_CD_MEMORY_C\r
-OBJS += Pico/cd/memory_asm.o\r
-endif\r
+OBJS += pico/carthw/carthw.o pico/carthw/svp/svp.o pico/carthw/svp/memory.o \\r
+ pico/carthw/svp/ssp16.o pico/carthw/svp/compiler.o pico/carthw/svp/stub_arm.o\r
\r
# Pico - sound\r
ifneq "$(amalgamate)" "1"\r
-OBJS += Pico/sound/sound.o\r
+OBJS += pico/sound/sound.o\r
endif\r
-OBJS += Pico/sound/mix_asm.o\r
-OBJS += Pico/sound/sn76496.o Pico/sound/ym2612.o\r
+OBJS += pico/sound/mix_asm.o\r
+OBJS += pico/sound/sn76496.o pico/sound/ym2612.o\r
# zlib\r
OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \\r
zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o\r
vpath %.c = ../..\r
vpath %.s = ../..\r
vpath %.S = ../..\r
-DIRS = platform platform/common Pico Pico/cd Pico/Pico Pico/sound Pico/carthw/svp \\r
+DIRS = platform platform/common pico pico/cd pico/pico pico/sound pico/carthw/svp \\r
zlib unzip cpu cpu/musashi cpu/Cyclone/proj cpu/Cyclone/tools cpu/mz80 cpu/DrZ80\r
\r
\r
#include "giz.h"
#include "asm_utils.h"
-#include <Pico/PicoInt.h>
+#include <pico/pico_int.h>
#ifdef BENCHMARK
#define OSD_FPS_X 220
#include "../common/readpng.h"\r
#include "version.h"\r
\r
-#include <Pico/PicoInt.h>\r
-#include <Pico/Patch.h>\r
+#include <pico/pico_int.h>\r
+#include <pico/patch.h>\r
#include <zlib/zlib.h>\r
\r
\r
#include "../common/arm_utils.h"\r
#include "../common/menu.h"\r
#include "../common/emu.h"\r
-#include "../../Pico/PicoInt.h"\r
-#include "../../Pico/sound/ym2612.h"\r
-#include "../../Pico/sound/mix.h"\r
+#include "../../pico/pico_int.h"\r
+#include "../../pico/sound/ym2612.h"\r
+#include "../../pico/sound/mix.h"\r
\r
/* we will need some gp2x internals here */\r
extern volatile unsigned short *gp2x_memregs; /* from minimal library rlyeh */\r
\r
# Pico\r
ifeq "$(amalgamate)" "1"\r
-OBJS += ../../PicoAll.o\r
+OBJS += ../../picoAll.o\r
else\r
-OBJS += Pico/Area.o Pico/Cart.o Pico/Memory.o Pico/Misc.o Pico/Pico.o Pico/Sek.o \\r
- Pico/VideoPort.o Pico/Draw2.o Pico/Draw.o Pico/Patch.o Pico/Debug.o\r
+OBJS += pico/area.o pico/cart.o pico/memory.o pico/misc.o pico/pico.o pico/sek.o \\r
+ pico/videoport.o pico/draw2.o pico/draw.o pico/patch.o pico/debug.o\r
# Pico - CD\r
-OBJS += Pico/cd/Pico.o Pico/cd/Memory.o Pico/cd/Sek.o Pico/cd/LC89510.o \\r
- Pico/cd/cd_sys.o Pico/cd/cd_file.o Pico/cd/cue.o Pico/cd/gfx_cd.o \\r
- Pico/cd/Area.o Pico/cd/Misc.o Pico/cd/pcm.o Pico/cd/buffering.o\r
+OBJS += pico/cd/pico.o pico/cd/memory.o pico/cd/sek.o pico/cd/LC89510.o \\r
+ pico/cd/cd_sys.o pico/cd/cd_file.o pico/cd/cue.o pico/cd/gfx_cd.o \\r
+ pico/cd/area.o pico/cd/misc.o pico/cd/pcm.o pico/cd/buffering.o\r
endif\r
# Pico - Pico\r
-OBJS += Pico/Pico/Pico.o Pico/Pico/Memory.o Pico/Pico/xpcm.o\r
+OBJS += pico/pico/pico.o pico/pico/memory.o pico/pico/xpcm.o\r
# Pico - carthw\r
-OBJS += Pico/carthw/carthw.o Pico/carthw/svp/svp.o Pico/carthw/svp/Memory.o \\r
- Pico/carthw/svp/ssp16.o Pico/carthw/svp/compiler.o Pico/carthw/svp/stub_arm.o\r
-\r
-# asm stuff\r
-ifeq "$(asm_render)" "1"\r
-DEFINC += -D_ASM_DRAW_C\r
-OBJS += Pico/draw_asm.o Pico/draw2_asm.o\r
-endif\r
-ifeq "$(asm_memory)" "1"\r
-DEFINC += -D_ASM_MEMORY_C\r
-OBJS += Pico/memory_asm.o\r
-endif\r
-ifeq "$(asm_ym2612)" "1"\r
-DEFINC += -D_ASM_YM2612_C\r
-OBJS += Pico/sound/ym2612_asm.o\r
-endif\r
-ifeq "$(asm_misc)" "1"\r
-DEFINC += -D_ASM_MISC_C\r
-OBJS += Pico/misc_asm.o\r
-OBJS += Pico/cd/misc_asm.o\r
-endif\r
-ifeq "$(asm_cdpico)" "1"\r
-DEFINC += -D_ASM_CD_PICO_C\r
-OBJS += Pico/cd/pico_asm.o\r
-endif\r
-ifeq "$(asm_cdmemory)" "1"\r
-DEFINC += -D_ASM_CD_MEMORY_C\r
-OBJS += Pico/cd/memory_asm.o\r
-endif\r
+OBJS += pico/carthw/carthw.o pico/carthw/svp/svp.o pico/carthw/svp/memory.o \\r
+ pico/carthw/svp/ssp16.o pico/carthw/svp/compiler.o pico/carthw/svp/stub_arm.o\r
\r
# Pico - sound\r
ifneq "$(amalgamate)" "1"\r
-OBJS += Pico/sound/sound.o\r
+OBJS += pico/sound/sound.o\r
endif\r
-OBJS += Pico/sound/mix_asm.o\r
-OBJS += Pico/sound/sn76496.o Pico/sound/ym2612.o\r
+OBJS += pico/sound/mix_arm.o\r
+OBJS += pico/sound/sn76496.o pico/sound/ym2612.o\r
# zlib\r
OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \\r
zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o\r
OBJS += unzip/unzip.o unzip/unzip_stream.o\r
# debug\r
ifeq "$(debug_cyclone)" "1"\r
-OBJS += Pico/DebugCPU.o cpu/musashi/m68kdasm.o\r
+OBJS += pico/DebugCPU.o cpu/musashi/m68kdasm.o\r
endif\r
# CPU cores\r
ifeq "$(use_musashi)" "1"\r
vpath %.c = ../..\r
vpath %.s = ../..\r
vpath %.S = ../..\r
-DIRS = platform platform/gp2x platform/common Pico Pico/cd Pico/Pico Pico/sound Pico/carthw/svp \\r
+DIRS = platform platform/gp2x platform/common pico pico/cd pico/pico pico/sound pico/carthw/svp \\r
zlib unzip cpu cpu/musashi cpu/Cyclone/proj cpu/Cyclone/tools cpu/mz80 cpu/DrZ80\r
\r
\r
all: mkdirs PicoDrive.gpe\r
\r
+include ../common/common_arm.mak\r
+\r
PicoDrive.gpe : $(OBJS) ../common/helix/$(CROSS)helix-mp3.a\r
@echo ">>>" $@\r
$(CC) -o $@ $(CFLAGS) $^ -lm -lpng -Wl,-Map=PicoDrive.map\r
up: PicoDrive.gpe\r
@cp -v PicoDrive.gpe /mnt/gp2x/mnt/sd/emus/PicoDrive/\r
\r
-# @cmd //C copy PicoDrive.gpe \\\\10.0.1.2\\gp2x\\mnt\\sd\\games\\PicoDrive\\\r
-\r
-# cleanup\r
clean: tidy\r
$(RM) PicoDrive.gpe\r
tidy:\r
$(RM) $(OBJS)\r
-# rm -rf $(DIRS) # don't clean, gcda may be there\r
-# @make -C ../../cpu/Cyclone/proj -f Makefile.linux clean\r
-\r
\r
readme.txt: ../../tools/textfilter ../base_readme.txt\r
../../tools/textfilter ../base_readme.txt $@ GP2X\r
\r
-include ../common/common_arm.mak\r
-\r
# ----------- release -----------\r
ifneq ($(findstring rel,$(MAKECMDGOALS)),)\r
ifeq ($(VER),)\r
#include "../common/config.h"\r
#include "cpuctrl.h"\r
\r
-#include <Pico/PicoInt.h>\r
-#include <Pico/Patch.h>\r
-#include <Pico/sound/mix.h>\r
+#include <pico/pico_int.h>\r
+#include <pico/patch.h>\r
+#include <pico/sound/mix.h>\r
#include <zlib/zlib.h>\r
\r
//#define PFRAMES\r
#include "../common/readpng.h"\r
#include "version.h"\r
\r
-#include <Pico/PicoInt.h>\r
-#include <Pico/Patch.h>\r
+#include <pico/pico_int.h>\r
+#include <pico/patch.h>\r
#include <zlib/zlib.h>\r
\r
#ifndef _DIRENT_HAVE_D_TYPE\r
#include <fcntl.h>
#include <errno.h>
-#include "../../Pico/sound/ym2612.h"
+#include "../../pico/sound/ym2612.h"
#include "../gp2x/gp2x.h"
#include "../gp2x/emu.h"
#include "../gp2x/menu.h"
#include "../gp2x/code940/940shared.h"
#include "../common/helix/pub/mp3dec.h"
-#include "../../Pico/PicoInt.h"
+#include "../../pico/pico_int.h"
// static _940_data_t shared_data_;
platform/common/readpng.o platform/common/mp3_helix.o
# Pico
-OBJS += Pico/Area.o Pico/Cart.o Pico/Memory.o Pico/Misc.o Pico/Pico.o Pico/Sek.o \
- Pico/VideoPort.o Pico/Draw2.o Pico/Draw.o Pico/Patch.o Pico/Debug.o
+OBJS += pico/area.o pico/cart.o pico/memory.o pico/misc.o pico/pico.o pico/sek.o \
+ pico/videoport.o pico/draw2.o pico/draw.o pico/patch.o pico/debug.o
# Pico - CD
-OBJS += Pico/cd/Pico.o Pico/cd/Memory.o Pico/cd/Sek.o Pico/cd/LC89510.o \
- Pico/cd/cd_sys.o Pico/cd/cd_file.o Pico/cd/cue.o Pico/cd/gfx_cd.o \
- Pico/cd/Area.o Pico/cd/Misc.o Pico/cd/pcm.o Pico/cd/buffering.o
+OBJS += pico/cd/pico.o pico/cd/memory.o pico/cd/sek.o pico/cd/LC89510.o \
+ pico/cd/cd_sys.o pico/cd/cd_file.o pico/cd/cue.o pico/cd/gfx_cd.o \
+ pico/cd/area.o pico/cd/misc.o pico/cd/pcm.o pico/cd/buffering.o
# Pico - Pico
-OBJS += Pico/Pico/Pico.o Pico/Pico/Memory.o Pico/Pico/xpcm.o
+OBJS += pico/pico/pico.o pico/pico/memory.o pico/pico/xpcm.o
# Pico - sound
-OBJS += Pico/sound/sound.o Pico/sound/sn76496.o Pico/sound/ym2612.o Pico/sound/mix.o
+OBJS += pico/sound/sound.o pico/sound/sn76496.o pico/sound/ym2612.o pico/sound/mix.o
# Pico - carthw
-OBJS += Pico/carthw/carthw.o Pico/carthw/svp/svp.o Pico/carthw/svp/Memory.o \
- Pico/carthw/svp/ssp16.o Pico/carthw/svp/compiler.o
+OBJS += pico/carthw/carthw.o pico/carthw/svp/svp.o pico/carthw/svp/memory.o \
+ pico/carthw/svp/ssp16.o pico/carthw/svp/compiler.o
# zlib
OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \
zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o zlib/uncompr.o
# misc
ifeq "$(use_fame)" "1"
ifeq "$(use_musashi)" "1"
-OBJS += Pico/DebugCPU.o
+OBJS += pico/debugCPU.o
OBJS += cpu/musashi/m68kdasm.o
endif
endif
+OBJS += cpu/musashi/m68kdasm.o
vpath %.c = ../..
-DIRS = platform platform/gp2x platform/common Pico Pico/cd Pico/Pico Pico/sound Pico/carthw/svp \
+DIRS = platform platform/gp2x platform/common pico pico/cd pico/pico pico/sound pico/carthw/svp \
zlib unzip cpu cpu/musashi cpu/fame cpu/mz80 cpu/cz80
all: mkdirs PicoDrive
mkdirs:
mkdir -p $(DIRS)
-Pico/carthw/svp/compiler.o : ../../Pico/carthw/svp/gen_arm.c
-Pico/Pico.o Pico/cd/Pico.o : ../../Pico/PicoFrameHints.c ../../Pico/PicoInt.h
-Pico/Memory.o Pico/cd/Memory.o : ../../Pico/MemoryCmn.c ../../Pico/PicoInt.h
+pico/carthw/svp/compiler.o : ../../pico/carthw/svp/gen_arm.c
+pico/pico.o pico/cd/pico.o : ../../pico/pico_cmn.c ../../pico/pico_int.h
+pico/memory.o pico/cd/memory.o : ../../pico/memory_cmn.c ../../pico/pico_int.h
../../cpu/musashi/m68kops.c :
@make -C ../../cpu/musashi
$(GCC) $(COPT) $(DEFINC) -c $< -o $@
-Pico/sound/ym2612.o : ../../Pico/sound/ym2612.c
+pico/sound/ym2612.o : ../../pico/sound/ym2612.c
@echo ">>>" $@
$(GCC) $(COPT_COMMON) $(DEFINC) -c $< -o $@
ifeq "$(profile)" "2"\r
COPT_COMMON += -fprofile-use\r
endif\r
-COPT = $(COPT_COMMON)\r
-ASOPT =\r
-GCC = $(CROSS)gcc\r
+CFLAGS = $(COPT_COMMON)\r
+SFLAGS = $(CFLAGS)\r
+ASFLAGS = -mcpu=cortex-a8\r
+CC = $(CROSS)gcc\r
STRIP = $(CROSS)strip\r
AS = $(CROSS)as\r
LD = $(CROSS)ld\r
\r
# Pico\r
ifeq "$(amalgamate)" "1"\r
-OBJS += ../../PicoAll.o\r
+OBJS += ../../picoAll.o\r
else\r
-OBJS += Pico/Area.o Pico/Cart.o Pico/Memory.o Pico/Misc.o Pico/Pico.o Pico/Sek.o \\r
- Pico/VideoPort.o Pico/Draw2.o Pico/Draw.o Pico/Patch.o Pico/Debug.o\r
+OBJS += pico/area.o pico/cart.o pico/memory.o pico/misc.o pico/pico.o pico/sek.o \\r
+ pico/videoport.o pico/draw2.o pico/draw.o pico/patch.o pico/debug.o\r
# Pico - CD\r
-OBJS += Pico/cd/Pico.o Pico/cd/Memory.o Pico/cd/Sek.o Pico/cd/LC89510.o \\r
- Pico/cd/cd_sys.o Pico/cd/cd_file.o Pico/cd/cue.o Pico/cd/gfx_cd.o \\r
- Pico/cd/Area.o Pico/cd/Misc.o Pico/cd/pcm.o Pico/cd/buffering.o\r
+OBJS += pico/cd/pico.o pico/cd/memory.o pico/cd/sek.o pico/cd/LC89510.o \\r
+ pico/cd/cd_sys.o pico/cd/cd_file.o pico/cd/cue.o pico/cd/gfx_cd.o \\r
+ pico/cd/area.o pico/cd/misc.o pico/cd/pcm.o pico/cd/buffering.o\r
endif\r
# Pico - Pico\r
-OBJS += Pico/Pico/Pico.o Pico/Pico/Memory.o Pico/Pico/xpcm.o\r
+OBJS += pico/pico/pico.o pico/pico/memory.o pico/pico/xpcm.o\r
# Pico - carthw\r
-OBJS += Pico/carthw/carthw.o Pico/carthw/svp/svp.o Pico/carthw/svp/Memory.o \\r
- Pico/carthw/svp/ssp16.o Pico/carthw/svp/compiler.o Pico/carthw/svp/stub_arm.o\r
-\r
-# asm stuff\r
-ifeq "$(asm_render)" "1"\r
-DEFINC += -D_ASM_DRAW_C\r
-OBJS += Pico/draw_asm.o Pico/draw2_asm.o\r
-endif\r
-ifeq "$(asm_memory)" "1"\r
-DEFINC += -D_ASM_MEMORY_C\r
-OBJS += Pico/memory_asm.o\r
-endif\r
-ifeq "$(asm_ym2612)" "1"\r
-DEFINC += -D_ASM_YM2612_C\r
-OBJS += Pico/sound/ym2612_asm.o\r
-endif\r
-ifeq "$(asm_misc)" "1"\r
-DEFINC += -D_ASM_MISC_C\r
-OBJS += Pico/misc_asm.o\r
-OBJS += Pico/cd/misc_asm.o\r
-endif\r
-ifeq "$(asm_cdpico)" "1"\r
-DEFINC += -D_ASM_CD_PICO_C\r
-OBJS += Pico/cd/pico_asm.o\r
-endif\r
-ifeq "$(asm_cdmemory)" "1"\r
-DEFINC += -D_ASM_CD_MEMORY_C\r
-OBJS += Pico/cd/memory_asm.o\r
-endif\r
+OBJS += pico/carthw/carthw.o pico/carthw/svp/svp.o pico/carthw/svp/memory.o \\r
+ pico/carthw/svp/ssp16.o pico/carthw/svp/compiler.o pico/carthw/svp/stub_arm.o\r
\r
# Pico - sound\r
ifneq "$(amalgamate)" "1"\r
-OBJS += Pico/sound/sound.o\r
+OBJS += pico/sound/sound.o\r
endif\r
-OBJS += Pico/sound/mix_asm.o\r
-OBJS += Pico/sound/sn76496.o Pico/sound/ym2612.o\r
+OBJS += pico/sound/mix_arm.o\r
+OBJS += pico/sound/sn76496.o pico/sound/ym2612.o\r
# zlib\r
OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \\r
zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o\r
OBJS += unzip/unzip.o unzip/unzip_stream.o\r
# debug\r
ifeq "$(debug_cyclone)" "1"\r
-OBJS += Pico/DebugCPU.o cpu/musashi/m68kdasm.o\r
+OBJS += pico/DebugCPU.o cpu/musashi/m68kdasm.o\r
endif\r
# CPU cores\r
ifeq "$(use_musashi)" "1"\r
vpath %.c = ../..\r
vpath %.s = ../..\r
vpath %.S = ../..\r
-DIRS = platform platform/gp2x platform/common Pico Pico/cd Pico/Pico Pico/sound Pico/carthw/svp \\r
+DIRS = platform platform/gp2x platform/common pico pico/cd pico/pico pico/sound pico/carthw/svp \\r
zlib unzip cpu cpu/musashi cpu/Cyclone/proj cpu/Cyclone/tools cpu/mz80 cpu/DrZ80\r
\r
\r
all: mkdirs PicoDrive\r
\r
+include ../common/common_arm.mak\r
+\r
PicoDrive : $(OBJS) ../common/helix/$(CROSS)helix-mp3.a\r
@echo ">>>" $@\r
- $(GCC) -o $@ $(COPT) $^ -lm -Wl,-Map=PicoDrive.map # -lpng\r
+ $(CC) -o $@ $(CFLAGS) $^ -lm -Wl,-Map=PicoDrive.map # -lpng\r
ifeq ($(DEBUG),)\r
$(STRIP) $@\r
endif\r
\r
-\r
-# cleanup\r
clean: tidy\r
$(RM) PicoDrive\r
tidy:\r
$(RM) $(OBJS)\r
-# rm -rf $(DIRS) # don't clean, gcda may be there\r
-# @make -C ../../cpu/Cyclone/proj -f Makefile.linux clean\r
-\r
-\r
-clean_prof:\r
- find ../.. -name '*.gcno' -delete\r
- find ../.. -name '*.gcda' -delete\r
-\r
-\r
-mkdirs:\r
- mkdir -p $(DIRS)\r
-\r
-.c.o:\r
- @echo ">>>" $<\r
- $(GCC) $(COPT) $(DEFINC) -c $< -o $@\r
-.s.o:\r
- @echo ">>>" $<\r
- $(GCC) $(COPT) $(DEFINC) -c $< -o $@\r
-.S.o:\r
- @echo ">>>" $<\r
- $(GCC) $(COPT) $(DEFINC) -c $< -o $@\r
-\r
-Pico/carthw/svp/compiler.o : ../../Pico/carthw/svp/ssp16.o ../../Pico/carthw/svp/gen_arm.c\r
-\r
-Pico/draw_asm.o : ../../Pico/Draw.s\r
- @echo ">>>" $<\r
- $(AS) $(ASOPT) $< -o $@\r
-Pico/draw2_asm.o : ../../Pico/Draw2.s\r
- @echo ">>>" $<\r
- $(AS) $(ASOPT) $< -o $@\r
-Pico/memory_asm.o : ../../Pico/Memory.s\r
- @echo ">>>" $<\r
- $(AS) $(ASOPT) $< -o $@\r
-Pico/sound/ym2612_asm.o : ../../Pico/sound/ym2612.s\r
- @echo ">>>" $<\r
- $(AS) $(ASOPT) $< -o $@\r
-Pico/sound/mix_asm.o : ../../Pico/sound/mix.s\r
- @echo ">>>" $<\r
- $(AS) $(ASOPT) $< -o $@\r
-Pico/misc_asm.o : ../../Pico/Misc.s\r
- @echo ">>>" $<\r
- $(AS) $(ASOPT) $< -o $@\r
-Pico/cd/pico_asm.o : ../../Pico/cd/Pico.s\r
- @echo ">>>" $<\r
- $(AS) $(ASOPT) $< -o $@\r
-Pico/cd/memory_asm.o : ../../Pico/cd/Memory.s\r
- @echo ">>>" $<\r
- $(AS) $(ASOPT) $< -o $@\r
-Pico/cd/misc_asm.o : ../../Pico/cd/Misc.s\r
- @echo ">>>" $<\r
- $(AS) $(ASOPT) $< -o $@\r
-\r
-# build Cyclone\r
-../../cpu/Cyclone/proj/Cyclone.s :\r
- @echo building Cyclone...\r
- @make -C ../../cpu/Cyclone/proj CONFIG_FILE=config_pico.h\r
-\r
-../../cpu/musashi/m68kops.c :\r
- @make -C ../../cpu/musashi\r
-\r
-Pico/Pico.o Pico/cd/Pico.o: ../../Pico/PicoFrameHints.c ../../Pico/PicoInt.h\r
-Pico/Memory.o Pico/cd/Memory.o : ../../Pico/MemoryCmn.c ../../Pico/PicoInt.h\r
-\r
-# build helix libs\r
-../common/helix/$(CROSS)helix-mp3.a:\r
- make -C ../common/helix clean all\r
\r
readme.txt: ../../tools/textfilter ../base_readme.txt\r
../../tools/textfilter ../base_readme.txt $@ GP2X\r
\r
-../../tools/textfilter: ../../tools/textfilter.c\r
- make -C ../../tools/ textfilter\r
-\r
-\r
# ----------- release -----------\r
ifneq ($(findstring rel,$(MAKECMDGOALS)),)\r
$(error TODO)\r
#include "../common/common.h"\r
#include "asm_utils.h"\r
\r
-#include <Pico/PicoInt.h>\r
-#include <Pico/Patch.h>\r
-#include <Pico/sound/mix.h>\r
+#include <pico/pico_int.h>\r
+#include <pico/patch.h>\r
+#include <pico/sound/mix.h>\r
#include <zlib/zlib.h>\r
\r
//#define PFRAMES\r
len = 256;\r
}\r
\r
- if (!sh && (rendstatus & PDRAW_ACC_SPRITES))\r
- mask=0x3f; // accurate sprites, upper bits are priority stuff\r
+ if (!sh && (rendstatus & PDRAW_SPR_LO_ON_HI))\r
+ mask=0x3f; // messed sprites, upper bits are priority stuff\r
\r
#if 1\r
clut_line(pd, ps, pal, (mask<<16) | len);\r
currentConfig.EmuOpt = eo_old;\r
}\r
\r
+void emu_platformDebugCat(char *str)\r
+{\r
+ // nothing\r
+}\r
+\r
static void simpleWait(int thissec, int lim_time)\r
{\r
struct timeval tval;\r
# :!touch platform/psp/psp.c\r
\r
\r
-CFLAGS += -I../.. -I. -DNO_SYNC\r
+CFLAGS += -I../.. -I. -DNO_SYNC -D_ASM_DRAW_C_AMIPS\r
CFLAGS += -Wall -Winline -G0\r
#CFLAGS += -DLPRINTF_STDIO\r
#CFLAGS += -pg\r
\r
# Pico\r
ifeq "$(amalgamate)" "1"\r
-OBJS += ../../PicoAll.o\r
+OBJS += ../../picoAll.o\r
else\r
-OBJS += Pico/Area.o Pico/Cart.o Pico/Memory.o Pico/Misc.o Pico/Pico.o Pico/Sek.o Pico/VideoPort.o \\r
- Pico/Draw2.o Pico/Draw.o Pico/Patch.o Pico/Draw_amips.o Pico/Memory_amips.o \\r
- Pico/Misc_amips.o Pico/Debug.o\r
+OBJS += pico/area.o pico/cart.o pico/memory.o pico/misc.o pico/pico.o pico/sek.o pico/videoport.o \\r
+ pico/draw2.o pico/draw.o pico/patch.o pico/draw_amips.o pico/memory_amips.o \\r
+ pico/misc_amips.o pico/debug.o\r
# Pico - CD\r
-OBJS += Pico/cd/Pico.o Pico/cd/Memory.o Pico/cd/Sek.o Pico/cd/LC89510.o \\r
- Pico/cd/cd_sys.o Pico/cd/cd_file.o Pico/cd/cue.o Pico/cd/gfx_cd.o \\r
- Pico/cd/Area.o Pico/cd/Misc.o Pico/cd/pcm.o Pico/cd/buffering.o\r
+OBJS += pico/cd/pico.o pico/cd/memory.o pico/cd/sek.o pico/cd/LC89510.o \\r
+ pico/cd/cd_sys.o pico/cd/cd_file.o pico/cd/cue.o pico/cd/gfx_cd.o \\r
+ pico/cd/area.o pico/cd/misc.o pico/cd/pcm.o pico/cd/buffering.o\r
# Pico - carthw\r
-OBJS += Pico/carthw/carthw.o Pico/carthw/svp/svp.o Pico/carthw/svp/Memory.o \\r
- Pico/carthw/svp/ssp16.o\r
+OBJS += pico/carthw/carthw.o pico/carthw/svp/svp.o pico/carthw/svp/memory.o \\r
+ pico/carthw/svp/ssp16.o\r
# Pico - Pico\r
-OBJS += Pico/Pico/Pico.o Pico/Pico/Memory.o Pico/Pico/xpcm.o\r
+OBJS += pico/pico/pico.o pico/pico/memory.o pico/pico/xpcm.o\r
endif\r
\r
# Pico - sound\r
ifneq "$(amalgamate)" "1"\r
-OBJS += Pico/sound/sound.o\r
+OBJS += pico/sound/sound.o\r
endif\r
-OBJS += Pico/sound/mix.o\r
-OBJS += Pico/sound/sn76496.o Pico/sound/ym2612.o\r
+OBJS += pico/sound/mix.o\r
+OBJS += pico/sound/sn76496.o pico/sound/ym2612.o\r
# zlib (hacked)\r
OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \\r
zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o \\r
\r
vpath %.c = ../..\r
vpath %.s = ../..\r
-DIRS = platform platform/psp platform/common Pico Pico/cd Pico/Pico Pico/sound Pico/carthw/svp \\r
+DIRS = platform platform/psp platform/common pico pico/cd pico/pico pico/sound pico/carthw/svp \\r
zlib unzip cpu cpu/musashi cpu/fame cpu/mz80 cpu/cz80\r
\r
\r
@echo ">>>" $<\r
$(CC) $(CFLAGS) -Wno-unused -c $< -o $@\r
\r
-Pico/Memory.o : ../../Pico/Memory.c\r
+pico/misc.o : ../../pico/misc.c\r
@echo ">>>" $<\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
+ $(CC) $(CFLAGS) -c $< -o $@ -D_ASM_MISC_C_AMIPS\r
\r
-Pico/Draw.o : ../../Pico/Draw.c\r
+pico/memory.o : ../../pico/memory.c\r
@echo ">>>" $<\r
- $(CC) $(CFLAGS) -c $< -o $@ -D_ASM_DRAW_C_AMIPS\r
+ $(CC) $(CFLAGS) -O2 -c $< -o $@ -D_ASM_MEMORY_C -D_ASM_MEMORY_C_AMIPS\r
\r
-Pico/Misc.o : ../../Pico/Misc.c\r
+pico/cd/memory.o : ../../pico/cd/memory.c\r
@echo ">>>" $<\r
- $(CC) $(CFLAGS) -c $< -o $@ -D_ASM_MISC_C_AMIPS\r
+ $(CC) $(CFLAGS) -O2 -c $< -o $@\r
\r
-Pico/cd/gfx_cd.o : ../../Pico/cd/gfx_cd.c\r
+pico/cd/gfx_cd.o : ../../pico/cd/gfx_cd.c\r
@echo ">>>" $<\r
$(CC) $(CFLAGS) -O2 -c $< -o $@\r
\r
#include "../common/emu.h"
#include "../common/config.h"
#include "../common/lprintf.h"
-#include "../../Pico/PicoInt.h"
-#include "../../Pico/cd/cue.h"
+#include <pico/pico_int.h>
+#include <pico/cd/cue.h>
#define OSD_FPS_X 432
#include "../common/lprintf.h"
#include "version.h"
-#include <Pico/PicoInt.h>
-#include <Pico/Patch.h>
+#include <pico/pico_int.h>
+#include <pico/patch.h>
#include <zlib/zlib.h>
#include <pspaudiocodec.h>
#include <kubridge.h>
-#include "../../Pico/PicoInt.h"
-#include "../../Pico/sound/mix.h"
+#include "../../pico/pico_int.h"
+#include "../../pico/sound/mix.h"
#include "../common/lprintf.h"
int mp3_last_error = 0;
#include <string.h>\r
\r
#include "version.h"\r
-#include <Pico/PicoInt.h>\r
+#include <pico/pico_int.h>\r
#include "../common/emu.h"\r
#include "engine/debug.h"\r
#include "App.h"\r
# objects\r
\r
# launcher\r
-OBJ += App.o Engine.o Dialogs.o CSimpleTextParser.o emu.o\r
+OBJS += App.o Engine.o Dialogs.o CSimpleTextParser.o emu.o\r
# engine\r
-OBJ += engine/main.o engine/vid.o engine/polledas.o engine/audio_mediaserver.o engine/debug.o\r
+OBJS += engine/main.o engine/vid.o engine/polledas.o engine/audio_mediaserver.o engine/debug.o\r
ifeq "$(asm_blit)" "1"\r
-OBJ += engine/blit_asm.o\r
+OBJS += engine/blit_asm.o\r
else\r
-OBJ += engine/blit.o\r
+OBJS += engine/blit.o\r
endif\r
# common\r
-OBJ += ../common/emu.o ../common/config.o ../common/menu.o ../common/mp3_helix.o\r
+OBJS += ../common/emu.o ../common/config.o ../common/menu.o ../common/mp3_helix.o\r
# Pico\r
-OBJ += Pico/Area.o Pico/Cart.o Pico/Memory.o Pico/Misc.o Pico/Pico.o Pico/Sek.o \\r
- Pico/VideoPort.o Pico/Draw2.o Pico/Draw.o Pico/Patch.o Pico/Debug.o\r
+OBJS += pico/area.o pico/cart.o pico/memory.o pico/misc.o pico/pico.o pico/sek.o \\r
+ pico/videoport.o pico/draw2.o pico/draw.o pico/patch.o pico/debug.o\r
# Pico - CD\r
-OBJ += Pico/cd/Pico.o Pico/cd/Memory.o Pico/cd/Sek.o Pico/cd/LC89510.o \\r
- Pico/cd/cd_sys.o Pico/cd/cd_file.o Pico/cd/cue.o Pico/cd/gfx_cd.o \\r
- Pico/cd/Area.o Pico/cd/Misc.o Pico/cd/pcm.o Pico/cd/buffering.o\r
+OBJS += pico/cd/pico.o pico/cd/memory.o pico/cd/sek.o pico/cd/LC89510.o \\r
+ pico/cd/cd_sys.o pico/cd/cd_file.o pico/cd/cue.o pico/cd/gfx_cd.o \\r
+ pico/cd/area.o pico/cd/misc.o pico/cd/pcm.o pico/cd/buffering.o\r
# Pico - Pico\r
-OBJ += Pico/Pico/Pico.o Pico/Pico/Memory.o Pico/Pico/xpcm.o\r
+OBJS += pico/pico/pico.o pico/pico/memory.o pico/pico/xpcm.o\r
# Pico - carthw\r
-OBJ += Pico/carthw/carthw.o Pico/carthw/svp/svp.o Pico/carthw/svp/Memory.o \\r
- Pico/carthw/svp/ssp16.o Pico/carthw/svp/compiler.o Pico/carthw/svp/stub_arm.o\r
-\r
-# asm stuff\r
-ifeq "$(asm_render)" "1"\r
-CFLAGS += -D_ASM_DRAW_C\r
-OBJ += Pico/draw_asm.o Pico/draw2_asm.o\r
-endif\r
-ifeq "$(asm_memory)" "1"\r
-CFLAGS += -D_ASM_MEMORY_C\r
-OBJ += Pico/memory_asm.o\r
-endif\r
-ifeq "$(asm_ym2612)" "1"\r
-CFLAGS += -D_ASM_YM2612_C\r
-OBJ += Pico/sound/ym2612_asm.o\r
-endif\r
-ifeq "$(asm_misc)" "1"\r
-CFLAGS += -D_ASM_MISC_C\r
-OBJ += Pico/misc_asm.o\r
-OBJ += Pico/cd/misc_asm.o\r
-endif\r
-ifeq "$(asm_cdpico)" "1"\r
-CFLAGS += -D_ASM_CD_PICO_C\r
-OBJ += Pico/cd/pico_asm.o\r
-endif\r
-ifeq "$(asm_cdmemory)" "1"\r
-CFLAGS += -D_ASM_CD_MEMORY_C\r
-OBJ += Pico/cd/memory_asm.o\r
-endif\r
+OBJS += pico/carthw/carthw.o pico/carthw/svp/svp.o pico/carthw/svp/memory.o \\r
+ pico/carthw/svp/ssp16.o pico/carthw/svp/compiler.o pico/carthw/svp/stub_arm.o\r
\r
# Pico - sound\r
-OBJ += Pico/sound/sound.o\r
-OBJ += Pico/sound/mix_asm.o\r
-OBJ += Pico/sound/sn76496.o Pico/sound/ym2612.o\r
+OBJS += pico/sound/sound.o\r
+OBJS += pico/sound/mix_arm.o\r
+OBJS += pico/sound/sn76496.o pico/sound/ym2612.o\r
# zlib\r
-OBJ += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \\r
+OBJS += zlib/gzio.o zlib/inffast.o zlib/inflate.o zlib/inftrees.o zlib/trees.o \\r
zlib/deflate.o zlib/crc32.o zlib/adler32.o zlib/zutil.o zlib/compress.o\r
# unzip\r
-OBJ += unzip/unzip.o unzip/unzip_stream.o\r
+OBJS += unzip/unzip.o unzip/unzip_stream.o\r
# CPU cores\r
ifeq "$(use_musashi)" "1"\r
CFLAGS += -DEMU_M68K\r
-OBJ += cpu/musashi/m68kops.o cpu/musashi/m68kcpu.o\r
+OBJS += cpu/musashi/m68kops.o cpu/musashi/m68kcpu.o\r
endif\r
ifeq "$(use_cyclone)" "1"\r
CFLAGS += -DEMU_C68K\r
-OBJ += cpu/Cyclone/proj/Cyclone.o cpu/Cyclone/tools/idle.o\r
+OBJS += cpu/Cyclone/proj/Cyclone.o cpu/Cyclone/tools/idle.o\r
endif\r
# drz80\r
CFLAGS += -D_USE_DRZ80\r
-OBJ += cpu/DrZ80/drz80.o\r
+OBJS += cpu/DrZ80/drz80.o\r
# helix\r
-OBJ += ../common/helix/$(CROSS)helix-mp3.a\r
+OBJS += ../common/helix/$(CROSS)helix-mp3.a\r
\r
\r
vpath %.c = ../..\r
vpath %.s = ../..\r
vpath %.S = ../..\r
-DIRS = platform platform/common Pico Pico/cd Pico/Pico Pico/sound Pico/carthw/svp \\r
+DIRS = platform platform/common pico pico/cd pico/pico pico/sound pico/carthw/svp \\r
zlib unzip cpu cpu/musashi cpu/Cyclone/proj cpu/Cyclone/tools cpu/mz80 cpu/DrZ80\r
\r
ICONS := $(shell echo rsc/*.bmp)\r
\r
all: mkdirs sis\r
\r
-include uiq3.mak\r
include ../common/common_arm.mak\r
+include uiq3.mak\r
\r
\r
$(NAME).mbg $(NAME).mbm : $(ICONS)\r
#include "../common/emu.h"
#include "../common/config.h"
#include "../common/menu.h"
-#include "Pico/PicoInt.h"
+#include "pico/pico_int.h"
const char * const keyNames[] = {
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
#include "debug.h"\r
#include "../Engine.h"\r
\r
-#include <Pico/PicoInt.h>\r
+#include <pico/pico_int.h>\r
#include "../../common/emu.h"\r
#include "../emu.h"\r
#include "vid.h"\r
\r
#include "vid.h"\r
#include "../Engine.h"\r
-#include <Pico/PicoInt.h>\r
+#include <pico/pico_int.h>\r
#include "../../common/emu.h"\r
#include "blit.h"\r
#include "debug.h"\r
SRCH += $(shell echo ../inc/*.h)
SRC += $(shell echo ../src/*.cpp)
SRCRES ?= $(shell echo $(RSCDIR)/*.rss $(RSCDIR)/*.rls $(REGDIR)/*.rss $(REGDIR)/*.rls)
-OBJ ?= $(SRC:.cpp=.o)
+OBJS ?= $(SRC:.cpp=.o)
.PHONY : all mbm icon_mbm rsc reg loc bin sis run
bin_elf : $(NAME).elf.exe
-$(NAME).elf.exe : $(OBJ) $(EXTRALIB)
+$(NAME).elf.exe : $(OBJS) $(EXTRALIB)
@echo "Linking..."
- $(LD) $(LDFLAGS) $(OBJ) $(EXTRALIB) $(LDFLAGS2)
+ $(LD) $(LDFLAGS) $(OBJS) $(EXTRALIB) $(LDFLAGS2)
.cpp.o :
@echo "Compiling $< ..."
$(CXX) -M -DDEPS $(SRC) $(CXXFLAGS) >> $@
clean :
- rm -f $(NAME).exe $(NAME).elf.exe $(OBJ) tags .deps $(NAME).exe.map
+ rm -f $(NAME).exe $(NAME).elf.exe $(OBJS) tags .deps $(NAME).exe.map
rm -f *.bkp ../src/*.bkp ../inc/*.bkp $(RSCDIR)/*.bkp $(REGDIR)/*.bkp
rm -f $(RSCDIR)/*.rsc $(RSCDIR)/*.rsg
rm -f $(REGDIR)/*.rsc $(REGDIR)/*.rsg
}\r
\r
#ifdef USE_D3D\r
+#define PI 3.14159265f\r
+\r
static int MakeVertexList()\r
{\r
struct CustomVertex *vert=NULL,*pv=NULL;\r
\r
#include <d3dx8.h>\r
\r
-#include <Pico/Pico.h>\r
-\r
-#define PI 3.14159265f\r
+#include <pico/pico.h>\r
\r
#define RELEASE(x) if (x) x->Release(); x=NULL;\r
\r