Commit graph

140 commits

Author SHA1 Message Date
Paul Holden
8b31c6580e Tidy how the debug UI is toggled, and link lil-gui visibility. 2023-10-15 13:54:19 +01:00
Paul Holden
f75103da41 Timeline improvements:
* Record more events
* Separate track for AI DMAs
2023-10-15 13:54:18 +01:00
Paul Holden
52c370a1ff Flesh out timeline UI. 2023-10-15 13:54:18 +01:00
Paul Holden
400d427071 Fix RSP scalar/vector/task tabs. 2023-10-15 13:54:17 +01:00
Paul Holden
2b5c78c7f0 Rename Textures tab to Tiles. 2023-10-15 13:54:17 +01:00
Paul Holden
11cc496fb8 Add bi class to icons. 2023-10-15 13:54:16 +01:00
Paul Holden
5c6d9457cb #cpu0-status and #rsp-status are no longer used. 2023-10-15 13:54:16 +01:00
Paul Holden
a3aa64b254 Tidy cpu0 status table. 2023-10-15 13:54:16 +01:00
Paul Holden
a078e8181a Define the RSP status table in HTML and just update the corresponding elements. 2023-10-15 13:54:16 +01:00
Paul Holden
711a68a9f7 Clean up some of the text. 2023-10-15 13:54:16 +01:00
Paul Holden
87f954623a Format 2023-10-15 13:54:16 +01:00
Paul Holden
81db125538 Move status to README. 2023-10-15 13:54:16 +01:00
Paul Holden
bab08e3bfa Styling fixes. 2023-10-15 13:54:16 +01:00
Paul Holden
1e553b1b15 Add a theme toggle button. 2023-10-15 13:54:16 +01:00
Paul Holden
a4356d66e8 Fix DisplayList tabs. 2023-10-15 13:54:16 +01:00
Paul Holden
00feacd35e Migrate to bootstrap 5.3.2.
This adds dark/light theme support (still a work in progress).
2023-10-15 13:54:15 +01:00
Paul Holden
4886080148 Serve minified version. 2023-09-26 23:31:54 +01:00
Paul Holden
90bf11beb0 Add some debug options via lil-gui. 2023-09-26 23:31:54 +01:00
Paul Holden
4a9f4a2a1e Explicitly init CPU and RSP from n64.js so it becomes the only entry point. 2023-09-26 23:31:54 +01:00
Paul Holden
3e7917784d Add fullscreen support. 2023-09-24 21:12:53 +01:00
Paul Holden
004cf70d30 Simplify screen->device transforms.
Viewports still aren't implemented correcty but the new code is a lot simpler and now supports canvas scaling.
2023-09-23 22:17:57 +01:00
Paul Holden
919a481396 Update info. 2023-09-23 22:17:56 +01:00
Paul Holden
842e797b7f Add a tab for RSP task state. 2023-09-23 22:17:56 +01:00
Paul Holden
2a7eba8333 Show RSP registers. 2023-09-23 22:17:56 +01:00
Paul Holden
69caeebc13 Wrap up lastPC in CPUDebugState. 2023-09-23 22:17:56 +01:00
Paul Holden
587bb80c95 Stub out RSP tab. 2023-09-23 22:17:56 +01:00
Paul Holden
f86970fb9d Rename Debug tab to CPU. 2023-09-23 22:17:56 +01:00
Paul Holden
448b19450d Appy the uv scaling in the fragment shader.
This shouldn't change anything yet (a bit slower) but it makes it possible to do shift/mask/clamp on a per-pixel basis.
2023-09-23 22:17:56 +01:00
Paul Holden
9d5b5dce77 Add support for tex1. 2023-09-23 22:17:56 +01:00
Paul Holden
96fa0c0f2f Make the alpha threshold a uniform. 2023-09-23 22:17:56 +01:00
Paul Holden
588d783295 Update Status. 2023-09-23 22:17:56 +01:00
Paul Holden
2f4c37134a Stub out RSP. 2023-09-23 22:17:55 +01:00
Paul Holden
9b6ce31c3e Add MD5 support, based on https://github.com/blueimp/JavaScript-MD5.
I've modified this to take ArrayBuffers rather than raw strings, which avoids a lot of character encoding pain.
2023-09-23 22:17:54 +01:00
Paul Holden
a5ad987192 Export functions directly from hle.js. 2023-09-23 22:17:53 +01:00
Paul Holden
391c3627f3 Export functions directly from disassemble.js. 2023-09-23 22:17:53 +01:00
Paul Holden
e4e9c187e0 Only import the entry points. 2023-09-23 22:17:53 +01:00
Paul Holden
2c9a3789e1 Tidy debugger toggling a bit. 2023-09-23 22:17:53 +01:00
Paul Holden
2df3c60544 Export UI as a class. 2023-09-23 22:17:53 +01:00
Paul Holden
7d76c276cf Implement alert using a template. 2023-09-23 22:17:53 +01:00
Paul Holden
e2154ce7dc Extract some functions to ui.js. 2023-09-23 22:17:53 +01:00
Paul Holden
e16db2ccb0 Extract boot code. 2023-09-23 22:17:53 +01:00
Paul Holden
2bc2614edb Split assert out. 2023-09-23 22:17:53 +01:00
Paul Holden
dcdf743082 Extract MemoryMap. 2023-09-23 22:17:53 +01:00
Paul Holden
23f4f7eb45 Split out endian.js. 2023-09-23 22:17:53 +01:00
Paul Holden
aee4fc8505 Split controller code out into a separate module. 2023-09-23 22:17:53 +01:00
Paul Holden
2ed84071df Extract RI device. 2023-09-23 22:17:53 +01:00
Paul Holden
d5cae175dd Extract VI device. 2023-09-23 22:17:53 +01:00
Paul Holden
887d5c4035 Extract the AI device. 2023-09-23 22:17:53 +01:00
Paul Holden
1537cb0d6b Extract SP devices. 2023-09-23 22:17:53 +01:00
Paul Holden
8ca204cc45 Move rom devices to separate file. 2023-09-23 22:17:53 +01:00