[decomp] jak2: shrubbery (#1898)

Some notes:
- `draw-prototype-inline-array-shrub` can probably be decompiled but I'm
not comfortable doing this function myself. It's got a ton of inline
assembly (or at least I think it's inline assembly) and is very long. I
left this marked as asm for now but I am confident in the function
definition.
- The VU program is identical to Jak 1 (yay)
- There's some new `dma-test` stuff at the end of the file, not really
sure what it's doing but it runs in the top-level.
This commit is contained in:
Ethan Lafrenais
2022-09-18 12:19:16 -04:00
committed by GitHub
parent 1b45aab3cc
commit dc5dc9c76c
15 changed files with 3598 additions and 103 deletions
+7
View File
@@ -44,6 +44,13 @@ TEST(VuDisasm, Emerc) {
EXPECT_EQ(disasm.to_string(prog), get_expected("jak2/emerc-vu1"));
}
TEST(VuDisasm, Shrub_Jak2) {
auto data = get_test_data("jak2/shrub");
VuDisassembler disasm(VuDisassembler::VuKind::VU1);
auto prog = disasm.disassemble(data.data(), data.size() * 4, false);
EXPECT_EQ(disasm.to_string(prog), get_expected("jak2/shrub"));
}
TEST(VuDisasm, Sprite_Jak2) {
auto data = get_test_data("jak2/sprite");
VuDisassembler disasm(VuDisassembler::VuKind::VU1);