sinamas
f1aa6de424
s/aamas@stud.ntnu.no/sinamas@users.sourceforge.net/
...
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@359 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-10-28 18:32:38 +00:00
sinamas
731d2736eb
get rid of cast, sizeof(type).
...
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@358 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-12 20:27:55 +00:00
sinamas
79813c3fcf
scope
...
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@357 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-12 20:27:12 +00:00
sinamas
1f08f30465
const
...
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@356 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-12 20:26:28 +00:00
sinamas
7ece5cc3e7
replace *const with [].
...
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@355 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-12 19:55:45 +00:00
sinamas
44b6913a3a
add cli option to show keyboard controls.
...
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@354 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-11 22:24:04 +00:00
sinamas
2f853289f8
break line.
...
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@353 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-11 22:23:19 +00:00
sinamas
778e4fe028
s/getStr/str. s/getChar/character.
...
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@352 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-11 22:22:31 +00:00
sinamas
5a8a9eabd0
s/getDesc/desc/
...
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@351 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-11 22:12:28 +00:00
sinamas
d9891dc87e
refactor.
...
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@350 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-11 22:10:58 +00:00
sinamas
d82de19da3
update and reformulate. s/-end/end/.
...
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@349 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-11 22:05:07 +00:00
sinamas
54d4846384
do not include cstdio. not needed anymore.
...
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@348 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-10 21:53:48 +00:00
sinamas
fe947301ee
print 'c'/'d' (cgb/dmg) for each test.
...
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@347 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-10 21:50:21 +00:00
sinamas
9db3603c9b
add game pak info method. do not print in libgambatte.
...
do print rom title and game pak info in qt/sdl ports.
add header checksum info.
add [bad] to qt window title if header checksum is bad.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@346 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-10 21:49:36 +00:00
sinamas
7fa1c33a94
return more informative load result.
...
don't print errors in libgambatte.
use error code string in ports for more informative error message.
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@345 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-10 21:46:38 +00:00
sinamas
505dce78e8
define OF if not defined.
...
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@344 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-06 19:32:43 +00:00
sinamas
0d5aaab62b
loadState: return success. based on patch from Robert Broglia.
...
git-svn-id: https://gambatte.svn.sourceforge.net/svnroot/gambatte@343 9dfb2916-2d38-0410-aef4-c5fe6c9ffc24
2012-09-04 20:10:11 +00:00
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