[decomp] jak2: debug, debug-sphere (#1846)

I wasn't able to 100% complete `debug` due to a bunch of level boundary
debug stuff I couldn't figure out. But, I added a ref test and
documented/copied over everything else into goal_src.

Most of the functions that existed in Jak 1 are identical, others got an
extra param or 2 and some now make copies of arguments instead of
modifying them. There's a bunch of new functions, including all of the
debug functions that used to be in `level-boundary` are now in `debug`.
At the very end of `debug` there's also some weird asm functions
checking for some EE memory controller bug (not sure what's up with
that)?
This commit is contained in:
Ethan Lafrenais
2022-09-07 18:14:34 -04:00
committed by GitHub
parent 44d59e6b33
commit 22982d2750
20 changed files with 4702 additions and 106 deletions
+6 -6
View File
@@ -530,9 +530,9 @@
(goto cfg-4)
)
(format #t "[~8x] ~A~%" obj 'vector4w-2)
(format #t "~1Tdata[8] @ #x~X~%" (-> obj data))
(format #t "~1Tquad[2] @ #x~X~%" (-> obj data))
(format #t "~1Tvector[2] @ #x~X~%" (-> obj data))
(format #t "~1Tdata[8] @ #x~X~%" (-> obj vector))
(format #t "~1Tquad[2] @ #x~X~%" (-> obj vector))
(format #t "~1Tvector[2] @ #x~X~%" (-> obj vector))
(label cfg-4)
obj
)
@@ -555,9 +555,9 @@
(goto cfg-4)
)
(format #t "[~8x] ~A~%" obj 'vector4w-3)
(format #t "~1Tdata[12] @ #x~X~%" (-> obj data))
(format #t "~1Tquad[3] @ #x~X~%" (-> obj data))
(format #t "~1Tvector[3] @ #x~X~%" (-> obj data))
(format #t "~1Tdata[12] @ #x~X~%" (-> obj vector))
(format #t "~1Tquad[3] @ #x~X~%" (-> obj vector))
(format #t "~1Tvector[3] @ #x~X~%" (-> obj vector))
(label cfg-4)
obj
)