Paweł Kołodziejski
ebbfd826d5
ALL: Upgrade tools licence to GPLv3+
2022-06-26 19:14:49 +02:00
Thierry Crozat
d5c8077933
JANITORIAL: Move copyright notice to a separate file
2014-01-19 18:13:09 +00:00
Thierry Crozat
fe2d3c2d71
JANITORIAL: Remove now useless SVN tags
2014-01-06 22:54:34 +00:00
Michael Madsen
4e9914f57e
DECOMPILER: Objectify Instruction
...
*Major* restructuring in this revision.
All other disassemblers will require updates.
Documentation for all of this is coming soon.
svn-id: r54904
2010-12-14 03:14:11 +00:00
Michael Madsen
0de7303c80
DECOMPILER: Replace Parameter with Value
...
svn-id: r54899
2010-12-13 02:08:39 +00:00
Michael Madsen
d1378266fb
DECOMPILER: Create Value hierarchy
...
Change code generation to use Values instead of StackEntries
Next step: Use Value instead of Parameter
svn-id: r54891
2010-12-12 22:50:15 +00:00
Michael Madsen
b3a79b748c
DECOMPILER: Use pointers to Instructions
...
svn-id: r54873
2010-12-12 00:15:52 +00:00
Michael Madsen
7b4e649ad7
DECOMPILER: Mass enum member renaming
...
svn-id: r52094
2010-08-14 22:11:24 +00:00
Michael Madsen
0e571b3e5c
DECOMPILER: Refactor instruction processing
...
svn-id: r52093
2010-08-14 21:29:45 +00:00
Michael Madsen
62ab946718
DECOMPILER: Split kUnaryOp into pre- and postfix
...
svn-id: r52049
2010-08-12 23:31:59 +00:00
Max Horn
cfe883f0b6
DECOMPILER: Add 'pos' parameter to processSpecialMetadata
...
svn-id: r52036
2010-08-12 12:46:57 +00:00
Max Horn
f4507169cd
DECOMPILER: Get rid of some now superfluous ::
...
svn-id: r52033
2010-08-12 11:24:28 +00:00
Michael Madsen
47979eb0e2
DECOMPILER: Rename types, Kyra directory
...
svn-id: r52001
2010-08-11 20:47:41 +00:00
Michael Madsen
25f8b8584d
DECOMPILER: Remove old TODO
...
svn-id: r51803
2010-08-06 21:06:16 +00:00
Michael Madsen
e322509cd1
DECOMPILER: Formatting fix.
...
svn-id: r51801
2010-08-06 20:58:33 +00:00
Michael Madsen
c66bd1ccfa
Major overhaul of else detection
...
The else detection was horribly, horribly broken, leading to incorrect
and unbalanced output. This has now been revamped entirely, and all
SCUMMv6 scripts are at least balanced now. Additionally, various output
enhancements have been added.
Note: Short-circuit detection has been temporarily disabled, pending
proper handling. Consequently, one test, testShortCircuitDetection, is
currently *expected* to fail.
svn-id: r51621
2010-08-02 14:38:45 +00:00
Michael Madsen
99b3eda029
Fix sign of parameter output in SCUMM codegen
...
svn-id: r51618
2010-08-02 14:07:30 +00:00
Michael Madsen
518d29ca04
Codegen improvements
...
Improve extra output detection
Don't output pop() comments in SCUMMv6 codegen
svn-id: r51562
2010-08-01 01:59:22 +00:00
Michael Madsen
a8a0198f02
Add missing ; after SCUMMv6 inc/dec instructions
...
svn-id: r51210
2010-07-23 15:07:42 +00:00
Michael Madsen
6e519f7b98
Add argument ordering for lBinaryOp and kSpecial
...
svn-id: r51190
2010-07-23 02:42:09 +00:00
Michael Madsen
d336df7a7b
Add handling of kSpecial metadata for SCUMMv6
...
svn-id: r51189
2010-07-23 01:38:34 +00:00
Max Horn
16e6daf675
code formatting
...
svn-id: r51141
2010-07-22 12:42:35 +00:00
Michael Madsen
a4c057d514
Show where pop()s were hidden
...
svn-id: r51129
2010-07-22 01:25:17 +00:00
Michael Madsen
6764f4700b
Fix incorrectly printed stuff
...
svn-id: r51128
2010-07-22 00:22:14 +00:00
Michael Madsen
196bcdffa7
Codegen improvements
...
Add new entry types for strings and lists
Add final missing opcodes that require special handling
Add function to create SCUMM list from stack
svn-id: r51127
2010-07-22 00:14:51 +00:00
Michael Madsen
da65ba265f
Add UnaryOp handling in generic class
...
svn-id: r51126
2010-07-21 23:34:08 +00:00
Michael Madsen
45e15ec7c1
Handle pop in SCUMMv6, remove warnings
...
svn-id: r51120
2010-07-21 22:30:23 +00:00
Michael Madsen
8d011e9663
Rename _operator in Instruction to _codegenData
...
svn-id: r51116
2010-07-21 22:01:31 +00:00
Michael Madsen
9a487de1c0
Add array handling to current instruction types
...
svn-id: r51081
2010-07-21 01:18:39 +00:00
Michael Madsen
d2a87a6de1
Add UnaryOp handling (excluding arrays)
...
svn-id: r51078
2010-07-21 00:14:53 +00:00
Michael Madsen
58b6a0ff6b
Add BinaryOp, Comparison, CondJump handling
...
svn-id: r51077
2010-07-21 00:09:56 +00:00
Michael Madsen
727f113d76
Add custom stack implementation
...
This avoids the issue of std::stack::pop not returning the element it
pops - you have to call top to get that element, and then pop it
afterwards. This will then simplify the code and avoids the risk of
forgetting to do the pop separately.
svn-id: r51052
2010-07-20 07:44:23 +00:00
Michael Madsen
d36c81b4a0
Fix missing variable initialization
...
Fix missing break
svn-id: r51042
2010-07-19 23:13:48 +00:00
Michael Madsen
d10a6853a9
Prototype of actual SCUMMv6 code generation
...
Currently crashes, committing to do valgrind testing on Linux
svn-id: r51040
2010-07-19 22:50:06 +00:00
Michael Madsen
bbae30aef3
Add some metadata to StackEntry to easily tell the various types apart
...
Add functionality to create a duplicate entry from any entry
Add CodeGenerator creation to Engine
Prepare a SCUMMv6 code generator class
svn-id: r50855
2010-07-13 22:52:10 +00:00