Commit Graph

62 Commits

Author SHA1 Message Date
Orgad Shaneh
a05e54f00c JANITORIAL: Remove trailing whitespaces 2021-05-04 11:46:30 +03:00
Eugene Sandulenko
fab199d37e JANITORIAL: Make GPL headers uniform 2016-09-03 12:46:38 +02:00
Filippos Karapetis
d0a302fb06 DREAMWEB: Add the ability to blacklist unused constants in tasm-recover 2011-12-27 19:53:41 +02:00
Filippos Karapetis
3ff26ba84f DREAMWEB: Move all of the functions to DreamBase and remove stubs.h 2011-12-27 03:00:00 +02:00
Max Horn
460e53172b DREAMWEB: Refactor segment management
All segment code is now in a new header file segment.h. A new class
takes care of managing the segments: SegmentManager. The DreamBase class
subclasses this -- thus, segments can now be accessed from within it.
2011-12-08 00:24:22 +01:00
Max Horn
641e1bff59 DREAMWEB: Make DreamBase::engine protected 2011-12-07 11:07:42 +01:00
Max Horn
7b71bb6444 DREAMWEB: Pass data segment as SegmentRef to Context constructor
And not as SegmentPtr.
2011-12-07 11:07:42 +01:00
Max Horn
dc34fc1dfb DREAMWEB: Move generated constants out of class DreamGenContext 2011-12-07 10:32:22 +01:00
Max Horn
2521646676 DREAMWEB: Add DreamBase as second base class for DreamGenContext
The idea is to slowly transfer converted methods into this new base class.
This transition then proves that the method does not access or modify
any of the emulation context.

for eaiser step-by-step  migration away from Context
2011-12-07 10:30:44 +01:00
Max Horn
9a7b8340c5 DREAMWEB: Fix generated namespace comments 2011-12-06 21:51:16 +01:00
Willem Jan Palenstijn
585bd7b0ef DREAMWEB: Untangle namespaces 2011-12-05 19:26:46 +01:00
Willem Jan Palenstijn
334784c7ce DREAMWEB: Add option to tasmrecover to skip binary data 2011-12-03 18:48:44 +01:00
D G Turner
3bfb412694 DREAMWEB: Whitespace fixes in dreamgen.*
This improves readability slightly by removing extraneous whitespace
and correcting indents. Since this has been done in the tasm-recover
devtool, it will persist over dreamgen.* regeneration.
2011-12-02 11:48:51 +00:00
D G Turner
757c1fe8e2 DEVTOOLS: Add support to tasm-recover to skip output of addr_* header. 2011-12-02 00:23:19 +00:00
D G Turner
4e27576e3a DEVTOOLS: Add function name remapping ability to tasm-recover tool.
This allows a mapping list to be specified for the dreamgen.* output
function names, removing the limitation to keep the same names as the
original ASM.
2011-12-01 19:34:28 +00:00
D G Turner
1e5d9a07b5 DEVTOOLS: Add flag to tasm-recover to omit blacklisted function headers.
This flag when set omits the blacklisted function header from the
dreamgen.h output, rather than including it commented out with //.
2011-11-29 19:08:51 +00:00
D G Turner
0026c842ca DEVTOOLS: Add flag to tasm-recover tool to skip dispatch call function.
This flag when set omits the dispatch call function from the dreamgen.*
output.
2011-11-23 02:27:43 +00:00
Vladimir Menshakov
ab1c8c27e9 DREAMWEB: Added comments with string representation for the data segment 2011-08-24 23:34:46 +04:00
Willem Jan Palenstijn
aa9f970873 DREAMWEB: Reorder modifiers for consistency (cosmetic) 2011-08-18 00:27:44 +02:00
Willem Jan Palenstijn
0ac5544b64 DREAMWEB: Emit symbolic constants for data offsets 2011-08-18 00:18:08 +02:00
Christoph Mallon
23a0f5318c JANITORIAL: Remove trailing empty lines. 2011-08-07 13:53:33 +02:00
Willem Jan Palenstijn
bb7a1bd93d DREAMWEB: Add option to process asm functions but not output them 2011-07-28 21:25:10 +02:00
Eugene Sandulenko
540d0260e6 DREAMWEB: Add ScummVM headers, remove SVN keywords. 2011-07-19 11:26:40 +01:00
Bertrand Augereau
4d4d3329c3 DREAMWEB: The generator includes a file for custom structs and a file for custom function definitions
It also generates C++ symbols for asm proc addresses
2011-07-17 13:42:12 +02:00
Vladimir Menshakov
a5748a34af DREAMWEB: Fixed continuing to another procedure. (axe misuse crash) 2011-06-24 09:34:23 +04:00
Willem Jan Palenstijn
2551389304 DREAMWEB: Fix bug in tasmrecover causing load/save mixup
This is a regression from c1b9adb691 and (my commit) 287c23f126.

