Phoenix emu

vbt

Staff member
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 ?
 

Attachments

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.
 
well I've failed to add support of Phoenix (Taito) on the current emu, anybody can see why in the sources ?
 
So in fact it's bugs in yabause 0.97, games run on yabause 0.93 and on girigiri.
 

Attachments

  • Image1.jpg
    Image1.jpg
    79.5 KB · Views: 75
  • Image2.jpg
    Image2.jpg
    79.5 KB · Views: 86
  • Image3.jpg
    Image3.jpg
    79.5 KB · Views: 84
  • Image4.jpg
    Image4.jpg
    79.2 KB · Views: 65
Well not much success, I wanted to replace CPU core (some games use z80) and why not use 352x240 for higher CPU speed.
 
Back
Top