mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-06 02:45:07 +01:00
2b78421402
------ * improved 68k accuracy (initial reset timing + auto-vectored interrupts handling). * modified Z80 & 68k cores to directly use external cycle count instead of intermediate counters. * improved Z80 & 68k cpu execution/synchronization accuracy, now use Master Clock as common clock reference. * improved PSG & FM chips synchronization with CPU execution (fixed point precision). * completely rewrote sound output processing & mixing: sound chips are now clocked with exact output frame rate to ensure 100% smooth video & audio playback, with no lag or skipping, while still rendering an accurate number of samples per frame. This will also make fast-forward implementation (video AND sound) more trivial. * improved color accuracy in VDP highlight mode to match results observed on real hardware. * improved sprites processing timing accuracy: fixes (un)masked sprites in Mickey Mania (3D level), Sonic 2 (VS mode). * improved horizontal blanking & HINT/VINT occurrence timing accuracy, as measured on real hardware. * improved H-Counter accuracy in 40-cell mode, as measured on real hardware. * optimized Z80 bus status signals * usual code cleanup [GCN/WII] --------- fixed ASNDLIB exit when returning to game fixed audio/video startup sync modified audio back-end engine according to new audio processing core (see above)
109 lines
2.4 KiB
Makefile
109 lines
2.4 KiB
Makefile
|
|
# Makefile for genplus SDL
|
|
#
|
|
# (c) 1999, 2000, 2001, 2002, 2003 Charles MacDonald
|
|
# modified by Eke-Eke <eke_eke31@yahoo.fr>
|
|
#
|
|
# Defines :
|
|
# LSB_FIRST : for little endian systems.
|
|
# X86_ASM : enable x86 assembly optimizations
|
|
|
|
NAME = gen_sdl.exe
|
|
|
|
CC = gcc
|
|
CFLAGS = `sdl-config --cflags` -O6 -march=i686 -fomit-frame-pointer
|
|
DEFINES = -DLSB_FIRST -DX86_ASM -DLOGERROR=1 -DLOGVDP=1
|
|
INCLUDES = -I. -I.. -I../z80 -I../m68k -I../sound -I../cart_hw -I../cart_hw/svp -I../ntsc
|
|
LIBS = `sdl-config --libs` -lz -lm
|
|
|
|
OBJECTS = obj/z80.o
|
|
|
|
OBJECTS += obj/m68kcpu.o \
|
|
obj/m68kops.o
|
|
|
|
|
|
OBJECTS += obj/genesis.o \
|
|
obj/vdp.o \
|
|
obj/render.o \
|
|
obj/system.o \
|
|
obj/gen_io.o \
|
|
obj/gen_input.o \
|
|
obj/mem68k.o \
|
|
obj/memz80.o \
|
|
obj/membnk.o \
|
|
obj/state.o
|
|
|
|
OBJECTS += obj/sound.o \
|
|
obj/sn76489.o \
|
|
obj/ym2612.o
|
|
|
|
OBJECTS += obj/Fir_Resampler.o \
|
|
|
|
OBJECTS += obj/eq.o \
|
|
|
|
OBJECTS += obj/sram.o \
|
|
obj/eeprom.o \
|
|
obj/svp.o \
|
|
obj/ssp16.o \
|
|
obj/ggenie.o \
|
|
obj/datel.o \
|
|
obj/cart_hw.o
|
|
|
|
OBJECTS += obj/main.o \
|
|
obj/config.o \
|
|
obj/error.o \
|
|
obj/unzip.o \
|
|
obj/fileio.o \
|
|
obj/loadrom.o
|
|
|
|
OBJECTS += obj/sms_ntsc.o \
|
|
obj/md_ntsc.o
|
|
|
|
OBJECTS += obj/icon.o
|
|
|
|
all: $(NAME)
|
|
|
|
$(NAME): $(OBJECTS)
|
|
$(CC) $(LDFLAGS) $(OBJECTS) $(LIBS) -o $@
|
|
|
|
obj/%.o : ../%.c ../%.h
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) $< -o $@
|
|
|
|
obj/%.o : ../asm/%.s
|
|
$(AS) $< -o $@
|
|
|
|
obj/%.o : ../sound/%.c ../sound/%.h
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) $< -o $@
|
|
obj/%.o : ../sound/%.c
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) $< -o $@
|
|
|
|
obj/%.o : ../cart_hw/%.c ../cart_hw/%.h
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) $< -o $@
|
|
|
|
obj/%.o : ../cart_hw/svp/%.c
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) $< -o $@
|
|
obj/%.o : ../cart_hw/svp/%.c ../cart_hw/svp/%.h
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) $< -o $@
|
|
|
|
obj/%.o : ../z80/%.c ../z80/%.h
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) $< -o $@
|
|
|
|
obj/%.o : ../m68k/%.c ../m68k/%.h
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) $< -o $@
|
|
|
|
obj/%.o : ./%.c ./%.h
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) $< -o $@
|
|
|
|
obj/%.o : ../ntsc/%.c ../ntsc/%.h
|
|
$(CC) -c $(CFLAGS) $(INCLUDES) $(DEFINES) $< -o $@
|
|
|
|
obj/icon.o :
|
|
windres icon.rc $@
|
|
|
|
pack :
|
|
strip $(NAME)
|
|
upx -9 $(NAME)
|
|
|
|
clean:
|
|
rm -f $(OBJECTS) $(NAME)
|