It is not safe to remove opcodes from proc.stmts since labels
are sometimes referenced by their offset in the list. So, instead
they are now replaced by op._nop.

This fixes kLoadingorsave not being set in doload(), which was
visible when going to the load game menu from the startup menu.
2011-06-22 00:00:56 +02:00
Vladimir Menshakov
27890ec3e2 DREAMWEB: clear cx after rep movs/stos commands 2011-06-17 21:15:06 +04:00
Vladimir Menshakov
6fe3e63ed1 DREAMWEB: replaced generated code with c++ style stubs 2011-06-17 00:31:36 +04:00
Willem Jan Palenstijn
ae67a9a958 DREAMWEB: Re-optimize unbounded code blocks
This gets rid of some unused labels. We need to be careful
not be optimize too much, as that could remove the very label
the unbounded block was added for.
2011-06-16 16:43:48 +02:00
Willem Jan Palenstijn
287c23f126 DREAMWEB: Try to clean up jumps to returns 2011-06-16 15:40:52 +02:00
Vladimir Menshakov
d8d16e0231 DREAMWEB: removed while loops from rep+stos/movs instructions 2011-06-16 16:44:58 +04:00
Vladimir Menshakov
4fd3cdf984 DREAMWEB: Improved code formatting 2011-06-16 16:31:17 +04:00
Vladimir Menshakov
e0efde7cf6 DREAMWEB: optimized consequtive movsb/w and stosb/w 2011-06-16 00:20:30 +04:00
Vladimir Menshakov
c1b9adb691 DREAMWEB: added unused label elimination. Does not work for some labels, but the most ones are gone. 2011-06-15 23:38:44 +04:00
Vladimir Menshakov
3b85dede39 DREAMWEB: added banner to autogenerated files 2011-06-15 23:00:05 +04:00
Vladimir Menshakov
4e75c4bfd2 DREAMWEB: marked global as used from get_global() 2011-06-15 22:58:45 +04:00
Vladimir Menshakov
7a47b09379 DREAMWEB: uncommented simple ret stripping 2011-06-15 22:25:16 +04:00
Vladimir Menshakov
eb80d05b64 DREAMWEB: fixed code formatting 2011-06-15 22:09:31 +04:00
Vladimir Menshakov
4b3f775efa DREAMWEB: removed asserts, added STACK_CHECK as suggested by Max 2011-06-15 22:02:18 +04:00
Vladimir Menshakov
f4936e6b42 DREAMWEB: implemented stc/clc, fixed preliminary exit from the dialogue 2011-06-15 17:35:00 +02:00
Vladimir Menshakov
49e7c7a735 DREAMWEB: fixed occasional stripping of the strings in data segment 2011-06-15 17:34:43 +02:00
Vladimir Menshakov
6fb25cdde4 DREAMWEB: added stack depth check to code generator 2011-06-15 17:34:38 +02:00
Vladimir Menshakov
bf80a8a3ac DREAMWEB: added inc/dec instructions. 2011-06-15 17:34:24 +02:00
Vladimir Menshakov
8ea7a7a3d1 DREAMWEB: fixed seg XXX construction in generator 2011-06-15 17:34:17 +02:00
Vladimir Menshakov
99a4bb86dd DREAMWEB: fixed invalid generated jump instructions 2011-06-15 17:34:16 +02:00
Vladimir Menshakov
3f592047bb DREAMWEB: fixed rep prefix 2011-06-15 17:34:05 +02:00
Vladimir Menshakov
97310ab904 DREAMWEB: asserted invalid calls 2011-06-15 17:33:54 +02:00
Vladimir Menshakov
4518719345 DREAMWEB: added 'equ' const to public header 2011-06-15 17:33:53 +02:00
Vladimir Menshakov
23736a0240 DREAMWEB: output equ values in log 2011-06-15 17:33:51 +02:00
Vladimir Menshakov
9717b220f1 DREAMWEB: added names instead of offsets for variables 2011-06-15 17:33:50 +02:00