#include "walkrom.h"
#include "walk.h"

/*
 * ROM spec file
 */
beginseg

	name "code"
	flags BOOT OBJECT
	entry boot
	address 0x80200000
	stack bootStack + STACKSIZE
	include "codesegment.o"
	include "$(ROOT)/usr/lib/PR/rspboot.o"
	include "$(ROOT)/usr/lib/PR/gspFast3D.o"
	include "$(ROOT)/usr/lib/PR/gspFast3D.dram.o"
	include "$(ROOT)/usr/lib/PR/aspMain.o"
#ifdef HAUNTEDFLAG
	include "originalhouse_portals.o" 
	include "originalhouse_mvt.o" 
#endif /* HAUNTEDFLAG */

endseg

beginseg
	name "yield"
	flags OBJECT
	after "code"
	include "gfxyield.o"
endseg

beginseg
	name "cfb"
	address 0x80368f00
	flags OBJECT
	include "gfxcfb.o"
endseg

beginseg
	name "zbuffer"
	flags OBJECT
	address 0x80000400
	include "gfxzbuffer.o"
endseg

beginseg
	name "static"
	flags OBJECT
	number STATIC_SEGMENT
	include "gfxstatic.o"
#ifdef HAUNTEDFLAG
	include "chamber.o"
	include "chapel.o"
	include "dinehall.o"
	include "hall.o"
	include "nooseroom.o"
	include "lowerstairs.o"
	include "upperstairs.o"
	include "longhall.o"
	include "shorthall.o"
	include "originalhouse_root.o"
#endif /* HAUNTEDFLAG */
endseg

beginseg
	name "dynamic"
	flags OBJECT
	number DYNAMIC_SEGMENT
	include "gfxdynamic.o"
endseg

beginseg
	name "bank"
	flags RAW
#ifdef SIMPLEAUDIO
	include "$(ROOT)/usr/lib/PR/soundbanks/tone.ctl"
#else
	include "$(ROOT)/usr/lib/PR/soundbanks/GenMidiBank.ctl"
#endif
endseg

beginseg
	name "table"
	flags RAW
#ifdef SIMPLEAUDIO
	include "$(ROOT)/usr/lib/PR/soundbanks/tone.tbl"
#else
	include "$(ROOT)/usr/lib/PR/soundbanks/GenMidiBank.tbl"
#endif
endseg

beginseg
	name "seq"
	flags RAW
#ifdef SIMPLEAUDIO
	include "$(ROOT)/usr/lib/PR/sequences/onenote.seq"
#else
	include "$(ROOT)/usr/lib/PR/sequences/hawaii50.seq"
#endif
endseg

beginwave
	name "walk"
	include "code"
	include "yield"
	include "static"
	include "dynamic"
	include "cfb"
	include "zbuffer"
	include "table"
	include "bank"
	include "seq"
endwave
