2011-06-05 15:05:12 +04:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
2011-07-19 11:26:40 +01:00
|
|
|
# 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 = [
|
2011-06-11 16:08:30 +04:00
|
|
|
'randomnumber',
|
|
|
|
'quickquit',
|
|
|
|
'quickquit2',
|
|
|
|
'seecommandtail',
|
|
|
|
'multiget',
|
|
|
|
'multiput',
|
|
|
|
'multidump',
|
2011-06-26 19:32:02 +02:00
|
|
|
'frameoutnm',
|
|
|
|
'frameoutbh',
|
|
|
|
'frameoutfx',
|
2011-06-11 16:08:30 +04:00
|
|
|
'cls',
|
|
|
|
'printundermon',
|
2011-07-17 14:38:30 +02:00
|
|
|
'kernchars',
|
|
|
|
'getnextword',
|
2011-07-17 16:06:19 +02:00
|
|
|
'getnumber',
|
2011-06-11 16:08:30 +04:00
|
|
|
'worktoscreen',
|
2011-06-20 20:00:09 +02:00
|
|
|
'width160',
|
2011-06-20 20:09:26 +02:00
|
|
|
'convertkey',
|
|
|
|
'readabyte',
|
2011-06-22 23:11:44 +02:00
|
|
|
'readoneblock',
|
2011-06-26 15:17:19 +02:00
|
|
|
'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',
|
2011-06-26 15:17:19 +02:00
|
|
|
'spriteupdate',
|
2011-06-28 04:55:10 +02:00
|
|
|
'dodoor',
|
2011-06-28 05:10:35 +02:00
|
|
|
'liftsprite',
|
2011-06-25 17:28:51 +04:00
|
|
|
'frameoutv',
|
2011-07-16 11:04:49 +02:00
|
|
|
'modifychar',
|
2011-07-20 13:15:30 +02:00
|
|
|
'lockmon',
|
|
|
|
'cancelch0',
|
|
|
|
'cancelch1'
|
2011-06-11 16:08:30 +04:00
|
|
|
])
|
2011-06-05 15:05:12 +04:00
|
|
|
generator.generate('dreamweb') #start routine
|