Commit graph

327 commits

Author SHA1 Message Date
water111 11a82bbf08
[Compiler] Add static data features (#162)
* support static pairs

* also support strings

* reorganize static stuff

* add test

* support inlined fields

* add missing type check
2020-12-19 15:21:29 -05:00
water111 cae3871730
[Decompiler] Experimental Expression Stack (#157)
* begin framework for expressions

* more

* clean up warnings

* small fixes

* update

* wip type prop improvements

* see if nasm works

* fix format strings
2020-12-17 15:48:07 -05:00
water111 ba919a069c
Add another kernel test, fix small bugs (#156)
* temp

* run function in process test

* windows debug

* debug

* update

* update

* again

* update

* fix same bug in debugger
2020-12-10 20:26:40 -05:00
water111 e05f3ceefc
Implement gkernel: Part 2 (#155)
* update

* small fixes

* deactivate

* simple kernel test
2020-12-08 21:41:36 -05:00
water111 d86964985a
Improve Register Allocator (#154)
* before adding IRegSet stuff

* use bitsets for live analysis

* speed up

* add stack structures

* organize new better
2020-12-06 15:42:26 -05:00
water111 06918e1fea
Implement gkernel: Part 1 (#150)
* start gkernel implementation

* progress

* more of kernel

* swap to new dispatcher, will it work on windows

* update
2020-12-05 17:09:46 -05:00
water111 90e5c023f1
Basic Inline Assembly (#149)
* basic inline assembly support

* fix rlet

* clean up detail in IR and update documentation
2020-12-04 12:57:10 -05:00
water111 ea479bee98
Add enums and some cleanup (#148)
* support enums

* better compiler warnings

* tweaks to build with clang
2020-12-02 19:51:42 -05:00
water111 71dda76e2b
Add some compiler features and documentation (#147)
* update doc

* add disassemble and type checking

* improve compiler error messages
2020-12-01 21:39:46 -05:00
water111 21fbdce7aa
[Compiler] Bitfield Types (#146)
* add the ability to define and read bitfield types

* new set

* add bitfield setting

* add static bitfields
2020-11-29 18:01:30 -05:00
water111 4138e5d852
Merge pull request #144 from water111/w/kernel-type-prop
Make some manual progress on game source
2020-11-29 10:53:52 -05:00
water e93b54347f add float min max to the compiler 2020-11-29 10:46:14 -05:00
water 435b0da144 Merge branch 'master' of https://github.com/water111/jak-project into w/kernel-type-prop 2020-11-29 10:10:33 -05:00
water111 e55a02e4d9
Merge pull request #145 from whiteh0le/fix-rgba16_to_rgba32
Fix and rename rgba16_to_rgba32
2020-11-29 10:10:06 -05:00
Whitehole 8bbe21c648 Fix and rename rgba16_to_rgba32 2020-11-29 03:14:12 +01:00
water 5f91651c92 fix types 2020-11-28 21:02:50 -05:00
water dc32b59217 update 2020-11-28 20:53:13 -05:00
water 5b4b5c238e update 2020-11-28 19:59:23 -05:00
water111 9b32835faa
Type Prop - Second Attempt (#142)
* setup and run on identity

* temp

* temp2

* temp

* update

* mroe

* successful in gcommon
2020-11-28 15:35:38 -05:00
water111 66956b6c3c
Merge pull request #141 from water111/w/type-utils-decompiler
Support for type prop v2
2020-11-27 16:53:39 -05:00
water fb13f223fd remove old bad type analysis code 2020-11-27 16:46:25 -05:00
water 921ae50669 add more utils 2020-11-27 16:38:36 -05:00
water 4fb8381105 add reginfo to basic ops 2020-11-27 14:46:55 -05:00
water a9cfa19f92 add IR atomic interface and switch all basic ops to these 2020-11-26 22:16:59 -05:00
water d6ad0c0bb5 fix memory bug 2020-11-26 17:28:33 -05:00
water111 09142d1712
Support "game count" and v4 objects (#140)
* generate object, but not supported in linker yet

* add link and tests

* update types
2020-11-24 20:48:38 -05:00
water111 d8b1feaa3d
Merge pull request #139 from whiteh0le/fix-spelling
Fix various spelling mistakes
2020-11-23 16:24:30 -05:00
Whitehole a7849cf55d Fix various spelling mistakes 2020-11-23 21:09:39 +01:00
water111 601469924d
Merge pull request #138 from water111/w/compiler-fixes
[Compiler] Fix return-from, returning none, and inline function block scoping bugs
2020-11-22 20:23:58 -05:00
water eb30fc88b0 fix compiler bugs 2020-11-22 20:10:33 -05:00
water111 19b8bb81c9
Add the STR RPC to overlord and game code (#134)
* work in progress streaming rpc, simple test is working

* actually add the test

* debug windows failure

* windows fix maybe

* windows 2

* use str-load-status

* update types
2020-11-22 12:59:55 -05:00
water111 460ec874bb
Add support for stack integers (#135)
* add support for stack integers

* update documentation

* revise value type stack variables
2020-11-22 12:22:19 -05:00
water111 66c9f40e13
Merge pull request #130 from water111/w/str-data-in-decompiler
Support loading streaming data in decompiler
2020-11-21 16:16:52 -05:00
water 4cafe04af3 support loading streaming data in decompiler 2020-11-21 15:58:51 -05:00
water111 660ef41136
Update documentation and clean up (#129)
* cleanup

* clean up file layout
2020-11-21 12:52:38 -05:00
water111 55c2330e02
Merge pull request #128 from Nexushunter/add_sym_link_dir
Add a default symlink for the Offline test
2020-11-21 11:43:34 -05:00
Hunter Breathat 2827ca8d52 Add a default for the symlink 2020-11-21 10:30:19 -05:00
water111 29e4ff9e51
remove match param (#127) 2020-11-20 20:17:37 -05:00
water111 953c1512db
Process Text Files in Decompiler (#122)
* begin support for v2

* export game text

* generate text files

* working text load

* fix windows

* add test and clean up game tests a bit

* load the right file

* add separate program to launch the data compiler

* add offline test script
2020-11-19 21:22:16 -05:00
water111 ae053870c3
support escaping any character (#125) 2020-11-17 15:25:48 -05:00
water111 0767321934
Extract Textures (#119)
* temp

* cleanup

* documentation, enable alpha

* add subfolder

* support all textures
2020-11-16 19:57:45 -05:00
water111 951f31878e
[Source Line Debugger] Tracking objects and IR (#115)
* track where segments are when debugging

* missing windows include

* figure out what function we're in

* addr to IR is working
2020-11-13 22:33:57 -05:00
water111 71a894c393
move GOAL stack to GOAL memory (#114)
* move GOAL code stack to GOAL memory

* fix win arg reg and check rsp in debugger

* fix windows maybe and fix some incorrect logging formatters
2020-11-06 21:42:05 -05:00
water111 c09541fa98
Add some debugger memory utilities (#109)
* add some memory utilities

* run waitpid in a separate thread and support very simple breakpoints

* fix breakpoints

* add missing windows stub function

* fix error message on exit
2020-11-06 13:59:39 -05:00
water111 f5ed2e6ad7
Merge pull request #111 from Nexushunter/fix_runtime_err
Added missing import causing runtime_error to not be found.
2020-11-05 18:10:43 -05:00
Hunter Breathat 1ff2031e75 Added missing import causing runtime_error to not be found. 2020-11-05 17:43:47 -05:00
water111 27c60a47fe
try to fix zydis build issue (#110) 2020-11-01 12:57:06 -05:00
water111 566dc6070f
add zydis library and a simple test (#108) 2020-10-31 14:31:13 -04:00
water111 0451a06d76
Set up the compiler to ptrace the runtime (#107)
* set up the compiler to ptrace the runtime

* clang format

* move debugger state to a separate Debugger class

* support registers and break and continue

* documentation and fix windows

* make listener part of compiler, not a separate library

* implement memory read and write

* fix for windows
2020-10-31 14:07:43 -04:00
water111 a45d180f2c
Try to speed up the build (#106)
* first attempt

* attempt 2

* windows and formatting fix
2020-10-29 21:27:52 -04:00