542 Commits

Author SHA1 Message Date
sinamas
c3c3aebada saveState: return success. based on patch from Robert Broglia.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@342 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-04 20:09:00 +00:00
sinamas
cb03e9c355 add saveSavedata method. based on patch from Robert Broglia.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@341 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-04 20:07:35 +00:00
sinamas
80a1dbc052 delete empty dir
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@340 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-04 18:55:46 +00:00
sinamas
61fb1b6f80 fix test name and cgb flag.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@339 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-02 14:31:10 +00:00
sinamas
8942777354 missing ds tests.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@338 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-02 14:18:34 +00:00
sinamas
025472b23b whitespace
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@337 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-02 12:29:18 +00:00
sinamas
12a10f63f2 better lyc trigger inhibition hypothesis with evidence.
unify and simplify lyc cmp code.


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@336 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-02 12:13:27 +00:00
sinamas
a92ae38c77 plug gaping hole in lyc99 flag read behavior.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@335 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-02 12:02:43 +00:00
sinamas
9f122d245d missing ds ly reg 99 read tests. longer 99 period when ds.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@334 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-02 11:54:31 +00:00
sinamas
5d469bd699 m0 irq inhibits lycirq trigger.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@333 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-08-23 16:27:55 +00:00
sinamas
ccf3bdd661 delete man pages
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@332 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-08-20 19:23:02 +00:00
sinamas
5a3c5ffd8f ppu: shave off 5 instructions in unrolled tile-draw inner loop on ARM (gcc)
help gcc fuse the shifts with the loads since it doesn't manage to fuse them with the ands.


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@331 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-29 18:55:19 +00:00
sinamas
e15b580b89 rgb32ToRgb16: save 1 instruction in inner-loop on ARM (gcc).
gcc is bad at folding shifts into ands (and probably other ops) with simple constants (it prefers using immediates, saving a register and reducing loop header).
help it fold shifts into the ors (non-constant, so gcc cannot pick the immediate version) instead.


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@330 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-29 10:21:12 +00:00
sinamas
fe440c47a4 rgb32ToRgb16: a bit tighter
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@329 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-28 12:36:30 +00:00
sinamas
0031cecc5f reorder fields for easier access on ARM
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@328 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-28 12:19:32 +00:00
sinamas
183bb261ff minkeeper: make updateValue function lut static
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@327 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-28 12:18:51 +00:00
sinamas
8d0bdf218f allocate vram on heap to reduce field offset sizes for easier access on ARM
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@326 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-26 22:12:41 +00:00
sinamas
eb3c455140 slight tweak for better generated asm (gcc)
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@325 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-26 22:10:11 +00:00
sinamas
f30e23cd0a tweak ppu unrolled code
- combine tileline with tileIndexSign to reduce number of varaibles referenced/spills in inner loop.
- replace loop counter with test for dstend to get rid of potential spill of rmw variable.
- special-case dmg bgoff to get constant twmask
- update tileMapXpos in a way that reduces number of temporaries needed (and avoids gcc x86 stack read+rmw sequence)


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@324 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-15 14:20:31 +00:00
sinamas
f926818370 somewhat tighter. keeps gcc 4.7 from generating crap on x86.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@323 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-13 15:56:55 +00:00
sinamas
f3d875e288 index resamplers with size_t rather than unsigned int.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@322 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-10 22:54:03 +00:00
sinamas
09b949005d linint: faster (not that it matters). support in_rate < out_rate.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@321 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-09 17:21:50 +00:00
sinamas
18d200aa86 less template bloat
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@320 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-08 15:39:27 +00:00
sinamas
5ef2f3e0c2 polyphase fir: handle two channels at a time
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@319 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-07 16:24:46 +00:00
sinamas
c137c648a1 tweak for better gcc asm output.
fewer regs needed/less spilling. reduce number of redundant loads/stores.


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@318 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-06 23:43:49 +00:00
sinamas
0b58c40c4b cic3: avoid crap gcc asm generation (x86)
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@317 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-06 16:50:32 +00:00
sinamas
9e23149baa combine setting of resampler with other audio parameters. avoids initing resampler twice on changes.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@316 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-04 18:12:45 +00:00
sinamas
a14a736f29 - compensate for cic gain < 1.0 by scaling up polyphase fir coefficients.
- avoid phase length < 4


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@315 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-07-04 18:10:14 +00:00
sinamas
406589594e re precise serial timing details. fixes faceball 2000 frame rate.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@314 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-02-26 14:54:54 +00:00
sinamas
2c9679d7bc more flexible and less confusing return type.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@313 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-02-01 23:41:52 +00:00
sinamas
4785515dac refactor ancient mbc code somewhat.
improve HuC1 hackjob.


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@312 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-01-26 20:16:06 +00:00
sinamas
2aa213f4d7 fix s/--Wl/-Wl/ gcc 4.6 build error.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@311 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-01-21 19:33:45 +00:00
sinamas
5c52567a68 - missing explicit.
- missing [].


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@310 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-19 16:53:57 +00:00
sinamas
5ea9d9afe1 saner order of argument evaluation. space.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@309 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-14 23:04:33 +00:00
sinamas
da98d8c5b6 mediaworker:
- delete dead code.
 - make magic pause constants not


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@308 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-14 19:39:43 +00:00
sinamas
60bfb8d6a5 testrunner:
- missing static
 - add clean script


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@307 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-14 19:37:45 +00:00
sinamas
ae91cda89f - enforce locking before getting.
- explicitly keep track of last now time to determine max delta.
- refactoring.


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@306 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-13 22:30:35 +00:00
sinamas
9118428047 - don't store unnecessary state.
- only reinit cconvert if pixelbuf valid


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@305 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-13 22:25:28 +00:00
sinamas
6cf03950c5 xvblitter: try grabbing all adapter ports before giving up.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@304 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-13 22:12:10 +00:00
sinamas
51c55ff068 - fix MBC regression caused by forgetting to re-add rambank bit mask when adding multicart support.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@303 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-12 14:34:34 +00:00
sinamas
ccfbd7617f - Don't call glTexSubImage2D in blit() because that tends to block on OS X (and quite possibly other implementations), use paged-flipped sw double buffer. I was actually a bit suprised that glTexSubImage2D appeared to be non-blocking on other platforms, which is why I didn't add the sw double buffering initially. This should fix OS X being less audio underrun-resistant than other platforms.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@302 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-10 23:51:58 +00:00
sinamas
95496be778 - macx build fixes for newer sdks.
- whitespace.


git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@301 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-10 23:32:56 +00:00
sinamas
f371e359df redirect some error printing from stdout to stderr.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@300 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-10 23:25:39 +00:00
sinamas
231fea8998 cast before printing with %u.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@299 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-10 23:16:31 +00:00
sinamas
4dfff22e1e nitpick refactoring
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@298 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-09 19:47:44 +00:00
sinamas
095c2aefbc - explicit constructor. uncopyable.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@297 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-07 22:30:05 +00:00
sinamas
a0b4f787b0 - explicit constructor.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@296 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-07 21:48:09 +00:00
sinamas
20199c537a - refactoring.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@295 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-07 21:34:50 +00:00
sinamas
13e1a2bac4 - add some guards to auto_vector::erase and auto_vector::pop_back.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@294 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-07 20:06:14 +00:00
sinamas
d89443695e - alsaengine: limit number of iterations of snd_pcm_writei loop.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@293 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2011-11-06 19:10:19 +00:00