Commit Graph

15 Commits

Author SHA1 Message Date
0e5ea3967f Revamped game::exe::{Data, DataTable}.
Renamed `MergeSortedIter` to `DiscardingSortedMergeIter`.
2020-10-30 07:09:31 +00:00
998ef01b54 Moved game:.exe::Data from an enum to a struct with the kind of data.
Renamed `int` usage to `u32` throughout.
Added `Dh` and `Db` directives.
Unfortunately, function end printing just broke. This feature was minor and will be currently removed as other parts are revamped.
2020-10-30 06:28:58 +00:00
35d0909152 Changed function signature from C style to Rust style.
`AllData::get()` can not retrieve data before it.
2020-10-29 11:44:44 +00:00
00a85397a7 Data no longer stores it's end position.
Removed `Directive::DwRepeat`.
Fixed `WithInstructionsIter` stoping on `jr $ra` instead of at the end of the function.
2020-10-29 00:38:31 +00:00
7d380510da Added dcb::game::exe::{Data, AllData} contrapart to Func/Funcs. 2020-10-28 22:27:02 +00:00
c7ab0e5e94 Directive now only decodes dw after the code end.
Load/Store instructions now display what function/string/data they're loading inline.
2020-10-28 19:55:36 +00:00
d73a9ff415 Added local labels to functions.
Jump instructions are now labeled with their label / function.
2020-10-28 19:18:22 +00:00
da782b5a52 Readded the missing local indexes, strings and data from last commit. 2020-10-28 17:31:40 +00:00
17b3aa0e4f Added dcb::util::merge_iter.
Improved `dcb::game::exe::Func` yet again.
2020-10-28 17:27:25 +00:00
eb51f448ce SimpleInstruction is now defined using bitmatch instead of a macro. 2020-10-26 01:14:16 +00:00
2d931f10cb Moved Pos to game::exe::pos.
Adding missing instructions `break` + `syscall`.
Added `Func` for the game executable.
`Pos` now implements `serde::{Serialize, Deserialize}`.
2020-10-25 22:46:04 +00:00
233eec4fa1 Added heuristics-based decompiler to dcb-tools. 2020-10-25 19:12:54 +00:00
128945e52f Removed unnecessary rustfmt.toml from dcb-tools. 2020-10-21 01:31:34 +01:00
de5c550e7a Fully integrated dcb-tools into the repo. 2020-10-21 01:17:41 +01:00
5a8f2cc1f5 Moved project into sub-folder 'dcb-tools' in preparation for merge with main repo 2020-10-21 00:54:06 +01:00