Commit graph

  • 9347292a32 Add disassembleRange helper to CPUDebugState. Paul Holden 2023-09-04 08:51:48 +01:00
  • 048388a157 Start wrapping cpu debugger state in a class. Paul Holden 2023-09-04 08:49:00 +01:00
  • 587bb80c95 Stub out RSP tab. Paul Holden 2023-09-04 08:42:46 +01:00
  • 6e73ac92ec Keep n64js.cpu0 in a local. Paul Holden 2023-09-04 08:40:50 +01:00
  • 06558a6e82 Rename updateDebug to updateCPU. Paul Holden 2023-09-04 08:32:25 +01:00
  • f86970fb9d Rename Debug tab to CPU. Paul Holden 2023-09-04 08:25:53 +01:00
  • b27370266b Add support for G_BL_CLR_MEM,G_BL_0,G_BL_CLR_MEM,G_BL_1MA. Paul Holden 2023-09-04 08:22:54 +01:00
  • 96d6de5f7f Show instruction addresses for disassembleAll. Paul Holden 2023-09-04 08:15:34 +01:00
  • e3bc726b49 Fix exception in MemoryRegion.copy when DMAing from short roms. Paul Holden 2023-09-03 12:15:29 +01:00
  • 3bcaef66a4 Tidy initialiseRenderer a little. Paul Holden 2023-09-02 11:22:06 +01:00
  • 723ed472c2 Also log alphaCvgSel and cvgXAlpha. Paul Holden 2023-09-02 11:21:01 +01:00
  • 00c3a6f3cf Missing import. Paul Holden 2023-09-02 11:20:30 +01:00
  • 5043116e2e Mask width/height to 0x3ff rather than 0xfff. Paul Holden 2023-09-01 09:20:22 +01:00
  • 448b19450d Appy the uv scaling in the fragment shader. Paul Holden 2023-09-01 09:17:12 +01:00
  • e942b78cf1 Only bind tex1 if it's used. Paul Holden 2023-09-01 09:13:28 +01:00
  • d8da7929e8 Update comment. It's nothing to do with shift. Paul Holden 2023-09-01 09:12:12 +01:00
  • d7fc5fb144 Apply the shift factor to uv coords. Paul Holden 2023-09-01 09:10:34 +01:00
  • aad8e797e4 Apply TEXTURE_WRAP mode when the texture is bound. Paul Holden 2023-09-01 09:09:49 +01:00
  • 0a14a7c3d8 Improve texrect disassembly output (and fix for texrectflip). Paul Holden 2023-09-01 09:07:59 +01:00
  • e506124902 Export color conversion functions. Paul Holden 2023-09-01 09:07:22 +01:00
  • 8f1d0a5c94 Include cacheID in the texture debug output. Paul Holden 2023-09-01 09:07:06 +01:00
  • e996618a5f FillRect for FILL cycle type should use the fill color alpha Paul Holden 2023-09-01 09:06:47 +01:00
  • 92038e6415 Improve gsSPTexture disassembly. Paul Holden 2023-09-01 09:02:41 +01:00
  • beee0fe350 Make the uniform names consistent. Paul Holden 2023-08-30 22:32:06 +01:00
  • 9d5b5dce77 Add support for tex1. Paul Holden 2023-08-30 22:26:44 +01:00
  • 5bc956d346 Make Tile width/height more robust. Paul Holden 2023-08-30 22:07:01 +01:00
  • 2b432eac5f Fix texture cache id. Paul Holden 2023-08-30 21:10:52 +01:00
  • f07cead6a9 Fix caching for CI32 textures - entries are quadricated so all 2k data needs hashing. Paul Holden 2023-08-30 21:02:13 +01:00
  • 74b361cafb Tidy naming. Paul Holden 2023-08-29 23:15:02 +01:00
  • d4353d4246 Tidy executeLoadBlock. Paul Holden 2023-08-29 21:09:12 +01:00
  • 0f0b60af88 Tidy tile loading. Paul Holden 2023-08-29 08:52:49 +01:00
  • a8edfca135 Use G_TX_RENDERTILE/LOADTILE aliases in debug table. Paul Holden 2023-08-29 08:51:53 +01:00
  • ce807105d1 Only log unhandled blend modes once. Paul Holden 2023-08-29 08:51:11 +01:00
  • edd82b73bd Fix loadtile - padding should be byteswapped on alternate lines. Paul Holden 2023-08-28 23:29:13 +01:00
  • 7073e8b29f Fix CSS for all the condensed tables. Paul Holden 2023-08-28 23:01:39 +01:00
  • 96fa0c0f2f Make the alpha threshold a uniform. Paul Holden 2023-08-28 22:55:38 +01:00
  • e03c1fd038 Unconditionally set alpha_threshold when G_AC_THRESHOLD is active. Paul Holden 2023-08-28 22:39:48 +01:00
  • b271a3f91e Fix SetOtherMode disassembly for GBI2. Paul Holden 2023-08-28 22:05:51 +01:00
  • 6bee80658b RSP code size can't be >0x1000 Paul Holden 2023-08-28 19:52:21 +01:00
  • 588d783295 Update Status. Paul Holden 2023-08-28 16:36:13 +01:00
  • cbf5533bd1 Implement CIC-NUS-6105 challenge/response using XScale's algorithm. Paul Holden 2023-08-28 16:33:00 +01:00
  • f0582c108a Reads and writes to flash control/status seem to wrap over the status register (reads) or ignore address (writes). Paul Holden 2023-08-28 15:36:34 +01:00
  • 1d422e5d5e Ignore the dstOffset for DMAs to flash. Paul Holden 2023-08-28 15:31:04 +01:00
  • cf3ca7aae0 Fix bounds checks. Paul Holden 2023-08-28 15:30:28 +01:00
  • d5b410f59e Fix save type Paul Holden 2023-08-28 11:19:23 +01:00
  • 97f878a22d Implement flashRam support. Paul Holden 2023-08-28 11:10:11 +01:00
  • 2fc4c9a216 Add a set() helper. Paul Holden 2023-08-28 10:52:20 +01:00
  • a8dac82e7c Fix save types (FlashRAM != FlashRam). Paul Holden 2023-08-27 14:35:50 +01:00
  • 8d120dc450 Mark SRAM as dirty when dmaing to it. Paul Holden 2023-08-27 14:04:58 +01:00
  • dfd57a60b9 Use a single MemoryRegion for all save types. Paul Holden 2023-08-27 14:01:13 +01:00
  • 84c7b93a47 Add a s32Array helper to ensure any offsets are taken into account. Paul Holden 2023-08-27 11:58:15 +01:00
  • 78fe434991 Use subRegion in PIFMemDevice. Paul Holden 2023-08-27 11:53:34 +01:00
  • e0be8b02dd subDataView isn't used. Paul Holden 2023-08-27 11:48:36 +01:00
  • dd6758f5fd Use MemoryRegions for imem and dmem. Paul Holden 2023-08-27 11:47:45 +01:00
  • b444c0e649 Use a MemoryRegion in the disassembler. Paul Holden 2023-08-27 11:46:40 +01:00
  • 07946aa8ca Remove n64js.rsp_task_view and use a MemoryRegion. Paul Holden 2023-08-27 11:46:24 +01:00
  • 6cbf62aebd Update simulateBoot to use a MemoryRegion. Paul Holden 2023-08-27 11:34:55 +01:00
  • a9290c106f Don't log when writing to PI_BSD_DOM regs. Paul Holden 2023-08-27 11:33:03 +01:00
  • d6d20deff5 Update joybus to use a MemoryRegion. Paul Holden 2023-08-27 11:32:23 +01:00
  • d6cca875f0 Allow MemoryRegion to be constructed with an offset and length and add a subRegion helper. Paul Holden 2023-08-27 11:28:40 +01:00
  • 6f89b18a5c Use subDataView for the RSP task dataview. Paul Holden 2023-08-27 10:31:14 +01:00
  • d2f4eb787b Add a subDataView helper. Paul Holden 2023-08-27 10:27:12 +01:00
  • 7ed3e4b60e Make memoryCopy a member of MemoryRegion. Paul Holden 2023-08-27 10:17:20 +01:00
  • d420283f2e Split joybus handling into separate configure and execute parts. Paul Holden 2023-08-27 10:12:26 +01:00
  • a12f2a2638 Remove a TODO Paul Holden 2023-08-26 14:53:00 +01:00
  • cdc8af4e39 Tidy Paul Holden 2023-08-26 13:49:09 +01:00
  • 2f39ca3b45 Keep simplifying execute() Paul Holden 2023-08-26 13:47:25 +01:00
  • dc463dae29 Tidy Paul Holden 2023-08-26 13:20:55 +01:00
  • 40fddf3077 Use subarray with an explicit length rather than tempOutput. Paul Holden 2023-08-26 13:16:57 +01:00
  • 0b94ae7e34 for loop and switch Paul Holden 2023-08-26 13:08:23 +01:00
  • b5fc5101f4 Split controllers.js out of joybus.js. Paul Holden 2023-08-26 11:49:45 +01:00
  • 60ad1bf15f Just pass the inputs into Joybus constructor. Paul Holden 2023-08-26 11:44:45 +01:00
  • e5a4a5241d Split Controllers out of Joybus. Paul Holden 2023-08-26 11:43:20 +01:00
  • 250577b565 Maintain a single list of channels. Paul Holden 2023-08-26 11:39:00 +01:00
  • fc4494dcc9 Move command processing from Joybus Controller/Cartridge. Paul Holden 2023-08-26 11:27:59 +01:00
  • 44533ff043 Improve logging Paul Holden 2023-08-26 11:16:04 +01:00
  • 3483e1d1f8 Split pif device out into separate module. Paul Holden 2023-08-26 11:15:27 +01:00
  • 776b8f9d22 Rename "pi ram" to "pif mem". Paul Holden 2023-08-26 11:12:08 +01:00
  • 6a65e8d8e0 Log unhandled writes to the PIF RAM control byte. Paul Holden 2023-08-26 11:06:00 +01:00
  • 25f9246ac3 Rename controllers -> joybus. Paul Holden 2023-08-26 11:03:22 +01:00
  • 0d4deb65c5 Simplify rx handling and correctly handle underflow/overflow. Paul Holden 2023-08-26 10:28:35 +01:00
  • 3f98e2f85c Add some constants for device ids. Paul Holden 2023-08-26 10:02:04 +01:00
  • c3b6a201ce Tidy cartridge RTC commands. Paul Holden 2023-08-26 09:08:59 +01:00
  • 9e185decc5 Tidy eeprom handling. Paul Holden 2023-08-26 00:22:29 +01:00
  • 8296cb95be Eeprom is 4k and 16k bits, not bytes. Paul Holden 2023-08-25 23:54:54 +01:00
  • 0b06ec41a5 Add support for checking the address crc. Paul Holden 2023-08-25 23:37:20 +01:00
  • 4a4e74e59d Overhaul controllerpak support. Paul Holden 2023-08-25 23:15:24 +01:00
  • aeaac8d8d0 Move mempacks to Hardware. Paul Holden 2023-08-24 21:12:23 +01:00
  • 45719288ba Tidy Paul Holden 2023-08-24 21:04:51 +01:00
  • cc44b3c3ac Improve the accuracy of TLUT emulation by taking "quadrication" into account. Paul Holden 2023-08-24 00:14:31 +01:00
  • a80228c2e9 Implement some unimplmented ops and improve logging. Paul Holden 2023-08-23 09:20:48 +01:00
  • 31f12cb12b Split hle disassembly out into separate module. Paul Holden 2023-08-23 08:52:13 +01:00
  • 489f642a4e Use template strings. Paul Holden 2023-08-23 08:44:04 +01:00
  • 268b1e1e3b Fix fillRect alpha blending. Paul Holden 2023-08-23 08:34:58 +01:00
  • ef7ca6e5e0 Mask rdpSegmentAddress against 8MB. Paul Holden 2023-08-23 08:28:46 +01:00
  • 7642b82cb9 Use template strings. Paul Holden 2023-08-23 08:09:19 +01:00
  • 6e8005e165 Split out setGLBlendMode. Paul Holden 2023-08-23 08:04:08 +01:00
  • c8c457def3 Fix winding order in executeGBI2_Tri1. Paul Holden 2023-08-22 23:36:47 +01:00
  • cc51ca7ca0 Use template strings. Paul Holden 2023-08-22 23:36:27 +01:00
  • d6c678e13b Show either the normal or color depending on whether lighting is enabled. Paul Holden 2023-08-22 23:23:39 +01:00