Commit Graph

74 Commits

Author SHA1 Message Date
Rob McMullen
f657df18a2 Fixed some missing THREADED_65C02 #defines
* allows single-threaded operation
2018-01-15 22:39:25 -08:00
Shamus Hammons
01d41f5b9d Improvements to timing, disk selector; added Double LoRes.
Having taken a good look at "Understanding the Apple IIe", I've fixed
the timing of one frame now that I know how much time it's supposed to
take. Also added the ability to recurse into subdirectories of the disks
directory, and the ability to page through the disk list when there are
more than three columns of disks. Another thing I did not know about was
Double LoRes, that has been added as well; also, did not know that the
video bus appeared at memory mapped locations that weren't attached to
anything. This quirk is now properly emulated.
2017-06-21 22:57:57 -05:00
Shamus Hammons
47b408908d Add key delay to keyboard handler, mouse hiding when mouse is idle. 2017-06-06 07:42:55 -05:00
Shamus Hammons
978531c95e Fixed keyboard handling, consolidated video handling.
The keyboard handler now properly emulates the //e's 2-key rollover.
However, we might have to add in a key repeat delay if it makes it so
that you can't type on the console anymore. This had to be done because
SDL will throw in key delay if you rely on it's SDL_KEYDOWN message and
this caused many games with keyboard input to be unplayable. Also, we
consolidated the video handling files, as there was very little in
video.cpp and so we moved it into applevideo.cpp and renamed that file
to video.cpp. Things are a lot cleaner as a result of this merge. :-)
2017-06-04 22:28:52 -05:00
Shamus Hammons
717eaa2219 Miscellaneous minor code cleanup. 2017-06-01 21:42:15 -05:00
Shamus Hammons
721ead373f Misc. cleanups, incl. cleanup up Makefile. 2017-05-17 23:17:17 -05:00
Shamus Hammons
19a4e08f92 Moved open/closed apple keys to L/R ALT keys. 2014-04-02 14:56:21 -05:00
Shamus Hammons
b6f06c7cba Added state save/load support. 2014-04-02 13:00:00 -05:00
Shamus Hammons
92c6ae00ea Added application icon. 2014-04-01 11:33:48 -05:00
Shamus Hammons
1e6f6a0ca5 Fixed stupid lockup bug on exit when emulation paused/off. 2014-04-01 08:47:16 -05:00
Shamus Hammons
df2889bf95 Fixed Apple power state to pause CPU thread immediately. 2014-03-31 13:59:37 -05:00
Shamus Hammons
452bb36844 Added disk selection functionality, fixed power cycle bug. 2014-03-30 13:07:30 -05:00
Shamus Hammons
b64a9cc3bb Added new config icon. 2014-03-28 15:31:42 -05:00
Shamus Hammons
a8452367a7 Connected POWER function to GUI. 2014-03-27 12:46:00 -05:00
Shamus Hammons
e9d839da6b Fixed extra parenthesis in gui.cpp. :-P 2014-03-26 17:44:47 -05:00
Shamus Hammons
0574860ec5 Fixed cross-compilation, added more GUI glue. 2014-03-26 08:05:47 -05:00
Shamus Hammons
c7beef2408 Removed GUI cruft, added 10 & 12pt fonts. 2014-03-25 10:45:09 -05:00
Shamus Hammons
63741c0714 Removed unnecessary cruft from project. 2014-03-03 10:27:20 -06:00
Shamus Hammons
b8c7736999 Added missing files. :-P 2013-12-16 19:27:51 -06:00
Shamus Hammons
7383e5b1bd Update to website. 2013-12-07 16:54:25 -06:00
Shamus Hammons
fdf4ecdaf3 Added website. 2013-12-07 16:06:55 -06:00
Shamus Hammons
8789953718 Disk names now display in window, still lots to do. 2013-10-13 21:00:17 -05:00
Shamus Hammons
bcfe62d754 Beginnings of disk image selector. 2013-10-13 15:22:19 -05:00
Shamus Hammons
433e43d75b Added icons that should have gone in last commit. :-P 2013-10-11 22:14:22 -05:00
Shamus Hammons
45a10d9266 Added updating floppy icons. 2013-10-11 22:13:08 -05:00
Shamus Hammons
dd5438d5a6 Added MXE cross compile script. 2013-10-11 15:10:47 -05:00
Shamus Hammons
a29f1654b4 Added icon selector. 2013-10-09 22:21:44 -05:00
Shamus Hammons
322d3ce728 Further along with icon bar, added new icons (programmer art :-P). 2013-10-08 21:01:09 -05:00
Shamus Hammons
d61fc97ee4 Start of new built-in GUI.
The idea is to present icons for the most commonly used functions that
will pop up on the screen when moused over, then go away once the mouse
is not over them anymore. Hopefully this will actually be usable, unlike
the previous clusterfuck that I attempted. It was a good idea, but SDL
just wasn't up to the heavy lifting required.
2013-10-08 16:55:07 -05:00
Shamus Hammons
f36d026c7b Added floppy #2 saving, statistics to makefile. 2013-10-06 12:17:38 -05:00
Shamus Hammons
6b21449d90 Added Prodos detection for .dsk images, fixes to 80STORE switch. 2013-09-29 15:57:45 -05:00
Shamus Hammons
3a8c0287e8 Created new MMU based code for R/W handling. Should be much faster now. 2013-09-28 18:15:54 -05:00
Shamus Hammons
aec4f863c3 Added VBL, fixed sound-on-write, added .bin disk support. 2013-09-24 09:09:40 -05:00
Shamus Hammons
c0001155bc Fixed misc. bugs preventing certain games from working, added pause mode.
There was one bug that went undetected in the v65C02 core (in STX ZP,Y)
and another in the 80STORE handling (80STORE doesn't affect reading).
Also added a pause mode (bound to the Pause key), for those times when
you need to walk away from the emulation for a bit.
2013-09-23 11:05:10 -05:00
Shamus Hammons
3107275cfe Fixed double hires to have correct colors; fixed LC alt bank access. 2013-09-18 21:32:56 -05:00
Shamus Hammons
ebcadf2555 Fixes to make emulator //e compatible; display can do double hires now. 2013-09-18 19:03:09 -05:00
Shamus Hammons
cf5ff906a6 Fixed problem with frames running ahead of the sound thread.
This involved fixing V65C02 (by subtracting out cycle overruns) and fixing
the main thread callback wait loop. As someone once said, "Threading is
hard." :-P
2013-09-11 17:33:54 -05:00
Shamus Hammons
a2e007c1e0 Convert sound driving method to direct sampling.
Before it was doing some complex timestamp thing, now it simple runs the
CPU for ~21 cycles and then stuff the sample into the sound buffer.
Sound still lags behind by several frames though, just like with the
previous sound setup. Still not sure why. :-/
2013-09-11 10:00:36 -05:00
Shamus Hammons
f67224d89f Fixed log hangup on exit, added paddle buttons 0 & 1. 2013-09-09 22:22:49 -05:00
Shamus Hammons
c48ed86a36 Prevent aborting when the log file fills up; added CTRL key support. 2013-09-09 07:59:51 -05:00
Shamus Hammons
c0bc82a632 Converted to SDL 2, added fullscreen toggle. 2013-09-08 21:18:23 -05:00
Shamus Hammons
5ad8269882 Minor fixes. 2011-10-31 15:43:49 +00:00
Shamus Hammons
d0de183d57 Added miscellaneous warnings, minor documentation 2009-07-09 01:37:07 +00:00
Shamus Hammons
93bb51e24c Fixes to threaded programming model (prevent lockups on exit) 2009-02-24 15:32:01 +00:00
Shamus Hammons
941e583fe0 Added proper locking of conditional variable mutex 2009-02-16 16:26:02 +00:00
Shamus Hammons
d0e4cf72ab Changes to sound system relating to the new threaded CPU core. It works,
mostly, but still plays back too fast. Dunno why. :-/
2009-02-16 16:22:33 +00:00
Shamus Hammons
71981eae69 Initial attempt at multithreaded implementation: CPU is now in its own thread. 2009-02-11 05:12:55 +00:00
Shamus Hammons
b2f84b0582 Changed clock on v65C02 to 64-bit, more GUI refactoring 2009-02-06 04:25:53 +00:00
Shamus Hammons
a3edd96756 Added infrastructure to handle write protecting floppy disks 2009-02-04 14:19:00 +00:00
Shamus Hammons
929f7efdea Add new files that makes this stuff work. D'oh! 2009-02-03 05:31:22 +00:00