HomeForumsWhat's newResources 
 
 
Phoenix emu
vbt - Sep 7, 2008
 vbt Sep 7, 2008
I'm trying to run it but each time i run it it kills any emu. Anybody knows how to compile it correctly using gnush elf 6 or 8 ?

 vbt Sep 7, 2008
I used all stuff from saturnorbit with no success.

ip.bin,makefile,libs from saturn orbit


i kept only in the sources a init system and a slprint and it still doesn't work.


Objects file


  
	
	
# source_program

SRCS = \

main.c \

C:/SaturnOrbit/COMMON/cinit.o


SYSOBJS = $(SGLLDR)/sglarea.o

OBJS = $(SRCS:.c=.o)

LIBS =C:/SaturnOrbit/SGL_302j/LIB_ELF/LIBSGL.A

#C:/SaturnOrbit/SGL_302j/LIB_ELF/LIBCD.A

#L:/saturn/dev/phoenix/ELF/LIBCD.A\

#L:/saturn/dev/phoenix/ELF/LIBSGL.A\



Makefile


  
	
	
#

# SEGA SATURN Graphic library make file for GNU

#

# slightly modified for ISO building, COFF toolchain


# specify on command line

# OBJFMT = coff

OBJFMT = elf


# macro

CC = sh-$(OBJFMT)-gcc

CONV = sh-$(OBJFMT)-objcopy

RM = rm


# directory

SGLDIR = C:/SaturnOrbit/SGL_302j

SGLIDR = $(SGLDIR)/inc

SGLLDR = $(SGLDIR)/lib_elf


CMNDIR = C:/SaturnOrbit/COMMON

OBJECTS = ./objects


# option

#CCFLAGS = -O2 -m2 -g -c -I$(SGLIDR)

CCFLAGS = -O1 -m2 -c -I$(SGLIDR)


# -m2 must be specified in LDFLAGS so the linker will search the SH2 lib dirs

# Specify path of libsgl.a by using "-L" option


LDFLAGS = -m2 -L$(SGLLDR) -Xlinker -T$(LDFILE) -Xlinker -Map \

-Xlinker $(MPFILE) -Xlinker -e -Xlinker ___Start -nostartfiles -LL:/GNUSH802-ELF/sh-elf/sh-elf/lib/m2/libc.a

DFLAGS =

include $(OBJECTS)


TARGET = root/sl.coff

TARGET1 = root/sl.bin

MPFILE = $(TARGET:.coff=.maps)

IPFILE = $(CMNDIR)/IP.BIN

LDFILE = $(CMNDIR)/SL.lnk

MAKEFILE = makefile



all: $(TARGET) $(TARGET1) $(TARGET2)


# Use gcc to link so it will automagically find correct libs directory


$(TARGET) : $(SYSOBJS) $(OBJS) $(MAKEFILE) $(LDFILE) #$(OBJECTS)

$(CC) $(LDFLAGS) $(SYSOBJS) $(OBJS) $(LIBS) -o $@


$(TARGET1) : $(SYSOBJS) $(OBJS) $(MAKEFILE) $(LDFILE)

$(CONV) -O binary $(TARGET) $(TARGET1)


.SUFFIXES: .asm


.c.o:

$(CC) $< $(DFLAGS) $(CCFLAGS) $(_CCFLAGS) -o $@



EDIT : fixed by restoring cinit.o and restoring -Xlinker --format=coff-sh -Xlinker, but why this for ELF ? I never use that with SBL.

 vbt Sep 13, 2008
well I've failed to add support of Phoenix (Taito) on the current emu, anybody can see why in the sources ?

 vbt Sep 13, 2008
So in fact it's bugs in yabause 0.97, games run on yabause 0.93 and on girigiri.

 vbt Sep 18, 2008
Well not much success, I wanted to replace CPU core (some games use z80) and why not use 352x240 for higher CPU speed.

 vbt Oct 18, 2008
Z80Em VS Cz80


I've added frame counter on this emu The Raze release doesn't work yet I don't know why.


Z80Em => 25-30fps

Cz80 => 50-60fps


When removing vsynch with cz80 i get 200-300 fps.


http://vberthelot.free.fr/phoenix/phoenix.zip...


EDIT : there was a bug in the way to do vsynch, now I get always 60fps. Also it means I got a bug in SMS Plus which reduces speed.


http://vberthelot.free.fr/phoenix/phoenix_b.zip...