mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-24 23:22:25 +01:00
[No prior releases were posted to the WIP thread. -Ed.] byuu says: Super Famicom mapping system has been reworked as discussed with the mask= changes. offset becomes base, mode is gone. Also added support for comma-separated fields in the address fields, to reduce the number of map lines needed. <?xml version="1.0" encoding="UTF-8"?> <cartridge region="NTSC"> <superfx revision="2"> <rom name="program.rom" size="0x200000"/> <ram name="save.rwm" size="0x8000"/> <map id="io" address="00-3f,80-bf:3000-32ff"/> <map id="rom" address="00-3f:8000-ffff" mask="0x8000"/> <map id="rom" address="40-5f:0000-ffff"/> <map id="ram" address="00-3f,80-bf:6000-7fff" size="0x2000"/> <map id="ram" address="70-71:0000-ffff"/> </superfx> </cartridge> Or in BML: cartridge region=NTSC superfx revision=2 rom name=program.rom size=0x200000 ram name=save.rwm size=0x8000 map id=io address=00-3f,80-bf:3000-32ff map id=rom address=00-3f:8000-ffff mask=0x8000 map id=rom address=40-5f:0000-ffff map id=ram address=00-3f,80-bf:6000-7fff size=0x2000 map id=ram address=70-71:0000-ffff As a result of the changes, old mappings will no longer work. The above XML example will run Super Mario World 2: Yoshi's Island. Otherwise, you'll have to write your own. All that's left now is to work some sort of database mapping system in, so I can start dumping carts en masse. The NES changes that FitzRoy asked for are mostly in as well. Also, part of the reason I haven't released a WIP ... but fuck it, I'm not going to wait forever to post a new WIP. I've added a skeleton driver to emulate Campus Challenge '92 and Powerfest '94. There's no actual emulation, except for the stuff I can glean from looking at the pictures of the board. It has a DSP-1 (so SR/DR registers), four ROMs that map in and out, RAM, etc. I've also added preliminary mapping to upload high scores to a website, but obviously I need the ROMs first.
112 lines
2.2 KiB
Makefile
Executable File
112 lines
2.2 KiB
Makefile
Executable File
include nall/Makefile
|
|
|
|
fc := fc
|
|
sfc := sfc
|
|
gb := gb
|
|
gba := gba
|
|
# nds := nds
|
|
|
|
profile := accuracy
|
|
target := ethos
|
|
|
|
# options += debugger
|
|
# arch := win32
|
|
# console := true
|
|
|
|
# compiler
|
|
c := $(compiler) -std=gnu99
|
|
cpp := $(subst cc,++,$(compiler)) -std=gnu++0x
|
|
flags := -I. -O3 -fomit-frame-pointer
|
|
link := -s
|
|
objects := libco
|
|
|
|
# profile-guided optimization mode
|
|
# pgo := instrument
|
|
# pgo := optimize
|
|
|
|
ifeq ($(pgo),instrument)
|
|
flags += -fprofile-generate
|
|
link += -lgcov
|
|
else ifeq ($(pgo),optimize)
|
|
flags += -fprofile-use
|
|
endif
|
|
|
|
# platform
|
|
ifeq ($(platform),x)
|
|
flags += -march=native
|
|
link += -ldl -lX11 -lXext
|
|
else ifeq ($(platform),osx)
|
|
else ifeq ($(platform),win)
|
|
ifeq ($(arch),win32)
|
|
flags += -m32
|
|
link += -m32
|
|
endif
|
|
ifeq ($(console),true)
|
|
link += -mconsole
|
|
else
|
|
link += -mwindows
|
|
endif
|
|
link += -mthreads -luuid -lkernel32 -luser32 -lgdi32 -lcomctl32 -lcomdlg32 -lshell32 -lole32 -lws2_32
|
|
link += -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc
|
|
else
|
|
unknown_platform: help;
|
|
endif
|
|
|
|
ui := target-$(target)
|
|
|
|
# implicit rules
|
|
compile = \
|
|
$(strip \
|
|
$(if $(filter %.c,$<), \
|
|
$(c) $(flags) $1 -c $< -o $@, \
|
|
$(if $(filter %.cpp,$<), \
|
|
$(cpp) $(flags) $1 -c $< -o $@ \
|
|
) \
|
|
) \
|
|
)
|
|
|
|
%.o: $<; $(call compile)
|
|
|
|
all: build;
|
|
|
|
obj/libco.o: libco/libco.c libco/*
|
|
|
|
include $(ui)/Makefile
|
|
flags := $(flags) $(foreach o,$(call strupper,$(options)),-D$o)
|
|
|
|
# targets
|
|
clean:
|
|
-@$(call delete,obj/*.o)
|
|
-@$(call delete,obj/*.a)
|
|
-@$(call delete,obj/*.so)
|
|
-@$(call delete,obj/*.dylib)
|
|
-@$(call delete,obj/*.dll)
|
|
-@$(call delete,*.res)
|
|
-@$(call delete,*.pgd)
|
|
-@$(call delete,*.pgc)
|
|
-@$(call delete,*.ilk)
|
|
-@$(call delete,*.pdb)
|
|
-@$(call delete,*.manifest)
|
|
|
|
sync:
|
|
if [ -d ./libco ]; then rm -r ./libco; fi
|
|
if [ -d ./nall ]; then rm -r ./nall; fi
|
|
if [ -d ./ruby ]; then rm -r ./ruby; fi
|
|
if [ -d ./phoenix ]; then rm -r ./phoenix; fi
|
|
cp -r ../libco ./libco
|
|
cp -r ../nall ./nall
|
|
cp -r ../ruby ./ruby
|
|
cp -r ../phoenix ./phoenix
|
|
rm -r libco/doc
|
|
rm -r libco/test
|
|
rm -r nall/test
|
|
rm -r ruby/_test
|
|
rm -r phoenix/nall
|
|
rm -r phoenix/test
|
|
|
|
archive:
|
|
if [ -f higan.tar.xz ]; then rm higan.tar.xz; fi
|
|
tar -cJf higan.tar.xz `ls`
|
|
|
|
help:;
|