Commit graph

  • 9decb39dcb Width>0x300 hack does seem to be needed. Paul Holden 2023-07-04 23:41:25 +01:00
  • 83f36c98e2 Don't rendering anythign if the mode isn't set. Paul Holden 2023-07-04 23:04:48 +01:00
  • 4d4d48a48c Move computeDimensions to vi.js. Paul Holden 2023-07-04 23:00:54 +01:00
  • b5dbc83eff Remove vi prefix. Paul Holden 2023-07-04 22:56:27 +01:00
  • 6a1fbe7891 Use accessors for registers. Paul Holden 2023-07-04 22:50:33 +01:00
  • b9413d6768 Tidy VI register names. Paul Holden 2023-07-04 22:43:10 +01:00
  • d34022a376 Improve microcode detection. Paul Holden 2023-07-04 21:18:36 +01:00
  • df2b4dee0f Disable noisy mempack logging. Paul Holden 2023-07-04 20:02:30 +01:00
  • 227b5632ce Improve boot constants. Paul Holden 2023-07-04 20:00:35 +01:00
  • 77e581e2f7 Don't render anything if the origin is not set. Paul Holden 2023-07-04 19:58:01 +01:00
  • 9d38ffd9f1 Fix y-res scaling hack. Paul Holden 2023-07-04 19:57:13 +01:00
  • 7f4f516457 Add a dump() helper. Paul Holden 2023-07-04 19:49:35 +01:00
  • 85485a626f Remove the y scaling hack. Paul Holden 2023-07-04 19:48:26 +01:00
  • 90ae076501 Fix SM64 (E). Paul Holden 2023-07-04 00:10:02 +01:00
  • 2ec1d9ca61 Tidy vi width/height calculation and use for raw framebuffer code. Paul Holden 2023-07-04 00:00:47 +01:00
  • a126e29dc4 Tidy setViScales a little. Paul Holden 2023-07-03 22:41:06 +01:00
  • ab15a711ee Calc viHeight using constant of 80/79 and truncate to int. Paul Holden 2023-07-03 22:40:00 +01:00
  • 98484742cc Clear the CAUSE_IP3 bit when the MI interrupt mask is cleared. Paul Holden 2023-07-03 22:14:56 +01:00
  • d58ac6d68a Call presentBackBuffer on every vertical blank. Paul Holden 2023-07-02 22:47:47 +01:00
  • d427064e76 Make presentBackBuffer work with 32bit framebuffers. Paul Holden 2023-07-02 22:29:37 +01:00
  • e89635ef9e Overhaul VI interrupts. Paul Holden 2023-07-02 20:53:11 +01:00
  • 09373a21b4 Init rominfo earlier so devices can reference it. Paul Holden 2023-07-02 19:31:55 +01:00
  • 252e50afb3 Fix copyToRDRAM (assigning to const variable). Paul Holden 2023-07-02 19:31:17 +01:00
  • 6a43357252 Store tv type in rominfo. Paul Holden 2023-07-02 12:34:16 +01:00
  • 4279f3553c vI changes break Wetrix. Paul Holden 2023-07-01 21:49:46 +01:00
  • 4f0dc956f4 Convert load_s64_as_double to use BigInt. Paul Holden 2023-07-01 21:48:52 +01:00
  • 4fdb7f7ee7 Fix store_float_as_long. Paul Holden 2023-07-01 21:46:03 +01:00
  • 5c2507c225 Add a TODO for VI_CURRENT_REG. Paul Holden 2023-07-01 21:37:06 +01:00
  • 02e1013189 Rewrite store_float_as_long using BigInt. Paul Holden 2023-06-30 20:53:51 +01:00
  • fcbebc235c k1Shift32 is unused. Paul Holden 2023-06-30 20:38:19 +01:00
  • cda71b2c32 Rewrite DADD/DSUB etc using BigInt. Paul Holden 2023-06-30 20:30:30 +01:00
  • 8b363d0d11 Remove getGPR_u64 (now unused) Paul Holden 2023-06-30 18:36:30 +01:00
  • e50ba7b643 Fix DIV and DIVU with negative numbers. Paul Holden 2023-06-30 18:34:17 +01:00
  • fc5d8e9b65 Rewrite DDIV and DDIVU to use BigInt. Paul Holden 2023-06-30 17:37:18 +01:00
  • 9c3b498e36 Remove getHi32 as it's no longer used. Paul Holden 2023-06-30 16:24:26 +01:00
  • 435abe42f4 Use warn() rather than halt() for "Invalid Operation". Paul Holden 2023-06-30 16:23:15 +01:00
  • 2f21b3075a Tidy Paul Holden 2023-06-30 16:22:10 +01:00
  • 4effd2747b Fix precision errors in multiplication instructions. Paul Holden 2023-06-30 16:21:51 +01:00
  • 9bd03eb6f9 Use bool constants. Paul Holden 2023-06-29 09:03:08 +01:00
  • 5975dded8e Fix logging when before initialise. Paul Holden 2023-06-29 09:02:54 +01:00
  • 98e62d6843 Fix pageMaskName arg name. Paul Holden 2023-06-29 09:00:55 +01:00
  • a7dae94f89 Fix kDebugDynarec - assert to dynarec. Paul Holden 2023-06-29 08:55:45 +01:00
  • d55da29c49 Use template literals for codegen. Paul Holden 2023-06-29 00:05:46 +01:00
  • f432f36215 Handle empty code blocks (e.g. NOP). Paul Holden 2023-06-28 23:12:05 +01:00
  • 853df4b347 Dedent the code first, to allow template literals to be formatted better. Paul Holden 2023-06-28 23:02:35 +01:00
  • 664364e6af Add the disassembly as a comment before each instruction. Paul Holden 2023-06-28 08:05:26 +01:00
  • 94fcaf8e0b Template strings. Paul Holden 2023-06-27 23:16:33 +01:00
  • dbdf7fc9c3 var -> {const,let} Paul Holden 2023-06-27 23:10:13 +01:00
  • 050d34d63e camelCase vars. Paul Holden 2023-06-27 22:42:17 +01:00
  • 765bb684f6 Rename to FragmentMap. Paul Holden 2023-06-27 22:40:06 +01:00
  • 3ded97f3a3 Use for..of and Map for FragmentMapWho entries. Paul Holden 2023-06-27 22:38:14 +01:00
  • afeaa5ef64 Tidy FragmentMapWho. Paul Holden 2023-06-27 22:32:37 +01:00
  • 708ad2bd08 Make FragmentMapWho a class. Paul Holden 2023-06-27 22:28:50 +01:00
  • 727f412543 Format (less vertically aligned tables and constants, for now). Paul Holden 2023-06-27 22:26:53 +01:00
  • 2f89a0a7a1 Tidy Paul Holden 2023-06-27 21:59:17 +01:00
  • 08b9ab8141 Prevent writes to non-writable bits of control Index and EntryLo registers. Paul Holden 2023-06-27 21:43:16 +01:00
  • 635f85964a Document some PI address ranges. Paul Holden 2023-06-27 21:38:21 +01:00
  • f6c40739ec Tidy TLBEntry. Paul Holden 2023-06-26 23:49:47 +01:00
  • 1a80b5c571 Fix PageMask handling - bits outside 12..24 are hardwired to zero. Paul Holden 2023-06-26 23:48:01 +01:00
  • ce99e58844 Tidy Paul Holden 2023-06-26 23:07:11 +01:00
  • 00798ee2d0 Converty TLBEntry to class. Paul Holden 2023-06-26 23:00:15 +01:00
  • 6235d0f842 Tidy Paul Holden 2023-06-26 22:56:22 +01:00
  • 28b4c32142 Tidy tlb handlers. Paul Holden 2023-06-26 22:55:29 +01:00
  • d11d328391 Make FragmentContext a class. Paul Holden 2023-06-26 22:22:02 +01:00
  • 4756110254 Make SystemEvent and TLBException classes. Paul Holden 2023-06-26 22:19:23 +01:00
  • 19e2f93048 Make CPU0 a class. Paul Holden 2023-06-26 22:17:46 +01:00
  • 02bdf6e02b Tidy up CanvasTransform. Paul Holden 2023-06-26 09:08:08 +01:00
  • df4cc013bd Tidy initialiseRenderer. Paul Holden 2023-06-25 23:34:53 +01:00
  • 745b7b80ea Tidy some of the global state. Paul Holden 2023-06-25 23:29:19 +01:00
  • e12a56aff8 Fix syncInput import. Paul Holden 2023-06-25 23:21:21 +01:00
  • 6bd087e75c Get rid of ram_u8 and ram_s32 globals. Paul Holden 2023-06-25 23:10:26 +01:00
  • 194579057e Tidy Paul Holden 2023-06-25 22:48:26 +01:00
  • a617dc2a45 Make RSPTask a class. Paul Holden 2023-06-25 22:44:53 +01:00
  • 650547e634 Tidy Disassembler. Paul Holden 2023-06-25 22:42:59 +01:00
  • cd0f5cbaca Make hle Disassembler a class. Paul Holden 2023-06-25 22:41:07 +01:00
  • 2193d45326 Fix for dynarec debugger. Paul Holden 2023-06-25 22:40:52 +01:00
  • 244352c5c1 Tidy. Paul Holden 2023-06-24 15:43:34 +01:00
  • 6f42b0c6cc Use template strings. Paul Holden 2023-06-23 12:19:59 +01:00
  • e84f885018 Export cpu0 control register constants. Paul Holden 2023-06-23 12:18:05 +01:00
  • cfb9608e3c Add cpu_constants.js. Paul Holden 2023-06-23 12:06:18 +01:00
  • 493c3e127a Rename CPU1.js to cpu1.js. Paul Holden 2023-06-23 11:59:11 +01:00
  • 4eccc4b25d Tidy disassembleRange. Paul Holden 2023-06-23 10:08:56 +01:00
  • d752ccd0ba Rename disassembleOp to disassembleInstruction. Paul Holden 2023-06-23 09:59:34 +01:00
  • 6b7a3c69a0 Tidy Paul Holden 2023-06-23 09:56:53 +01:00
  • 562c30fe95 Use template strings. Paul Holden 2023-06-22 20:21:45 +01:00
  • a84ba33f07 Format. Paul Holden 2023-06-22 20:19:27 +01:00
  • e80f9b64d5 Implement operand accessors as getters. Paul Holden 2023-06-22 20:10:57 +01:00
  • 6a72f56a1d Update disassemble.js to use template strings. Paul Holden 2023-06-22 09:32:20 +01:00
  • 0ea591d2c0 Unwrap r4300.js. Paul Holden 2023-06-21 22:01:08 +01:00
  • cd81d8042a Import format.toString32 directly. Paul Holden 2023-06-21 21:59:47 +01:00
  • a5ad987192 Export functions directly from hle.js. Paul Holden 2023-06-21 21:38:39 +01:00
  • ffc1fcf116 Unwrap hle.js. Paul Holden 2023-06-21 21:17:27 +01:00
  • 391c3627f3 Export functions directly from disassemble.js. Paul Holden 2023-06-21 21:15:19 +01:00
  • 08a8cb994c Unwrap disassemble.js. Paul Holden 2023-06-21 20:52:56 +01:00
  • e4e9c187e0 Only import the entry points. Paul Holden 2023-06-21 09:03:51 +01:00
  • 7a98bded71 Update labelMap to use a Map type. Paul Holden 2023-06-21 08:59:04 +01:00
  • 6e65ce21bc Fix JSON serialization for Maps. Paul Holden 2023-06-21 08:57:59 +01:00
  • 670ba21365 Use event.key rather than event.which. Paul Holden 2023-06-20 12:46:47 +01:00
  • ba2ae8acf3 Move Debugger init to n64.js. Paul Holden 2023-06-20 09:21:29 +01:00
  • 36b24d7809 Wrap up refreshDebugger. Paul Holden 2023-06-20 09:13:36 +01:00