⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 makemon.sh

📁 一个两碟控制的VCD的代码,两碟之间的转动及连续播放,已大量生产的CODE.
💻 SH
字号:
# Copyright 1996-1997, ESS Technology, Inc.
# SCCSID @(#)makemon.sh	1.9 11/19/98

#
# Shared part for DRAM game makefile/makefile.pc
#

BOOT_START      = cfffa30	# for making game.dat

JUMP	= -jump			# for making game.dat

DATA_START = 8030		# for making game.dat

DFLAGS = -DEMULATOR -DNEW_EMULATOR

CLK = -DCPUCLK=675
IDLE = -D_IDLECLK_=270					# 27MHz idle

ES3207	=
ES3881  = -DDSC_IRQ -DECHO_ANALOG_BYPASS  -DDSC_IRQ_USETIMER2
SYSOPTIONS	= -DMKROM $(CLK) $(IDLE) -DIR -DIR_NEC -DNGAME -DDSC -DMONITOR \
		  $(ES3881)

#
# Flags for ESS' C compile (for all targets)
#

.c.o:
	$(BIN)/gcc -B$(BIN)/ $(INCLUDES) -g $(FLAGS) $(DFLAGS) $(SYSOPTIONS) \
	-o $*.s $<
	$(AX) -R $*.s > err
.s.o:
	$(AX) $*.s > err

SOURCE_C = gamectrl.c microvfd.c

STARTUP_S	= monboot.s

WIDTH10		= 0x01
MEMDELAYH	= 0x01d
MEMWIDTH	= 0xe
MEMDELAYL	= 0x001e

monitor: tmp.dat dummy.dat monitor.rom

monitor.rom: monitor.sun gameboot profile.mon
	$(RLD) -r 0xc0000000 -Ttext1 0 -Tdata $(DATA_START) -w monitor.sun
	$(ROM)  $(JUMP) profile.mon > mstat

monitor.sun: g_start.o $(SOURCE_C:.c=.o)
	$(LD) -r  -X -Tdata 0 -Ttext 0 g_start.o $(SOURCE_C:.c=.o) -o $@

g_start.o: g_start.s

gameboot: monboot1.s
	$(AX) -R monboot1.s
	$(LD) -Ttext $(BOOT_START) -e powerup -X -o gameboot monboot1.o

monboot1.s: $(STARTUP_S)
		$(SED) 's/_MEMWIDTH_/$(MEMWIDTH)/g' $(STARTUP_S) > temp1.sss
		$(SED) 's/_MEMDELAYL_/$(MEMDELAYL)/g' temp1.sss > temp2.sss
		$(SED) 's/_MEMDELAYH_/$(MEMDELAYH)/g' temp2.sss > temp1.sss
		$(SED) 's/_WIDTH10_/$(WIDTH10)/g' temp1.sss > monboot1.s
		$(RM) temp1.sss temp2.sss

#
# Clean up
#
clean:
	$(RM) $(SOURCE_C:.c=.o)
	$(RM) $(SOURCE_C:.c=.s)
	$(RM) monitor.sun monitor.rom
	$(RM) g_start.o gameboot
	$(RM) monboot1.s monboot1.o
	$(RM) err
	$(RM) mstat

#
# Object file dependency
#
gamectrl.o	: mvd.h common.h util.h debug.h ioport.h ir.h constvar.h \
		  timedef.h dsc.h const.h keydef.h

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -