Commit Graph
48 Commits
Author SHA1 Message Date
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
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
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
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 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 3b85dede39 DREAMWEB: added banner to autogenerated files 2011-06-15 23:00:05 +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 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
Vladimir Menshakov 2f9e63579d DREAMWEB: fixed missing explicit segment specification. added verbose data dump to the generator 2011-06-15 17:33:49 +02:00
Vladimir Menshakov d2688a520b DREAMWEB: removed static from functions for now (allowing external usage) 2011-06-15 17:33:48 +02:00
Vladimir ab41fb783d DREAMWEB: fixed equ expanding 2011-06-15 17:32:19 +02:00
Vladimir bba7724aec DREAMWEB: added fake data register pointing to variables 2011-06-15 17:32:02 +02:00
Vladimir b76035db66 DREAMWEB: put data offsets, not labels into public 2011-06-15 17:31:00 +02:00
Vladimir 59b0c4b4b5 DREAMWEB: added all offsets 2011-06-15 17:30:56 +02:00
Vladimir a0e56d9cad DREAMWEB: minor cleanup 2011-06-15 17:30:39 +02:00
Vladimir 1ee6b0af69 DREAMWEB: get rid of data, added simple segment management 2011-06-15 17:30:29 +02:00
Vladimir 0b0b22ccc2 DREAMWEB: removed data declaration 2011-06-15 17:30:14 +02:00
Vladimir 9cf2a7ba0e DREAMWEB: added tasm-recover tool 2011-06-15 17:29:44 +02:00