Commit graph

  • b67a41adac Define memory address field in .html and add similar for debugger Paul Holden 2012-09-24 22:09:28 +01:00
  • c4d6823789 Improve disassembly for LUI Paul Holden 2012-09-23 17:32:54 +01:00
  • ec018543b1 Add CPU0 functions to prototype Paul Holden 2012-09-23 16:05:38 +01:00
  • 1e62cea76b Lint r4300.js Paul Holden 2012-09-23 15:44:26 +01:00
  • 8094cfeb62 Split some more of the main dispatch loop out. Cache some state from the closure in local vars Paul Holden 2012-09-23 15:29:24 +01:00
  • 631dff43c8 Move executeFragment out of runImpl Paul Holden 2012-09-23 10:38:03 +01:00
  • a3b6b6b3a9 Move the bulk of run() to another function - v8 won't optimise with try/catch block Paul Holden 2012-09-23 10:26:49 +01:00
  • c1ae639430 Lint settings Paul Holden 2012-09-23 10:23:29 +01:00
  • 36d8250f1f More linting Paul Holden 2012-09-22 10:13:59 +01:00
  • f394cd146e Fix a couple of linting issues Paul Holden 2012-09-21 09:04:31 +01:00
  • 8bba9b91ad Ooops generateSRAV was performing a left shift. Fixes a Goldeneye crash Paul Holden 2012-09-21 09:01:10 +01:00
  • 31f781ee25 Tidy display list debugger ui Paul Holden 2012-09-20 20:57:37 +01:00
  • b9b7b69907 rdpOtherMode debug Paul Holden 2012-09-20 20:02:41 +01:00
  • f5bb7e7bd0 Show geometry mode in debugger Paul Holden 2012-09-20 09:02:30 +01:00
  • 2500c50275 Better colour values in the debugger Paul Holden 2012-09-20 08:51:47 +01:00
  • 39a1f4625a Fix some jshint issues in hle.js Paul Holden 2012-09-19 21:18:52 +01:00
  • 772cb26cf2 Fix textures in neversoft games - texture state is dependent on lrs/lrt (probably all the tile size values too, but this is fine for now) Paul Holden 2012-09-19 09:24:54 +01:00
  • d4d3ed077f Show cycle type alongside color combiner Paul Holden 2012-09-19 09:24:08 +01:00
  • f23f2118d8 Fix undefined value appearing in debug ui Paul Holden 2012-09-19 09:23:51 +01:00
  • 6a7c0347bb Lots more GBI 2 work Paul Holden 2012-09-19 09:23:32 +01:00
  • ec2c16d968 speedHack could be spammy, causing massive slowdown for certain roms. Ooops Paul Holden 2012-09-18 22:23:55 +01:00
  • ccc1d32631 Massicve texture rewrite. Emulate texture memory accurately, which fixes lots of bugs (swapping, multiple textures, dynamically updated textures, etc). Calculating tmem crcs is a little expensive right now, might be able to improve this. Paul Holden 2012-09-18 22:23:01 +01:00
  • f19adf5ed7 0xb1 is ModifyVtx for GBI1 Paul Holden 2012-09-18 13:24:15 +01:00
  • c0c1039594 DPS registers were set up with incorrect length and address Paul Holden 2012-09-18 08:30:20 +01:00
  • d20c5a4b43 Dissassemble SetKeyR/GB and implement as no-op Paul Holden 2012-09-18 08:29:21 +01:00
  • 1e9b8ed49d hleHalt wasn't breaking execution, so could potentially break on the wrong display list if multiple display lists are executed per vbl Paul Holden 2012-09-18 08:28:36 +01:00
  • b144c81d1a Show textures composited against black Paul Holden 2012-09-17 23:07:21 +01:00
  • d83b167aff Disassemble gsDPSetPrimDepth - still not implemented Paul Holden 2012-09-17 08:22:47 +01:00
  • 85c5f6ba93 hleHalt for unimplemented ops. Stop execution immediately for unknown ops (stops unsupported microcodes going haywire) Paul Holden 2012-09-17 08:17:44 +01:00
  • 726b5e8be5 Start implementing some GBI2 commands Paul Holden 2012-09-17 00:24:26 +01:00
  • f11181ac89 Paving the way for GBI2 Paul Holden 2012-09-16 23:07:04 +01:00
  • 573284d696 Fix CVT.D.L dynarec Paul Holden 2012-09-16 17:40:58 +01:00
  • 5103452fda Fix DMTC1 dynarec Paul Holden 2012-09-16 17:40:38 +01:00
  • 8ab23d75c0 projected vertex colour is ABGR, not RGBA Paul Holden 2012-09-16 14:48:18 +01:00
  • 2c35488ee5 Fix G_CYC_2CYCLE shaders - all 2 cycle shaders were being mapped to the same shader Paul Holden 2012-09-16 14:44:52 +01:00
  • fb7985773a Disassembly was getting out of sync with single step execution Paul Holden 2012-09-16 10:22:14 +01:00
  • 5aa0db310e Fix z component Paul Holden 2012-09-14 00:05:25 +01:00
  • 770c682cae Avoid javascript exception raised by wetrix Paul Holden 2012-09-14 00:03:39 +01:00
  • b899dcdb58 Show Paul Holden 2012-09-14 00:02:55 +01:00
  • c730640595 Fix wetrix rendering - was calculating memory offset wrong for verts that weren't loaded at index 0 Paul Holden 2012-09-14 00:00:27 +01:00
  • 54fcd0cc3b Allow address to be entered for memory view Paul Holden 2012-09-13 23:59:31 +01:00
  • bf98b2e363 Fix nans coming from normaliseInPlace - was breaking uv calculation for 'Goldeneye' logo Paul Holden 2012-09-13 23:06:03 +01:00
  • 6a8e811c16 Show vertex table in displaylist debug Paul Holden 2012-09-13 22:40:43 +01:00
  • d7f8b1cb2c Improve the tile output. Try to show textures for all tiles. Not working well right now. Paul Holden 2012-09-13 09:30:32 +01:00
  • 735c021e0e Add a new hleHalt function to break into the displaylist debugger rather than callingn64js.halt Paul Holden 2012-09-13 09:12:46 +01:00
  • 9341c78bd5 Update Info Paul Holden 2012-09-13 00:20:50 +01:00
  • 3ab3105262 G_TX_RENDERTILE preview Paul Holden 2012-09-13 00:03:31 +01:00
  • 06eb832642 Tidy more texture stuff Paul Holden 2012-09-12 23:25:42 +01:00
  • 85660c2cb5 Move caching code to lookupTexture Paul Holden 2012-09-12 23:02:45 +01:00
  • aa637a82c2 Reset the texture cache when switching roms. Tidy up some of the hle.js state Paul Holden 2012-09-12 22:55:55 +01:00
  • d91fb2fc73 Construct a proper object for tiles, rather than poking random fields Paul Holden 2012-09-12 22:48:04 +01:00
  • 49b3ae5010 Debug display list on F9 Paul Holden 2012-09-12 09:13:22 +01:00
  • 6c955a9bd4 Show combiner state Paul Holden 2012-09-12 09:05:25 +01:00
  • 62957072f8 Tidy dlist state Paul Holden 2012-09-12 08:54:06 +01:00
  • 2d4c613e7d Seem to get empty ucodes through sometimes. Hmmm. Paul Holden 2012-09-12 08:49:43 +01:00
  • 825553225d Display tiles in dlist state output. Only update state if needed Paul Holden 2012-09-12 08:44:24 +01:00
  • 66088b0ce3 Disable time-to-texrect output Paul Holden 2012-09-12 08:31:45 +01:00
  • 7fb5b42253 Start showing ucode state as scrubber changes Paul Holden 2012-09-12 00:06:17 +01:00
  • 4c1e73b709 Restart emulation when display debug stops Paul Holden 2012-09-11 23:36:20 +01:00
  • 086cb4b213 Wider dlist output. Hacky hacky Paul Holden 2012-09-11 23:31:35 +01:00
  • d6ceb2f7fd Color background for display list rgba values Paul Holden 2012-09-11 23:09:16 +01:00
  • bfbb185959 Impleemnt rewind/forward buttons for display list debug. Fix scrub text. Remove ucode pc field. Paul Holden 2012-09-11 22:41:54 +01:00
  • 9552d67098 Lots of new code to handle improved display list debugging. You can now scrub back and forth along the display list, and see the order in which things are rendered Paul Holden 2012-09-11 22:26:03 +01:00
  • 32c0c62623 Expose VI_ORIGIN_REG Paul Holden 2012-09-11 08:53:03 +01:00
  • b446be8948 Add a padString helper Paul Holden 2012-09-11 08:52:38 +01:00
  • a79a12275b Ooops, calling Disassembler.finalise twice Paul Holden 2012-09-10 19:52:29 +01:00
  • 287860c035 Rename RSPHLEProcessTask to rspProcessTask Paul Holden 2012-09-10 19:33:31 +01:00
  • 7f8637dc5a Remove outdated comments Paul Holden 2012-09-10 19:28:44 +01:00
  • c2627beaa7 Move implementation after initialising state Paul Holden 2012-09-10 19:09:54 +01:00
  • af27629ba1 Use getTileText for gpSPTexture disassembly Paul Holden 2012-09-10 19:08:12 +01:00
  • 3c951f77b0 Fix vertex/matrix/movemem previews Paul Holden 2012-09-10 12:47:49 +01:00
  • 11b782d9d6 Massive display list disassembly overhaul. Just implement inline now. This simplifies the code a lot and will open up some interesting possibilities (e.g. single stepping, texture previews, etc) Paul Holden 2012-09-10 00:59:00 +01:00
  • 6450d94458 Chain ucode tables Paul Holden 2012-09-09 23:08:37 +01:00
  • 22b5d4bf06 Going to switch to a more table-driven approach to microcode Paul Holden 2012-09-09 22:44:07 +01:00
  • c8ac648332 Fix lots of missing cop1 instructions: DMFC1/DMTC1, CVT.S.L, ROUND/TRUNC/CEIL/FLOOR.L + dynarec Paul Holden 2012-09-09 22:21:16 +01:00
  • d8104b2b49 Move cycles per update to a constant, for easy tweaking Paul Holden 2012-09-09 21:03:14 +01:00
  • dd98b6b821 Silence spammy DPC registers (Goldeneye) Paul Holden 2012-09-09 19:56:17 +01:00
  • 23b3d46ea4 Silence mapped_mem_handler.readS32. This means Goldeneye now boots, yay Paul Holden 2012-09-09 19:55:55 +01:00
  • c60d0b08bc Correctly check VI_WIDTH_REG when rendering display lists Paul Holden 2012-09-09 19:51:35 +01:00
  • 289d300e13 Implement GBI0 Tri4. Really need to refactor ucode stuff. Paul Holden 2012-09-09 19:50:53 +01:00
  • 50110847cb Fix some missing semicolons Paul Holden 2012-09-09 19:49:41 +01:00
  • a4f45286d4 Implement DDIV Paul Holden 2012-09-09 19:49:07 +01:00
  • e922310042 Fix some closure compiler errors Paul Holden 2012-09-09 17:47:37 +01:00
  • 126f567b0f Wave Race US vertex format Paul Holden 2012-09-08 21:37:09 +01:00
  • a94d119944 Call toggleRun() to reduce some duplication Paul Holden 2012-09-08 21:12:37 +01:00
  • d2423be85b rename _keyStr Paul Holden 2012-09-08 21:09:45 +01:00
  • 016ff5dcf9 Add mrdoob's stats.js Paul Holden 2012-09-08 20:39:06 +01:00
  • ad4a3840a7 Dynarec for cop1 branches Paul Holden 2012-09-08 19:06:18 +01:00
  • 6a7bffce86 Dynarec for CTC1/CFC1 Paul Holden 2012-09-08 18:11:48 +01:00
  • 777af7de93 Shuffle some functions around in n64.js Paul Holden 2012-09-08 15:11:12 +01:00
  • 0441319c7b Fix more jslint errors Paul Holden 2012-09-08 14:46:30 +01:00
  • 6ecc933e24 Fix missing break - thanks JSLint Paul Holden 2012-09-08 14:40:57 +01:00
  • f13ccece4f Avoid leading uppercase chars on functions Paul Holden 2012-09-08 13:58:24 +01:00
  • b0f6e4ec3d Move debugger code to separate file Paul Holden 2012-09-08 13:38:24 +01:00
  • a24a92d0ff Slightly nicer namespace init Paul Holden 2012-09-08 13:08:57 +01:00
  • fc6dd5a9d8 Fix lots of style errors Paul Holden 2012-09-08 12:29:12 +01:00
  • f79510473f Fix some warnings Paul Holden 2012-09-08 11:25:33 +01:00
  • 639ee08844 Move a ton of JS from index.html Paul Holden 2012-09-08 11:13:07 +01:00
  • 3c93ede431 needs_pc_test was woefully broken Paul Holden 2012-09-05 22:14:44 +01:00
  • c11d9c9659 Fix CACHE disassembly Paul Holden 2012-09-05 22:13:39 +01:00