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
94f63dc22b
DECOMPILER: Code cleanup
...
Removes _instFactory and uses class names directly
Reclassify a few opcodes in Kyra, remove now unnecessary checks
svn-id: r55001
2010-12-22 12:15:33 +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
b3a79b748c
DECOMPILER: Use pointers to Instructions
...
svn-id: r54873
2010-12-12 00:15:52 +00:00
Michael Madsen
ed2572b845
DECOMPILER: Add typedef for vector of instructions
...
svn-id: r54848
2010-12-09 22:02:02 +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
f4507169cd
DECOMPILER: Get rid of some now superfluous ::
...
svn-id: r52033
2010-08-12 11:24:28 +00:00
Michael Madsen
e64480948c
DECOMPILER: Merge kBinaryOp and kComparison
...
svn-id: r52017
2010-08-12 00:01:37 +00:00
Michael Madsen
175675a2e1
DECOMPILER: Better error handling in disassemblers
...
svn-id: r52016
2010-08-11 23:57:51 +00:00
Michael Madsen
fa70920bbf
DECOMPILER: Allow disassembler to throw any
...
std::exception
svn-id: r52015
2010-08-11 23:33:22 +00:00
Michael Madsen
47979eb0e2
DECOMPILER: Rename types, Kyra directory
...
svn-id: r52001
2010-08-11 20:47:41 +00:00
Michael Madsen
61209d5f62
Pass in instruction vector to disassemblers
...
Properly fix function detection
svn-id: r51774
2010-08-06 00:11:27 +00:00
Michael Madsen
8983013a35
Fix wrong information for a SCUMMv6 opcode
...
This was a regression, introduced in r51318.
svn-id: r51623
2010-08-02 14:52:35 +00:00
Michael Madsen
65019fd138
Add FIXME/TODO comment to beginOverride
...
svn-id: r51554
2010-07-31 21:47:56 +00:00
Michael Madsen
c77cb351f2
Make SCUMM's beginOverride skip the following jump
...
svn-id: r51553
2010-07-31 21:42:17 +00:00
Max Horn
87055d715a
Add START_SUBOPCODE_WITH_PREFIX
...
svn-id: r51318
2010-07-26 15:03:31 +00:00
Michael Madsen
8a922fb96e
Fix incorrect stack effect for 2 SCUMMv6 opcodes
...
svn-id: r51207
2010-07-23 13:47:00 +00:00
Michael Madsen
171189ff3c
Add instruction metadata from descumm
...
svn-id: r51121
2010-07-21 23:02:16 +00:00
Michael Madsen
50760720f2
Rename OPCODE_OP macro to OPCODE_MD
...
svn-id: r51117
2010-07-21 22:05:16 +00:00
Michael Madsen
bc09cfbd72
Fix operators for logical/bitwise and/or
...
svn-id: r51079
2010-07-21 00:48:07 +00:00
Michael Madsen
9d888cebc1
Rework InstType
...
Add storage of corresponding operator to Instruction
Refactor OPCODE macro from SimpleDisassembler
svn-id: r51021
2010-07-19 09:29:57 +00:00
Michael Madsen
a90f88c000
Reinserted missing read after debug output was commented out
...
Fixes regression from r50652.
svn-id: r50773
2010-07-09 21:49:07 +00:00
Michael Madsen
d28f81ebff
Comment out metadata output in SCUMM disassembler
...
svn-id: r50652
2010-07-04 20:22:10 +00:00
Michael Madsen
d2a4a06f4a
Fix output of offset table for object scripts
...
svn-id: r50572
2010-07-01 21:58:53 +00:00
Michael Madsen
d9885b40cb
Output SCUMMv6 script metadata to std::clog instead of std::cout
...
svn-id: r50244
2010-06-24 22:29:58 +00:00
Johannes Schickel
0de35029d0
Rest of the style fixes :-P.
...
svn-id: r50005
2010-06-18 02:36:45 +00:00
Johannes Schickel
a01a454fe7
Style fixes.
...
svn-id: r50001
2010-06-18 02:29:19 +00:00
Michael Madsen
96af18668c
Fix stack effect of a few opcodes
...
svn-id: r49675
2010-06-14 23:30:56 +00:00
Michael Madsen
9651a9fb89
Fix off-by-one error in Scumm::v6::Disassembler::fixStackEffect
...
Add stack effect of instruction to graph output
Crashes on at least one script (samnmax/script-30.dmp) - working on it
svn-id: r49670
2010-06-14 20:46:19 +00:00
Michael Madsen
4ec35b9395
Fix signedness of SCUMMv6 opcode parameters
...
svn-id: r49633
2010-06-13 14:19:10 +00:00
Michael Madsen
7084f81eed
Fix incorrect address after reading a SCUMM string
...
svn-id: r49632
2010-06-13 14:02:44 +00:00
Michael Madsen
bf98207718
Formatting fixes, missing Doxygen comments and exception specifications
...
svn-id: r49612
2010-06-12 21:45:46 +00:00
Michael Madsen
4eb29f5061
Find stack effect for variable length opcodes in SCUMMv6
...
Fix parameter list for pickVarRandom
Fix a regression introduced in r49522 for scripts with no instructions:
program would try to read past end of file due to the check used to
prevent repeated disassembly
svn-id: r49608
2010-06-12 19:56:44 +00:00
Michael Madsen
9ef7e949b1
Fix signedness of SCUMMv6 opcode parameters
...
svn-id: r49587
2010-06-11 00:25:21 +00:00
Michael Madsen
e7b6429079
Refactored disassemblers
...
Disassembler::disassemble and Disassembler::dumpDisassembly are no
longer virtual, but perform the minimal functionality and ensure that
disassembly is performed once and only once. This helps to prevent
incorrect usage and implementation.
svn-id: r49522
2010-06-08 21:41:33 +00:00
Michael Madsen
d00de2840e
Add namespaces to engine-specific classes and refactor to use an Engine
...
class for all engine-specific object creation
svn-id: r49511
2010-06-08 18:17:00 +00:00
Michael Madsen
653a653fba
Add distinction between relative jumps and absolute jumps
...
svn-id: r49466
2010-06-06 23:09:41 +00:00
Michael Madsen
b349c436b1
Flag instructions with variable stack arguments
...
svn-id: r49460
2010-06-06 15:23:36 +00:00
Michael Madsen
3f8c1d0646
Added remaining opcodes to SCUMM disassembler
...
svn-id: r49431
2010-06-04 19:20:19 +00:00
Michael Madsen
649f5936c7
Add more opcodes to SCUMM disassembler
...
svn-id: r49410
2010-06-03 14:45:13 +00:00
Michael Madsen
423ef5994b
Add code for reading string parameters to SCUMMv6 disassembler
...
svn-id: r49385
2010-06-01 22:33:04 +00:00
Michael Madsen
52227426ac
Refactored Parameter struct to use boost::variant
...
svn-id: r49381
2010-06-01 21:20:35 +00:00
Michael Madsen
d6f0cc9b1e
Fix formatting of license header
...
svn-id: r49304
2010-05-28 22:28:06 +00:00
Michael Madsen
f81af0fe79
Formatting fixes
...
svn-id: r49299
2010-05-28 20:43:26 +00:00
Michael Madsen
182d805d6a
Formatting fixes
...
svn-id: r49298
2010-05-28 20:28:07 +00:00