water111
e5f0fecf17
[Decompiler] bitfield support and clean up of DMA ( #350 )
...
* get to vif
* support basic bitfield access
* make bitfields in dma work
* clean up dma
* fix merge conflict
2021-04-11 16:07:01 -04:00
ManDude
64ae2d6d39
[decomp] sync-info 1 ( #351 )
...
* move commonly used scripts to specific folders
* fixes
* Update test.sh
* Update test.sh
* Fix file permission
* move commonly used scripts to specific folders
* fixes
* Update test.sh
* Update test.sh
* Fix file permission
* [dynamics-h] clean-up
* make things neat
* update surface-h
* [sync-info] decomp 1
* move commonly used scripts to specific folders
* fixes
* Update test.sh
* Update test.sh
* Fix file permission
* move commonly used scripts to specific folders
* fixes
* Update test.sh
* Update test.sh
* Fix file permission
* [sync-info] update decomp
* Update gravity-h.gc
* [windows] separate scripts for runtime w/ or w/o display
* Update dynamics-h.gc
* Add offline test for sync-info
* clang
2021-04-10 21:17:36 -04:00
water111
9969445cf7
[Decomp] Math library: transform and quaternion ( #344 )
...
* decompile transform
* types for quaternion
* part of quaternion
* finish quaternion
* fix offline test reference
* wip fix to let issue
* fix
2021-04-02 11:35:14 -04:00
ManDude
7867de8fd7
update some physics code ( #347 )
...
* move commonly used scripts to specific folders
* fixes
* Update test.sh
* Update test.sh
* Fix file permission
* move commonly used scripts to specific folders
* fixes
* Update test.sh
* Update test.sh
* Fix file permission
* scripts to annoy me less
* [dynamics-h] clean-up
* make things neat
* more cleanup
* update surface-h
* fix error
* fix typo
* Spoonfeed the compiler
* [surface-h] rename sqrt to sqrtf
2021-03-29 18:30:58 -04:00
water111
0a76e6e157
[Decompiler] Make matrix decompile ( #341 )
...
* small fixes
* update
* add instructions
* finish matrix
* add matrix test cases
2021-03-28 20:26:30 -04:00
water111
64c35ca453
[Decompiler] Stack Variables ( #338 )
...
* clean up type analysis
* get everything set up
* basic stack variables working
* partial load fix
* most of matrix
* add offline tests
2021-03-27 15:18:59 -04:00
water111
7fac11ddf5
Support 128-bit variables ( #336 )
...
* wip 128 bit support
* add a few more files to offline test
2021-03-25 16:02:48 -04:00
water111
99683c0dac
[decompiler] Add tests and fixes for vector-h and math ( #333 )
...
* before messing with ssa stuff
* fix ash
* bounding box
2021-03-24 19:16:31 -04:00
water111
9ffc6014e1
fix printing and add gstate ( #330 )
2021-03-22 20:04:00 -04:00
water111
123f3b509d
[Decompiler] Fix let
bug ( #328 )
...
* fix let definition bug
* remove debug prints and add test
2021-03-22 16:46:02 -04:00
ManDude
8e1c147ad8
move commonly used scripts to specific folders ( #325 )
...
* move commonly used scripts to specific folders
* fixes
* Update test.sh
* Update test.sh
* Fix file permission
2021-03-18 16:43:37 -04:00
water111
4262145c99
fix set! missing typecast ( #324 )
2021-03-17 19:26:35 -04:00
water111
d60d9b639a
support anonymous functions ( #323 )
2021-03-14 19:06:51 -04:00
water111
e93d97dd07
[decompiler] gkernel offline test ( #321 )
...
* working on pointer math
* bug fixes
* gkernel passing with no anon functions
* update tests
2021-03-14 16:11:42 -04:00
water111
814480f9e5
[Decompiler] Replace type hint system and improve variable types. ( #320 )
...
* get gkernel and gkernel-h at least somewhat working in the offline tests
* strip comments from json
* switch hints to casts. online tests passing, offline passing up to gkernel
* variable retyping is added
* fix up casts in lets
* update
2021-03-13 16:10:39 -05:00
water111
9074a35b9b
[Decompiler] Fix printing of lets ( #314 )
...
* fix let prints and windows warnings
* missing include for windows
* windows again
2021-03-07 12:01:59 -05:00
water111
d8a82eeca1
[Decompiler] Fix up pretty printing and other small changes ( #311 )
...
* fix up pretty printing
* wip
* fix pointer cast signed vs unsigned issue
2021-03-06 20:16:48 -05:00
water111
0bf189f582
make decompiler at least unpack jak 2 and jak 3 files again ( #313 )
2021-03-06 19:06:45 -05:00
water111
26da66b29c
move dgo decompression to common utils and support it in the dgo unpacker ( #312 )
2021-03-06 16:06:08 -05:00
Tyler Wilding
f123bf368a
decomp - vector.gc - Decompile vector.gc ( #289 )
...
* temp: commit what i have so far
decomp: Fix nonempty_intersection impl for MSVC Debugging use-case
docs: Add info on getting ASan builds running on Visual Studio w/o exceptions
* decomp: initial rlet implementation
* decomp: cleanup pass of vector-rewrite stage
* decomp: Commit in-progress vector.gc, shortcomings are TODO commented
* decomp: More cleanup, rename from being `vector` instr specific
Fundamentally, this process can be used for re-writing ANY inline-asm instruction
* decomp: Support 4th arg ACC instructions
* decomp: Final pass of vector.gc before implementing last instructions
* decomp: Better warnings when hitting unimplemented instructs
* compiler: Implement inverse-sqrt and mov.vf
* decomp: Final manual pass over vector.gc, documented gaps
* decomp: Finish decompiling what currently is possible in vector.gc
* decomp: Fix Variable -> RegisterAccess conflict
* decomp: codacy lint
* Address review feedback
* Address feedback part 2
* Resolve build failures
2021-03-06 10:46:26 -05:00
water111
b352dcefa9
recognize dotimes ( #310 )
2021-03-05 21:46:39 -05:00
water111
65ffe83468
[Decompiler] Decompile let
( #309 )
...
* test
* fix bug
* fix tests for let
* missing formatting fix
2021-03-05 18:48:01 -05:00
ManDude
e77478e2e6
[decompiler] Print floats as neatly as possible ( #307 )
...
* [decompiler] Print floats as neatly as possible
* style fixes
* more
* Update test.bat
* Add and fix tests
* Jesus christ fine
2021-03-04 00:47:46 -05:00
water111
d9aa535dd0
[Decompiler] Fix issues in gcommon ( #305 )
...
* fix several issues
* small fixes
2021-03-03 20:52:25 -05:00
water111
413c1f5c74
[Decompiler] Add offline tests ( #303 )
...
* add offline test for gcommon as an example.
* fix test
* unused var
2021-03-03 15:42:55 -05:00
water111
8f68d35cbb
[Decomp] Some more collision header files and speed up tests ( #296 )
...
* some more
* faster tests
* on by default
2021-03-01 11:15:24 -05:00
water111
b0686b1ea7
fix decompiler crash ( #294 )
2021-02-28 19:22:53 -05:00
water111
9d3b056b7a
Fix asize bug, decompile a few files ( #293 )
...
* fix bug in asize of basic
* more decomp
2021-02-28 18:05:07 -05:00
water111
c15c163333
[Decomp] Add SSA based check for expression building ( #292 )
...
* wip
* tests pass
* fix warnings
2021-02-28 12:38:29 -05:00
water111
57eca1dee9
[Decomp] Decompile more files. ( #290 )
...
* decompile ocean trans tables
* more
* exclude tables from decomp progress
* format'
2021-02-27 14:40:18 -05:00
Tyler Wilding
049489c85b
Fix a small regression impacting MSVC debug builds ( #285 )
...
* decomp: Fix nonempty_intersection impl for MSVC Debugging use-case
* docs: Add info on getting ASan builds running on Visual Studio w/o exceptions
2021-02-27 13:38:04 -05:00
water111
b7f040986e
[Decomp] Decompile connect.gc ( #288 )
...
* decompile connect
* decompile lots of types
2021-02-26 22:22:54 -05:00
water111
d6d5203695
[Decomp] Minor fixes plus some math camera decomp ( #287 )
...
* make some progress on math camera
* minor fixes plus start of decomp of math camera
2021-02-26 15:27:13 -05:00
ManDude
d952475c77
[glist/glist-h] Decompile this stupidity ( #286 )
...
* [glist/glist-h] Decompile this stupidity
* [glist] fix macros
* [glist] fix return types
2021-02-26 08:59:28 -05:00
water111
791c4abfc0
[Decompiler] Static Data Decomp ( #280 )
...
* update all-types
* begin work on static data decompiler
* working for vif disasm array
* mostly working
* finish static data decompilation
2021-02-25 09:51:28 -05:00
ManDude
9d84ba8ca4
Decomp assert and debug-h ( #282 )
...
* [assert-h] decomp
* [assert] decomp
* Update assert.gc
* [debug-h] decomp
* oops
2021-02-24 22:58:20 -05:00
water111
f6a6b4c107
[Decompiler] Fix coloring moves ( #281 )
...
* fixed
* final fix
2021-02-24 19:08:55 -05:00
water111
5ec9a91eb9
Decompiler fixes + decompiling ( #276 )
...
* decomp pad
* more decompilation
* update
* fix test name
2021-02-22 09:36:30 -05:00
ManDude
b92a2823bb
Make a fake-asm
macro for (mips) assembly we want to show but not use + some other fixes ( #277 )
...
* use new fake-asm macro
* [timer] update some docs and code for clarity
* Fix typos
* uncomment "sync" instructions
* some decimal to hex
* move fake-asm's to gcommon
* [timer] document timer-mode more.
* Fix errors
* i dont like this
2021-02-22 01:02:12 -05:00
water111
4b1b7e9507
[Decompile] DMA and similar ( #275 )
...
* add some dma
* clean up
* add progress script and make codacy happy
2021-02-21 11:02:28 -05:00
ManDude
ea1a4ef1bb
specify a label_types_file variable in jak1 config ( #274 )
...
* ObjectFileDB: Fix crash if obj list text has no objects
* rename "decomp.bat" to "decomp-jak1.bat"
* config: enable expression analysis
* decompile timer-h
* Tab to space.
* add a note to deftype profile-name for the future
* timer-mode: use register name instead of full name
looking at the other types, it looks like NDI seemed to have preferred it this way
* [timer-h] set -> timer-bank mode type to timer-mode
* [timer-h] use register-friendly return value for method
* [timer-h] comment out unsupported feature
* [main-h] remove redundant quote
* Update .gitignore
* Update main-h.gc
* specify a label_types_file variable in jak1 config
2021-02-20 23:05:52 -05:00
water111
8775840265
[Decomp] Decompile engine math library types ( #272 )
...
* decompile some stuff
* fix typo
* playing around with trigonometry
* more progress on trig
* more trig
* comments and small fixes
* finish trig
2021-02-20 11:42:46 -05:00
water111
db48d94270
[Decompiler] Clean Up ( #271 )
...
* clean up
* fix up until generic ops
* finish kernel
* documentation
* types
* add missing file
2021-02-18 11:35:45 -05:00
water111
f1a93886e7
[Decomp] Decompile gstring ( #267 )
...
* decompile gstring
* update
* Update code_status.md
* Update code_status.md
* decompile gstate
* add test for states, hope it passes
* also test throw and catch xmms
* update doc
2021-02-16 20:37:48 -05:00
water111
aa9bcd07f4
[Decompiler] Flag uses of vf
registers for values outside of functions ( #263 )
...
* clean up warning system
* add bad dependency warning
* add q and acc
2021-02-15 11:55:10 -05:00
water111
af1691a0bc
[Decompiler] More progress on method stuff ( #264 )
...
* more progress on method
* fix method issues
2021-02-15 11:36:59 -05:00
water111
14d602c594
[Decompiler] More fixes for gkernel ( #261 )
...
* fix bugs and more address of support
* support for zero checks
* fix tests
2021-02-14 18:50:45 -05:00
water111
d01ecf0a9e
[Decompiler] Support virtual method calls ( #260 )
...
* support virtual methods kinda
* more
2021-02-13 16:35:27 -05:00
water
b0780ce2c8
fix some instruction decodings
2021-02-13 12:05:50 -05:00
water111
126dfc1c45
[Decompiler] Misc fixes for gkernel/math ( #257 )
...
* more cases
* some work on math and floating point stuff
* some decompiling for fun
2021-02-13 11:32:52 -05:00