Commit graph

464 commits

Author SHA1 Message Date
Andrea Odetti
a8057a5850 Add hack to make the mouse (barely) usable with geos.
SDL_CaptureMouse() seems to be the only solution.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-06-04 18:48:02 +01:00
Andrea Odetti
8d07bb1506 Fix for https://github.com/tomcw/mb-audit
Update MB (and disk and speaker) in smaller batches.
1 ms like AppleWin.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-06-03 11:51:12 +01:00
Andrea Odetti
dcae60dede Update ImGui.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-06-01 17:25:49 +01:00
Andrea Odetti
46333f06e7 Add filename to the tape info.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-30 20:25:34 +01:00
Andrea Odetti
4adde75a13 Tidy up cassette code.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-30 19:57:27 +01:00
Andrea Odetti
e2634210ca Fix various warnings.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-29 21:50:33 +01:00
Andrea Odetti
01c5c91fbd Update QHexView.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-29 21:26:08 +01:00
Andrea Odetti
8d26fdb2b8 Update ImGui.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-29 21:25:06 +01:00
Andrea Odetti
a8c41b79fb Move FPS to the About window.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-29 18:22:10 +01:00
Andrea Odetti
2d60d802a2 Normalise paths.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-29 18:21:44 +01:00
Andrea Odetti
dfae404334 Fix option parsing.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-29 06:53:57 +01:00
Andrea Odetti
cfab12cd6f Fix compilation with gcc 8.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-29 06:53:42 +01:00
Andrea Odetti
9b3a3e7913 Debugger: add ability to reset cycles in the debugger.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-28 19:25:29 +01:00
Andrea Odetti
825cb59e62 Since a DialogBox stops the emulator, we need to reset the speed.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-28 19:23:51 +01:00
Andrea Odetti
83ab755144 Expose setting for Enhanced Speed.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-28 19:14:28 +01:00
Andrea Odetti
db2f9be009 sa2: add some logic to implement Full Speed.
Because we run a frame at a time, this is a bit different than in AppleWin.
Run up to 5 extra frames.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-28 19:07:58 +01:00
Andrea Odetti
96e3f37b76 Add support for Cassette Tapes.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-28 18:10:09 +01:00
Andrea Odetti
a059fad539 Add support for custom ROMs.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-27 13:40:57 +01:00
Andrea Odetti
1c94fd7150 Debugger: add registers & flags.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-27 11:33:07 +01:00
Andrea Odetti
d8ebc8dc9f Add cycle information to the Disassembly output.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-26 17:48:44 +01:00
Andrea Odetti
5c96069a3f Set g_sProgramDir so symbols can be found. 2021-05-26 17:12:19 +01:00
Andrea Odetti
919fe84cfe QEMU - Fedora 34. SDL_GL_SwapInterval always fails.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-24 16:35:37 +01:00
Andrea Odetti
bde3eb92b0 Improve symmetry of Constructor/Destructor functions.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-24 09:22:01 +01:00
Andrea Odetti
7b09bacb01 Initialisation: some fixes.
Ensure log file is created before it is used the first time.
Only close the log file once at the end.

https://github.com/audetto/AppleWin/issues/30

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-23 20:06:36 +01:00
Andrea Odetti
09da101cbb FileRegistry: fix problem with conf file not created.
https://github.com/audetto/AppleWin/issues/30

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-23 20:04:59 +01:00
Andrea Odetti
9af407a089 Add support to copy text to clipboard.
Fix \n handling in paste from clipboard.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-22 17:55:51 +01:00
Andrea Odetti
16c70e4cde Fix https://github.com/audetto/AppleWin/issues/29
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-22 15:23:25 +01:00
Andrea Odetti
8a14c7e974 Minor tfe interface change.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-20 11:57:44 +01:00
Andrea Odetti
283a74d7e7 Separate dropped file processing.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-19 11:22:08 +01:00
Andrea Odetti
1ac7710b07 Fix bug about debuggerCommand().
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-18 21:05:14 +01:00
Andrea Odetti
b65e67ed67 Ensure adaptive speed is reset before a (potential) restart.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-18 18:56:37 +01:00
Andrea Odetti
54403f74c6 Ensure the speed is reset every time the mode might change.
So we avoid that the next adaptive clock is way off.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-17 20:19:58 +01:00
Andrea Odetti
6753e62abd Allow compilation to work without libslirp (not available on Pi).
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-17 19:26:11 +01:00
Andrea Odetti
8d21b68af0 Better support for Debugger.
Add ability to set breakpoints with mouse.


Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-16 18:53:38 +01:00
Andrea Odetti
329c19c8d9 Handle MODE_DEBUG in main loop.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-16 18:44:16 +01:00
Andrea Odetti
9d4f293a3c More Debugger related work.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-15 13:32:34 +01:00
Andrea Odetti
8ab76a9235 Update ImGui.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-12 16:00:24 +01:00
Andrea Odetti
8852154a6d Debugger: add ability to type in location of reference address.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-12 15:57:35 +01:00
Andrea Odetti
c01487d0f4 Debugger: minor format improvements.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-12 15:33:14 +01:00
Andrea Odetti
1f14d06790 Keyboard: rationalise logging.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-12 14:00:21 +01:00
Andrea Odetti
87f232d990 Shift-Insert to paste from clipboard.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-09 19:44:28 +01:00
Andrea Odetti
22a9c64010 Uthernet 2: add settings.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-05 15:56:10 +01:00
Andrea Odetti
80222caa0d Comments about Uthernet II.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-05-01 19:42:54 +01:00
Andrea Odetti
df0d6bdb95 Uthernet 2: new implementation based on libslirp which does not require extra capabilities.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-30 20:10:30 +01:00
Andrea Odetti
1c9beb246b Uthernet2: move to separate folder.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-28 20:32:01 +01:00
Andrea Odetti
e3c4fe6ebf Fix segfault when selecting a different iface.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-23 20:09:00 +01:00
Andrea Odetti
5dd8e39787 Add support for the Uthernet 2 card.
Just enough to run contiki and A2osX.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-23 11:49:19 +01:00
Andrea Odetti
f1b9232933 Add Uthernet configuration.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-18 19:03:44 +01:00
Andrea Odetti
bbb698ece1 Compile TFE and drop the duplicate.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-17 19:07:21 +01:00
Andrea Odetti
6a75299826 Add About dialog.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-04-04 19:21:04 +01:00