Commit Graph

478 Commits

Author SHA1 Message Date
Jeffrey Pfau cff77a3a81 Remove extraneous macros by adding a palette variable 2013-10-10 23:33:22 -07:00
Jeffrey Pfau e789b324dc Refactor BREAK_WINDOW into _breakWindow, fix bug cleaning up extra windows 2013-10-10 01:40:49 -07:00
Jeffrey Pfau 2ef64ede02 Basic tab-completion 2013-10-10 01:05:25 -07:00
Jeffrey Pfau 01d8569262 Remove reliance on linenoise 2013-10-10 00:29:41 -07:00
Jeffrey Pfau c19d1117f1 Add timings to CpuSet and CpuFastSet 2013-10-09 01:57:53 -07:00
Jeffrey Pfau 09a0f95ed4 Actually use GBATestIRQ 2013-10-09 01:56:59 -07:00
Jeffrey Pfau 6906df95e2 VCOUNT is not properly reset on wrap 2013-10-09 01:09:09 -07:00
Jeffrey Pfau c3a7d87214 Add missing variable 2013-10-09 00:44:44 -07:00
Jeffrey Pfau 9698531702 Clean up thread starting, stopping and sound 2013-10-09 00:44:31 -07:00
Jeffrey Pfau 2f9bcf63b7 Clean up audio sync code 2013-10-08 22:36:55 -07:00
Jeffrey Pfau 84ad94b85e Support loading BIOS 2013-10-08 22:36:19 -07:00
Jeffrey Pfau 68d85ab9b7 Implement VRAM load/store8 2013-10-08 21:43:43 -07:00
Jeffrey Pfau 3e3bb58ae5 Minor timing fixes 2013-10-08 02:10:43 -07:00
Jeffrey Pfau 40a0a0eb11 Fix reading 32-bit unaligned IO registers 2013-10-06 12:28:48 -07:00
Jeffrey Pfau 45501658b5 Sync to audio by default 2013-10-05 02:52:57 -07:00
Jeffrey Pfau 4ef6a70731 Refactor frame synchronization 2013-10-05 02:11:53 -07:00
Jeffrey Pfau 2f00e3d146 Don't trample audio buffer 2013-10-03 12:08:52 -07:00
Jeffrey Pfau 4a09d41aab Fix circle buffers 2013-10-03 01:25:51 -07:00
Jeffrey Pfau 0dd69e8273 Fix incorrect condition in FIFO sampling 2013-10-03 01:23:16 -07:00
Jeffrey Pfau da38027654 Add missing changes 2013-10-02 02:45:41 -07:00
Jeffrey Pfau ba0596da07 Hook up audio for DMA sound channels 2013-10-02 02:40:16 -07:00
Jeffrey Pfau a834f8b1f6 Sample FIFOs with sound DMA timer 2013-10-02 00:46:51 -07:00
Jeffrey Pfau 71ec6162f1 Fix circle buffer sizing 2013-10-02 00:46:19 -07:00
Jeffrey Pfau 09b4a4a29a Build up DMA channel audio infrastructure from GBA.js 2013-10-01 23:56:10 -07:00
Jeffrey Pfau 9bf6b571b1 Fix naming 2013-09-30 02:02:26 -07:00
Jeffrey Pfau f5bcb1eace Change log level to mask 2013-09-30 01:48:41 -07:00
Jeffrey Pfau aaaafb90a5 Add ability to get thread-specific GBA 2013-09-30 01:42:31 -07:00
Jeffrey Pfau be36c1b5d6 Clean up error handling a bit 2013-09-30 01:31:14 -07:00
Jeffrey Pfau 3439fa5bf4 Start audio 2013-09-30 01:23:58 -07:00
Jeffrey Pfau 25885e1e82 Invalid memory reads 2013-09-27 23:48:56 -07:00
Jeffrey Pfau 453fdac3fe Fix ArcTan2 2013-09-27 09:48:04 -07:00
Jeffrey Pfau f8341f2d20 Rotate 16-bit unaligned loads 2013-09-27 02:07:44 -07:00
Jeffrey Pfau f6e1e6e6d5 Fix OBJWIN for backgrounds 2013-09-26 17:12:46 -07:00
Jeffrey Pfau 07d3fbaceb Support 16-bit color again 2013-09-26 15:11:09 -07:00
Jeffrey Pfau 187e099f25 Fix sorting in _composite 2013-09-26 10:35:26 -07:00
Jeffrey Pfau a7182b8df9 Add watchpoints 2013-09-26 00:26:11 -07:00
Jeffrey Pfau 99769695d7 Fix ADCS C bit 2013-09-26 00:25:48 -07:00
Jeffrey Pfau 662feed390 Always go through pointers for load and store 2013-09-25 22:11:58 -07:00
Jeffrey Pfau fcdbbf2a43 Fix bank switch detection 2013-09-25 04:48:27 -07:00
Jeffrey Pfau 13a2289e25 Fix ADCS 2013-09-25 00:27:40 -07:00
Jeffrey Pfau a0505ee7d7 Pepper memory access functions with warnings 2013-09-24 23:10:51 -07:00
Jeffrey Pfau 1a3f28d2b0 Start implementing OBJWIN 2013-09-24 22:58:53 -07:00
Jeffrey Pfau cec9e67d88 Support flash game saves 2013-09-23 23:05:25 -07:00
Jeffrey Pfau abc89982be Windows on backdrop and blending with backdrop 2013-09-23 20:39:28 -07:00
Jeffrey Pfau 8132341b75 Support reading 8-bit values from palette RAM 2013-09-22 16:45:36 -07:00
Jeffrey Pfau 34ddb09516 Plumb through filename for proper saves 2013-09-22 16:45:19 -07:00
Jeffrey Pfau 388dbc0851 Fix window values where start >= max being broken 2013-09-22 15:14:14 -07:00
Jeffrey Pfau 2a6e7db693 Make GBALog actually use its log levels 2013-09-22 15:01:23 -07:00
Jeffrey Pfau e7622ed70f Fix tiles being shifted when adjusting outX 2013-09-22 11:15:52 -07:00
Jeffrey Pfau ddf078383a Fix buffer underrun in mode 0 rendering 2013-09-22 03:59:33 -07:00
Jeffrey Pfau 2ce017b555 Fix WIN0H writing with overlapping values 2013-09-22 03:00:43 -07:00
Jeffrey Pfau 4523777bee Fix initializing savegames when writing to disk fails 2013-09-22 02:13:03 -07:00
Jeffrey Pfau e80ab4c855 Make debugger optional 2013-09-21 18:10:13 -07:00
Jeffrey Pfau 9d10ca3f90 Move out int declarations for stricter parsers 2013-09-21 01:27:16 -07:00
Jeffrey Pfau 85e1c2d573 Exploit cache locality for slightly faster drawing 2013-08-03 01:15:08 -07:00
Jeffrey Pfau 6b86cdf9ef LDM should force-align loads 2013-07-31 01:59:00 -07:00
Jeffrey Pfau 3301cc9f97 Reuse code for splitting WIN0 for WIN1 2013-07-31 00:48:57 -07:00
Jeffrey Pfau d2f15f4af4 Window bounds enforced 2013-07-31 00:48:34 -07:00
Jeffrey Pfau 0939d5e2bc Fix WIN0 cases 2013-07-31 00:24:21 -07:00
Jeffrey Pfau 5a685558c7 Window respects y coordinate now 2013-07-30 21:39:25 -07:00
Jeffrey Pfau 453939fc8d Sloppy first implementation of windows 2013-07-29 03:33:22 -07:00
Jeffrey Pfau 7291fcfe9e Start windows 2013-07-29 01:46:09 -07:00
Jeffrey Pfau 27f5468e01 Writing for Window registers 2013-07-29 01:30:27 -07:00
Jeffrey Pfau 3f122dcf14 Fix 8-bit I/O writes 2013-07-29 01:30:06 -07:00
Jeffrey Pfau 15aa862d70 Small optimization for sprite drawing 2013-07-29 00:44:38 -07:00
Jeffrey Pfau 425056ca15 Ensure LDM does not write back incorrectly with register list overlaps 2013-07-27 03:02:52 -07:00
Jeffrey Pfau 9e578da5a1 Do register writeback in addressing mode 2 before actual load/store 2013-07-26 23:42:45 -07:00
Jeffrey Pfau 8b1eb01a96 Fix MUL, UMULL, UMLAL 2013-07-26 01:03:34 -07:00
Jeffrey Pfau 6321b1f827 Fix ARM_CARRY_FROM 2013-07-26 00:50:20 -07:00
Jeffrey Pfau 76cd712907 Fix modes 4 and 5 2013-07-26 00:10:33 -07:00
Jeffrey Pfau 3537099820 Fix sprites 64+ not drawing 2013-07-21 21:10:12 -07:00
Jeffrey Pfau 774b7d75bc Fix broken bitmap 2013-07-21 19:04:24 -07:00
Jeffrey Pfau 6829b54234 Bitmap of enabled sprites 2013-07-21 18:58:32 -07:00
Jeffrey Pfau edecf6c1f6 Minor optimization to backgroud mode 0 2013-07-21 18:56:45 -07:00
Jeffrey Pfau 8dc3fa9bec Use software renderer for EGL, just use it for uploading the texture 2013-07-21 05:15:02 -07:00
Jeffrey Pfau da7853bda6 Mode 5 2013-07-20 01:46:40 -07:00
Jeffrey Pfau 15a2e43b2b Fix read/write 0x0400020A 2013-07-20 01:40:17 -07:00
Jeffrey Pfau 02cb9c56c5 Reuse bitmap mode background code 2013-07-20 01:38:13 -07:00
Jeffrey Pfau 90ddf937a5 Implement modes 3 and 4 2013-07-19 21:51:14 -07:00
Jeffrey Pfau 1e4a82ef5b Update GBA BIOS from GBA.js 2013-07-18 02:14:22 -07:00
Jeffrey Pfau 6a1afbda50 8-bit write to IO 2013-07-18 02:13:49 -07:00
Jeffrey Pfau 8215afcee6 Decouple GLSL and GL mains 2013-07-17 23:31:19 -07:00
Jeffrey Pfau 49de0fb52e Different mains for SDL and EGL, supporting Raspberry Pi and BeagleBone Black 2013-05-29 21:18:25 -07:00
Jeffrey Pfau f8b0acd86a Fix tile mapping for 256-color sprites 2013-05-13 02:47:11 -07:00
Jeffrey Pfau c20efb42ff Clean up thread locking in the software renderer 2013-05-11 21:07:10 -07:00
Jeffrey Pfau 63b72657c1 Fix transformed sprites that are off the top of the screen 2013-05-11 18:36:35 -07:00
Jeffrey Pfau f7ddc3a2b6 Implement RLUnCompWram/RLUnCompVram 2013-05-11 18:22:23 -07:00
Jeffrey Pfau a6d87bbfb9 Better cycle counting for STR 2013-05-11 18:01:16 -07:00
Jeffrey Pfau b6361cdfa9 Start LDM/STM timings 2013-05-11 17:05:57 -07:00
Jeffrey Pfau 0a37300bcf Improve LDR/STR cycle counting 2013-05-11 14:55:29 -07:00
Jeffrey Pfau 013e322c0b Improved cycle counting for branches 2013-05-11 14:45:31 -07:00
Jeffrey Pfau f6592b17b8 Implement MUL timings 2013-05-11 14:35:10 -07:00
Jeffrey Pfau 5c31757912 Remove int operations and vectorize shader calculation 2013-05-08 21:10:32 -07:00
Jeffrey Pfau f246587a9d Add support for (my) joystick 2013-05-08 16:57:17 -07:00
Jeffrey Pfau 12e681392d Fragment shader now no longer requires extensions 2013-05-08 15:19:54 -07:00
Jeffrey Pfau 8047ce11d0 Fix off-by-one scanline 2013-05-07 22:22:35 -07:00
Jeffrey Pfau 5b5251434f Add background sizes to GLSL mode 0 2013-05-07 22:21:40 -07:00
Jeffrey Pfau f278805255 Fix x indexing into VRAM 2013-05-07 21:48:46 -07:00
Jeffrey Pfau 5388fb8cea Draw backdrop in GLSL renderer 2013-05-07 04:40:25 -07:00
Jeffrey Pfau 03fb87acd0 Continue implementing GLSL mode 0, now with layers and offsets 2013-05-07 04:11:49 -07:00