Commit Graph

849 Commits

Author SHA1 Message Date
Jeffrey Pfau 2367abe67d Don't crash if no ROM is loaded 2014-07-17 02:55:13 -07:00
Jeffrey Pfau 74fcdf54e0 Fix reading more than a block but less than the rest of the file 2014-07-17 02:51:38 -07:00
Jeffrey Pfau 793a89d091 Fix seeking to end of file 2014-07-17 02:51:17 -07:00
Jeffrey Pfau d2272ba9ba Support reading from ZIPs 2014-07-17 02:45:17 -07:00
Jeffrey Pfau ee5c918ff2 Directory mode for loading the first ROM in a directory, still a bit buggy 2014-07-17 00:53:17 -07:00
Jeffrey Pfau 73425e80b5 Move VFile to vfs.h and add VDirs 2014-07-17 00:52:21 -07:00
Jeffrey Pfau 80c61379a0 Clean up GBAThread variables 2014-07-16 23:53:11 -07:00
Jeffrey Pfau e53135a7b9 Clean up command line args 2014-07-16 23:47:47 -07:00
Jeffrey Pfau 6519fad652 Fix some signatures 2014-07-16 03:02:16 -07:00
Jeffrey Pfau 42484bbcc3 Allow save file to be specified externally 2014-07-16 02:57:04 -07:00
Jeffrey Pfau 7bb5e29a98 Now that mapping is done through a different code path, we can properly allocate large memory chunks on Windows 2014-07-16 02:20:29 -07:00
Jeffrey Pfau 0584c19229 Remove declaration for unimplemented function 2014-07-16 02:09:19 -07:00
Jeffrey Pfau f1f55cea47 Use VFiles for all file operations 2014-07-16 02:08:54 -07:00
Jeffrey Pfau 377d8e60a7 VFiles for abstract file operations, used at first in patches 2014-07-16 01:31:10 -07:00
Jeffrey Pfau d8654f3b88 Use stdbool for readability 2014-07-16 01:02:34 -07:00
Jeffrey Pfau fce2fb9252 Move flags and masks into defines to avoid making enums with values that are too large 2014-07-15 23:38:44 -07:00
Jeffrey Pfau e89a705419 Revise macros for stricter C99 conformance 2014-07-15 23:30:55 -07:00
Jeffrey Pfau 6716b13621 Ability to reset emulator while running 2014-07-15 00:01:35 -07:00
Jeffrey Pfau 939c349533 Slightly more accurate waitstate emulation 2014-07-13 22:21:37 -07:00
Jeffrey Pfau 94438e141e Only assemble NEON code when NEON is enabled 2014-07-13 18:32:10 -07:00
Jeffrey Pfau 0b9d6e03f1 Support 5_6_5 in SDL/GL port 2014-07-13 18:31:28 -07:00
Jeffrey Pfau ca23c47aeb Add missing include 2014-07-13 05:47:16 -07:00
Jeffrey Pfau 5958d8c0da Fix missing value for divide precedence 2014-07-12 18:41:11 -07:00
Jeffrey Pfau 4638e4a017 Add parenthesis support 2014-07-12 17:58:03 -07:00
Jeffrey Pfau a58f8f8675 Support identifiers 2014-07-12 17:25:51 -07:00
Jeffrey Pfau b89d6216ac Free identifiers 2014-07-12 17:13:58 -07:00
Jeffrey Pfau ce1dd4416f Proper parser, without identifier support currently 2014-07-12 17:12:35 -07:00
Jeffrey Pfau f71edb1684 Parse expressions in a separate function 2014-07-12 14:50:09 -07:00
Jeffrey Pfau f74815988b Remove redundant includes 2014-07-12 04:43:41 -07:00
Jeffrey Pfau 5b7da978d1 Remove project name strings from the code 2014-07-12 04:29:12 -07:00
Jeffrey Pfau 8f151ec90f DebugVectors should inherit failure 2014-07-12 04:12:04 -07:00
Jeffrey Pfau 903f384e05 Operations on numbers in CLI debugger 2014-07-12 04:04:15 -07:00
Jeffrey Pfau 5b7a551ed8 Add disassemble CLI debugger command 2014-07-12 03:36:04 -07:00
Jeffrey Pfau aefa5f0ab8 Merge branch 'decoder'
Conflicts:
	src/debugger/cli-debugger.c
