70 lines
1.7 KiB
Plaintext
Raw Normal View History

2011-06-05 15:05:12 +04:00
#!/usr/bin/python
# ScummVM - Graphic Adventure Engine
#
# ScummVM is the legal property of its developers, whose names
# are too numerous to list here. Please refer to the COPYRIGHT
# file distributed with this source distribution.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
2011-06-05 15:05:12 +04:00
from tasm.parser import parser
from tasm.cpp import cpp
p = parser()
p.strip_path = 3
context = p.parse('dreamweb/dreamweb.asm')
p.link()
2011-06-16 16:31:17 +04:00
generator = cpp(context, "DreamGen", blacklist = [
'randomnumber',
'quickquit',
'quickquit2',
'seecommandtail',
'multiget',
'multiput',
'multidump',
'frameoutnm',
'frameoutbh',
'frameoutfx',
'cls',
'printundermon',
'kernchars',
'getnextword',
2011-07-17 16:06:19 +02:00
'getnumber',
'worktoscreen',
'width160',
'convertkey',
'readabyte',
'readoneblock',
'printsprites',
'printasprite',
'eraseoldobs',
'clearsprites',
'makesprite',
2011-06-26 17:03:17 +02:00
'showframe',
2011-06-28 15:48:07 +02:00
'initman',
2011-06-28 14:54:26 +02:00
'walking',
'spriteupdate',
2011-06-28 04:55:10 +02:00
'dodoor',
2011-06-28 05:10:35 +02:00
'liftsprite',
'frameoutv',
'modifychar',
'lockmon',
'cancelch0',
'cancelch1'
])
2011-06-05 15:05:12 +04:00
generator.generate('dreamweb') #start routine