Commit Graph

2906 Commits

Author SHA1 Message Date
stephena 08649b2069 Implemented move semantics and initializer list for Array class.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3046 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-06 23:27:01 +00:00
stephena 5bc3737a2b Updated OSX project file for SharedPtr changes.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3045 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-05 23:26:43 +00:00
stephena affd95d94e Removed home-grown sharedptr class for the real thing.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3044 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-05 15:56:27 +00:00
stephena 0ebe8d3f57 Updated OSX project file for NullDev class removal.
Now that 10.7 is the minimum supported version for OSX, we can
also move to 64bit-only binaries.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3043 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-05 01:39:26 +00:00
stephena 73badae2d0 OK, this is the last commit about pointers for the CompuMate stuff.
Again, still learning the best way to use C++11 here.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3042 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-04 23:26:23 +00:00
stephena 51737b9720 Still learning the difference between shared and unique pointers.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3041 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-04 22:03:40 +00:00
stephena 829d049385 Updated Visual Studio for removal of NullDev class.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3040 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-04 01:06:04 +00:00
stephena 7e25d13b13 OK, this is the last pointer change for Console; the d'tor is now empty.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3039 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-04 00:52:00 +00:00
stephena a48c4fc6a8 A slight restructuring of the Controller classes, to fix CompuMate
support broken in rev 3034.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3038 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-04 00:34:56 +00:00
stephena 03f760cceb A few more nullptr and unique_ptr fixes.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3037 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-03 17:36:28 +00:00
stephena 3949101fb7 Some 'nullptr' updates to Cart classes.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3036 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-03 17:16:43 +00:00
stephena 6f5c5b2df5 Integrated NullDevice into one header file.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3035 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-03 16:39:26 +00:00
stephena 5dbb2e4261 More pointer rearrangment for Console class.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3034 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-03 16:24:05 +00:00
stephena a21f3be6e4 Turned variable into static constant in M6502, since it has never changed
since Stella was created.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3033 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-03 13:22:57 +00:00
stephena 49bc759bee The OSX build now works for C++11. From this point on,
OSX 10.7 is the minimum version supported.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3032 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-03 00:03:33 +00:00
stephena 79ada8685c The long march to converting Stella to C++11 has finally started. Already,
I've found and fixed a few memory leaks.  You will need an up-to-date compiler.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3031 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-02 23:40:20 +00:00
stephena bd1a391eb3 Fix warning in VC++.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3030 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-02 23:02:02 +00:00
stephena c0ac9f7067 Bumped version # for next cycle.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3029 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-11-02 16:43:43 +00:00
stephena 3e358b9e39 Oops, forgot to actually exclude a block of code for OSX.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3028 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-28 17:35:43 +00:00
stephena 877f2c9f3c Final updates for 4.2 release.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3026 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-28 16:44:18 +00:00
stephena 27e005d7a5 Final batch of fixes from cppcheck.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3024 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-27 14:41:46 +00:00
stephena bb7f5e0c5c Updated OSX project; removed Random.cxx.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3023 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-26 20:49:01 +00:00
stephena fc3e90282e Updated Visual Studio project file; removed Random.cxx.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3022 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-26 20:32:40 +00:00
stephena d891357cad More cleanups from cppcheck.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3021 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-26 19:51:02 +00:00
stephena bc1308db23 Some small issues detected by 'cppcheck'. There looks to be quite a
few more ...


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3020 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-26 18:46:17 +00:00
stephena 958d8940fc Pass OSystem and DialogContainer as reference instead of pointer in
all GUI classes.  This makes sense, since the underlying classes
were returning them as references anyway.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3019 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-26 17:45:42 +00:00
stephena 09912c689b A few more pointer to reference conversions.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3018 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-26 16:19:58 +00:00
stephena af33538d5a Some cleanup of the Random class, and converting several classes
in emucore to use references instead of pointers.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3017 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-26 15:54:02 +00:00
stephena 1a09d37d1b Speed up accesses to System by using constants. It's fine to make
a class more generic, but when it's never used, all it does it slow
things down.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3016 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-26 00:40:27 +00:00
stephena ba926bc4f6 Made some more methods const.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3015 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-25 20:14:09 +00:00
stephena 6d753fd335 CPU registers can be selectively randomized with cpurandom option.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3014 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-23 15:52:39 +00:00
stephena 4de4fc5152 It appears that Linux sometimes needs the app-icon after all.
So we disable it only for OSX.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3013 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-22 16:26:52 +00:00
stephena ebf44d2631 A few more const and method cleanups.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3012 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-22 14:54:25 +00:00
stephena 920dcdb8a5 More const cleanups.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3011 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-21 23:02:20 +00:00
stephena f8be548312 Fixed bug in initial size for the debugger; it would sometimes try to use a size larger
than the desktop.

Some code cleanups; add const and optimize some methods.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3010 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-21 22:12:50 +00:00
stephena 42dec8321d Changed debugger shortcuts to Control-combos to match the old
Alt-comboes, as these are easier to remember than function keys.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3009 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-19 14:55:48 +00:00
stephena fe1713ee87 Fixed some warning that showed up in gcc but not clang++, and vice
versa (I guess it's useful to test under multiple compilers).

Bumped version # for next test release.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3008 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-18 15:57:03 +00:00
stephena 2d9eb76510 Updated OSX app icon to include 32x32 and 16x16 versions. Still TODO is
add 256x256 and 512x512 versions (I'll need help with this one, since it
requires artistic skills which I definitely don't have :) )


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3007 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-17 14:30:55 +00:00
stephena 964e1d7d88 Text input is all parts of the UI will now use the users own
keyboard layout.  This means that non-US layouts can finally
enter (ASCII-only) text with Alt-Gr key-combos.  Because of these
changes, the global debugger keys for rewind/step/trace/scan+1/frame+1
are now the function keys F4 to F8, respectively.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3006 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-17 14:02:53 +00:00
stephena 537eef7384 'cpurandom' includes the SP register, and is now turned off by default.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3005 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-13 23:59:49 +00:00
stephena 7247f64b8d Updated OSX project file for recent joystick changes.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3004 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-13 23:44:51 +00:00
stephena cb78339693 Added missing class to Visual Studio for recent joystick changes.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3003 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-13 23:36:35 +00:00
stephena c21220ce2c Joysticks are now detected dynamically, meaning that they can be added/removed
while the emulator is running.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3002 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-13 22:37:15 +00:00
stephena 5959f69405 MDM scheme now uses hotspots from $800-$BFF instead of $800-$FFF.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3001 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-10-01 22:36:15 +00:00
stephena ab2e086fe0 Minor cleanup of d'tor in various classes, removing d'tors with no
implementation, and using virtual d'tor only when absolutely necessary.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3000 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-09-29 20:39:28 +00:00
stephena 33047a286b MDM now triggers a bankswitch on hotspot writes, which was
actually in the original spec.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2999 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-09-29 19:34:24 +00:00
stephena 0df666bb6e And work continues in trunk ...
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2998 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-09-14 20:25:50 +00:00
stephena 9ac1244706 Updates for 4.1.1 release.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2995 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-09-14 19:58:37 +00:00
stephena 3108b7a696 Fixed beeping when using the debugger in Windows. It was due to a bug
in SDL2 that was fixed in SDL1 but wasn't ported over.  For now I will
included a patched SDL2.dll; eventually it will be integrated into SDL2
properly.


git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2993 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-09-07 21:50:35 +00:00
stephena 56d84a3c04 Fixed some dead code warnings generated by llvm scan-build.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@2992 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
2014-09-06 00:33:17 +00:00