2014-07-12 00:40:40 -07:00
Jeffrey Pfau 3261dd482c Fix should-be-zero operands being listed 2014-07-12 00:39:05 -07:00
Jeffrey Pfau b41e11d4c1 Decode MSR and MRS 2014-07-12 00:29:00 -07:00
Jeffrey Pfau a2eec31632 Show s flag for ARM instructions 2014-07-12 00:13:11 -07:00
Jeffrey Pfau d245eb3f88 Remove leftover code 2014-07-11 23:52:17 -07:00
Jeffrey Pfau 027a6f129c Fix ordering of flags and condition 2014-07-11 23:31:46 -07:00
Jeffrey Pfau a09d8649ee Begin work on ARM disassembler 2014-07-11 03:50:29 -07:00
Jeffrey Pfau ba4874f8b7 Cleaning up writeback and add some TODOs 2014-07-11 03:19:02 -07:00
Jeffrey Pfau 874f23fc59 Add mnemonics and fourth operand for ARM 2014-07-11 01:28:02 -07:00
Jeffrey Pfau 2b0dccb243 Fold direction into memory format 2014-07-11 01:27:32 -07:00
Jeffrey Pfau 45c6299b3b Fix decoding Thumb TST 2014-07-11 01:26:57 -07:00
Jeffrey Pfau 2921ba8842 Split ARM emitters into own file 2014-07-10 23:21:28 -07:00
Jeffrey Pfau fde2107a6b Fix disassembler memory boundary conditions 2014-07-10 03:31:24 -07:00
Jeffrey Pfau 64cc5ada86 Merge Thumb mnemonics into ARM mnemonics in preparation for ARM decoder 2014-07-10 03:30:59 -07:00
Jeffrey Pfau a22c89fedb Remove notion of special register 2014-07-10 02:33:16 -07:00
Jeffrey Pfau 6c1476403e Reorder log levels so more important ones have lower numbers 2014-07-10 01:12:25 -07:00
Jeffrey Pfau b810e38bd7 Fix a compiler warning in SIO code 2014-07-10 01:05:28 -07:00
Jeffrey Pfau d56dec79e7 Fix function prototype for GBAThreadInterrupt 2014-07-10 01:03:02 -07:00
Jeffrey Pfau c2fc2dbac3 Remove unused variable 2014-07-10 01:02:13 -07:00
Jeffrey Pfau 55977796f3 Move UNUSED macro to common.h 2014-07-10 01:00:38 -07:00
Jeffrey Pfau 0a48d4cc2f Draw a polygon every frame, even when paused, to make sure screen is not stale (fixes #87) 2014-07-09 23:18:34 -07:00
Jeffrey Pfau 87913a4c33 Add missing return statement 2014-07-09 23:17:51 -07:00
Jeffrey Pfau 642cbf3429 Hopefully fix edge cases for windows for real this time (fixes #88) 2014-07-09 23:09:28 -07:00
Jeffrey Pfau b762ce41a0 Only take slow mosaic path when mosiac is actually in play 2014-07-09 23:01:03 -07:00
Jeffrey Pfau e6863a6cc5 Fix mosaic drawing of 256-color mirrored background tiles 2014-07-09 22:49:05 -07:00
Jeffrey Pfau c3136b914e Fix sampling order of sound channel 3 2014-07-09 03:53:23 -07:00
Jeffrey Pfau 3e827c24a8 Fix 8-bit IO writes on SOUND3CNT_X 2014-07-09 03:53:23 -07:00
Jeffrey Pfau 78bd884a05 Fix setting window sizes to 0xFFFF from actually making a window 2014-07-09 03:53:23 -07:00
Jeffrey Pfau 3ee3f7625f Link with SDL2_LIBDIR if necessary 2014-07-09 01:46:40 -07:00
Jeffrey Pfau f1b4e7039f Fix sprites whose tiles go out of bounds 2014-07-09 01:32:02 -07:00
Jeffrey Pfau 79cfc4fd0a Make GBAThreadInterrupt work properly with paused threads again 2014-07-09 00:36:04 -07:00
Jeffrey Pfau ecee71cfa1 Resizing of SDL2 windows 2014-07-09 00:03:05 -07:00
Jeffrey Pfau 548793e551 Remove audio processing loop now that there is an event processing loop 2014-07-08 22:00:53 -07:00
Jeffrey Pfau 83e16d56c0 Fix a case where deserializing the FIFO may not restore up to three bytes 2014-07-08 21:56:03 -07:00
Jeffrey Pfau a62a932282 Ensure interrupting the GBA thread actually gets to a safe point to read from the thread 2014-07-08 00:04:38 -07:00
Jeffrey Pfau 8c9790bb3b Add audio FIFOs to savestates 2014-07-08 00:02:39 -07:00
Jeffrey Pfau 6bf0e704d2 Allow for savestates to be loaded between BIOS versions so long as they aren't in BIOS code 2014-07-07 22:59:24 -07:00
Jeffrey Pfau ea656f188e Remove out-of-date TODO 2014-07-07 03:00:58 -07:00
Jeffrey Pfau a450b0470a UPS patch loading support 2014-07-07 01:54:40 -07:00
Jeffrey Pfau f420232bbf IPS patch loading support 2014-07-06 23:39:27 -07:00
Jeffrey Pfau a6c8089601 Add read watchpoints (fixes #69) 2014-07-05 22:30:20 -07:00
Jeffrey Pfau 28ba251cfb Fix some warnings 2014-07-05 16:29:31 -07:00
Jeffrey Pfau ced5220975 Out of bounds start coordinates are treated as 0 for windows (fixes #82) 2014-07-05 14:40:15 -07:00
Jeffrey Pfau 7142a0f820 Fix WININ priority trampling over the active windows (fixes #75) 2014-07-05 14:34:10 -07:00
Jeffrey Pfau ae12dd907c Reduce the code size of division by zero a bit 2014-07-05 13:55:36 -07:00
Jeffrey Pfau 2fd9ab1197 Emulate division by zero edge cases (fixes #80) 2014-07-05 05:19:58 -07:00
Jeffrey Pfau 26c33b18e1 Properly do bounds checking in CpuSet and CpuFastSet (fixes #81) 2014-07-05 03:52:07 -07:00
Jeffrey Pfau 34145543f2 Remove redundant checks that are in the BIOS code already 2014-07-05 01:03:04 -07:00
Jeffrey Pfau dea143829a Prevent lr from being trampled in the middle of long-running CpuSet 2014-07-05 01:01:29 -07:00
Jeffrey Pfau 107f91aac8 Fix typo in documentation 2014-07-05 00:13:54 -07:00
Jeffrey Pfau 678c5465ff Add (currently undocumented) command line flag for setting logging level 2014-07-04 18:43:07 -07:00
Jeffrey Pfau 80d1764e6c Save some registers we were overwriting in IntrWait 2014-07-04 18:41:13 -07:00
Jeffrey Pfau d6a28c8a6e Log SWIs in debug 2014-07-04 18:17:34 -07:00
Jeffrey Pfau 599537a41b Fix and optimize CpuSet and CpuFastSet a bit 2014-07-04 17:48:38 -07:00
Jeffrey Pfau fde6515a56 Implement CpuSet/CpuFastSet in assembly (fixes #31 and #76) 2014-07-03 03:51:53 -07:00
Jeffrey Pfau e5245b6cbb Reset timers when enabling them (fixes #78) 2014-07-02 00:48:20 -07:00
Jeffrey Pfau 2693f9d09b Implement high VRAM mirroring for writes 2014-07-01 00:26:57 -07:00
Jeffrey Pfau a7eced1324 Fix stub debugger entering 2014-04-26 18:25:45 -07:00
Jeffrey Pfau 12e5425b9b Use subparsers instead of stuffing everything into one parser 2014-04-26 16:05:09 -07:00
Jeffrey Pfau 6ca25e44aa Add some NEON resizing code 2014-04-26 03:31:53 -07:00
Jeffrey Pfau 6e32ade69e Clear alpha channel in fragment shader (fixes #51) 2014-04-25 23:48:51 -07:00
Jeffrey Pfau 084f0f037e Fix fullscreen initialization 2014-04-25 21:33:07 -07:00
Jeffrey Pfau 0386d41b40 Add option of not using GL 2014-04-25 03:34:21 -07:00
Jeffrey Pfau 7e90eb2631 Start porting sw-main to SDL2 2014-04-25 03:34:03 -07:00
Jeffrey Pfau 82f3a45888 Build fix in case no debuggers are being built 2014-04-23 21:50:26 -07:00
Jeffrey Pfau 64e8d3fb83 Fix GBDStub build on Windows 2014-04-23 21:42:08 -07:00
Jeffrey Pfau 16608a408c Bring sw-main into line 2014-04-23 02:09:27 -07:00