Commit graph

1886 commits

Author SHA1 Message Date
Paul Holden
3a46d11484 Allow Vector3 and Vector4 to be constructed with coord specified directly. 2023-09-17 20:42:12 +01:00
Paul Holden
9cae065068 Format. 2023-09-17 20:20:05 +01:00
Paul Holden
de691f39c6 Merge disassembly into main code for moveword to reduce some duplication. 2023-09-17 20:19:44 +01:00
Paul Holden
dd5b6e3dec Implement gSPFogPosition.
The values still aren't used anywhere.
2023-09-17 20:01:07 +01:00
Paul Holden
6613f71bb0 Add disassembly for gSPPerspNormalize and remove the unimplemented warning. 2023-09-17 19:25:15 +01:00
Paul Holden
ff534532b9 Add disassembly for gSPClipRatio and remove the unimplemented warning. 2023-09-17 19:19:02 +01:00
Paul Holden
e49a60f30d Highlight warnings in the logs. 2023-09-17 16:56:50 +01:00
Paul Holden
3b0bcb0dd1 Consolidate warning and halting. Disable halting by default (will eventually make this toggleable). 2023-09-17 16:53:27 +01:00
Paul Holden
2cf46caae6 Fix hleHalt. 2023-09-17 16:30:02 +01:00
Paul Holden
3f5d72050a Log a warning if the matrix length is unusual. 2023-09-17 16:25:43 +01:00
Paul Holden
c986e3a66a Length is unused. 2023-09-17 16:18:36 +01:00
Paul Holden
6966ceda31 Stride is unused in executeTri4GE. 2023-09-17 16:17:58 +01:00
Paul Holden
a85fdfc650 Improve logging for unknown and unimplemented commands. 2023-09-17 16:17:21 +01:00
Paul Holden
032bbd94bd Add missing disassembly for executeRDPHalf_Cont. 2023-09-17 16:09:08 +01:00
Paul Holden
e7ffb271fc Add missing disassembly for BranchZ. 2023-09-17 16:05:48 +01:00
Paul Holden
bdb00b6dc3 Reorder and rename. 2023-09-17 15:58:04 +01:00
Paul Holden
1ec0b2ac28 Pass processDList into the constructor. 2023-09-16 22:11:02 +01:00
Paul Holden
9e2bb5e8c0 Wrap up postOp. 2023-09-16 22:07:18 +01:00
Paul Holden
cf1dc77f8c Yeet DebugController into a separate module. 2023-09-16 21:53:51 +01:00
Paul Holden
8030bea00a Reorder. 2023-09-16 21:26:46 +01:00
Paul Holden
0d0ac4b03e Use this. 2023-09-16 21:25:09 +01:00
Paul Holden
b906e07c42 Move scrub UI to DebugController. 2023-09-16 21:23:07 +01:00
Paul Holden
a421b484fb Move debugDisplayList to DebugController. 2023-09-16 21:17:07 +01:00
Paul Holden
d9757e623e Move halt() and show/hideUI to DebugController. 2023-09-16 21:10:13 +01:00
Paul Holden
3d1e021572 Move some functions to DebugController. 2023-09-16 21:03:48 +01:00
Paul Holden
20f0afd81e Encapsulate running and requested state. 2023-09-16 20:39:44 +01:00
Paul Holden
31f4113417 Move debug state to DebugController. 2023-09-16 20:27:53 +01:00
Paul Holden
edca8472aa Move the microcode creation to microcodes.js. 2023-09-16 20:17:38 +01:00
Paul Holden
864c54ac82 Stub out all the microcodes and use them to set up the vertex stride. 2023-09-16 20:09:55 +01:00
Paul Holden
b99c395d1c Inline getRamDataView 2023-09-16 17:28:15 +01:00
Paul Holden
8aad464490 Move framebuffer initialisation to Renderer constructor. 2023-09-16 17:26:52 +01:00
Paul Holden
5a41c9d2c1 Move copyPixelsToFrontBuffer to Renderer. 2023-09-16 17:20:39 +01:00
Paul Holden
f97e7ae958 Format 2023-09-16 17:17:11 +01:00
Paul Holden
9ad70bee45 Move nativeTransform to Renderer. 2023-09-16 17:09:26 +01:00
Paul Holden
ba079748c8 Move lookupTexture to Renderer. 2023-09-16 17:05:11 +01:00
Paul Holden
892c2efa4c Tidy. 2023-09-16 16:58:11 +01:00
Paul Holden
39ba050cc0 Get rid of the ramDB global. 2023-09-16 16:54:50 +01:00
Paul Holden
a7ef9dfaf5 Move copyBackBufferToFrontBuffer to Renderer. 2023-09-16 16:50:05 +01:00
Paul Holden
56756249c4 Move more functions to Renderer. 2023-09-16 16:46:32 +01:00
Paul Holden
4e948aaf53 Move flushTris to Renderer. 2023-09-16 16:36:20 +01:00
Paul Holden
126579ee8a Add a Renderer class with fillRect and texRect. 2023-09-16 16:32:06 +01:00
Paul Holden
00256cb466 Move microcode enums and detection to a separate module. 2023-09-16 14:55:58 +01:00
Paul Holden
1ad59f82c1 Format. 2023-09-16 14:40:35 +01:00
Paul Holden
cfa17456e1 Move loadVertices to microcode. 2023-09-16 14:40:03 +01:00
Paul Holden
ea90457d7f Wrap up table construction. 2023-09-16 14:33:47 +01:00
Paul Holden
9eaf7ed329 Move vertex strides to microcode base. 2023-09-16 14:27:39 +01:00
Paul Holden
3d73796050 config.vertexStride is no longer used. 2023-09-16 14:23:12 +01:00
Paul Holden
00c40e2085 Tidy 2023-09-16 14:21:27 +01:00
Paul Holden
d3dda3b3fa Move final GBI1 commands to microcode. 2023-09-16 14:18:01 +01:00
Paul Holden
54d53d5819 Move some GBI1 commands to microcode. 2023-09-16 14:12:15 +01:00