Commit Graph

11 Commits

Author SHA1 Message Date
a248cc4807 lp: added NEWTABLE && SETLIST
- tables can now be (mostly) decompiled
- changed 'decompiled source' to 'pseudo-code' since the output doesn't typically match the compiled script source.
- misc. refactoring
2022-08-15 23:30:32 -05:00
9da0d0ffbd lp: support FORPREP && FORLOOP 2022-08-14 01:36:05 -05:00
5d91dbbc64 lundump.py: better instruction annotations 2022-08-12 17:31:15 -05:00
0d947f4f3d Added 'repeat .. until' support
- lines are now tracked by start & end PC
- new config option: annotatedLines. if true line annotations show start & end PC will be emitted
- lundump.py now shows locals for each proto
2022-08-12 17:08:31 -05:00
95ca3bb26b lparser.py: added support for while loops 2022-08-11 17:26:48 -05:00
875e91636b lundump.py: SETGLOBAL uses K[] 2022-08-11 16:49:48 -05:00
eb1d3ffe87 lundump.py: minor refactoring, added instruction annotations 2022-08-11 16:43:34 -05:00
2258888956 lundump.py: Instruction.__readRK() should be a static method 2022-08-11 16:19:21 -05:00
61ce2d416b lundump.py: only list protos if we have any 2022-08-11 15:52:50 -05:00
4d8c78f023 lundump.py: improved instruction operand labeling
- RKs are fully supported
- KBx are also supported
2022-08-11 15:49:57 -05:00
0dbdfc49c6 Inital commit
- Extremely basic decompiler implemented in lparser.py
- lundump.py ported from [this repository](https://github.com/CPunch/LuaPytecode)
2022-08-11 15:38:31 -05:00