110 lines
2.3 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 = [
2011-06-26 12:06:16 +02:00
# These functions are not processed
'randomnumber',
'quickquit',
'quickquit2',
'seecommandtail',
'multiget',
'multiput',
'multidump',
'frameoutnm',
'frameoutbh',
'frameoutfx',
2011-07-30 23:11:48 +02:00
'cls',
'clearwork',
'printundermon',
'kernchars',
'getnextword',
2011-07-17 16:06:19 +02:00
'getnumber',
2011-07-21 22:46:16 +02:00
'dumptextline',
2011-07-20 20:58:03 +02:00
'printboth',
2011-07-18 22:27:06 +02:00
'printchar',
2011-07-18 14:30:07 +02:00
'printdirect',
2011-07-19 12:37:32 +02:00
'printslow',
'usetimedtext',
'putundertimed',
'getundertimed',
'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',
'aboutturn',
2011-07-30 21:56:33 +02:00
'readheader',
2011-07-30 22:56:29 +02:00
'fillspace',
2011-07-30 19:54:53 +02:00
'getroomdata',
2011-07-30 21:46:59 +02:00
'startloading',
'showreelframe',
2011-07-30 15:19:22 +02:00
'findsource',
2011-06-28 14:54:26 +02:00
'walking',
2011-08-08 22:26:31 +02:00
'autosetwalk',
'spriteupdate',
2011-06-28 04:55:10 +02:00
'dodoor',
2011-07-25 10:50:00 +02:00
'lockeddoorway',
2011-06-28 05:10:35 +02:00
'liftsprite',
'frameoutv',
'modifychar',
2011-08-03 12:21:46 +02:00
'allocatework',
'lockmon',
'cancelch0',
'cancelch1',
'getroomspaths',
2011-07-27 17:53:50 +02:00
'makebackob',
'dealwithspecial',
2011-07-30 23:37:18 +02:00
'plotreel',
'facerightway',
2011-08-03 12:24:06 +02:00
'zoom',
2011-08-03 13:54:03 +02:00
'crosshair',
2011-08-03 14:16:09 +02:00
'showrain',
'domix',
'channel0tran',
'makenextblock',
'loopchannel0',
'parseblaster',
2011-08-03 16:19:27 +02:00
'deltextline',
2011-08-03 18:48:43 +02:00
'doblocks',
2011-06-26 12:06:16 +02:00
], skip_output = [
# These functions are processed but not output
'dreamweb',
'backobject',
'mainman',
])
2011-06-05 15:05:12 +04:00
generator.generate('dreamweb') #start routine