Commit graph

73 commits

Author SHA1 Message Date
Andrea Odetti
b56ccf8eb4 Add Reset(s) buttons.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-27 20:11:47 +00:00
Andrea Odetti
11c44233b4 Revisit initialisation to drive it all from the FrameBase.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-27 18:48:05 +00:00
Andrea Odetti
8dc4c042a2 Drag&Drop State files.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-27 14:45:40 +00:00
Andrea Odetti
3e03e3ba57 Add more audio settings / diagnostics.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-27 14:45:40 +00:00
Andrea Odetti
fec69e1f72 Untabify.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-27 14:45:31 +00:00
Andrea Odetti
177858b055 Run missing untabify.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-22 10:37:52 +00:00
Andrea
fd2c690ea5
Update README.md 2021-03-22 08:14:56 +00:00
Andrea
ff82eb4a61
Update README.md 2021-03-22 08:14:11 +00:00
Andrea Odetti
5b24df0fc9 More fancy disk drive information in settings.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-21 20:07:27 +00:00
Andrea Odetti
3d8ac1bee3 Add support for drag & drop in Drive 1.
And add disk names in the setting window.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-21 16:32:48 +00:00
Andrea Odetti
cbf9b078c6 sa2: remove multithreading.
Obsolete with recent Pi4 hardware, and even with Pi3, advantage is little.
2021-03-21 12:08:30 +00:00
Andrea Odetti
a583fd75f3 Add debugger color scheme choice.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-20 19:39:25 +00:00
Andrea Odetti
7025bcd457 Use correct memory editor.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-20 17:00:45 +00:00
Andrea Odetti
24c105ffd5 Colorise debugger console.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-20 17:00:29 +00:00
Andrea Odetti
f795147611 Add syntax highlight to the disassembler.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-20 10:29:25 +00:00
Andrea
458bbf4634
Update README.md 2021-03-19 07:49:10 +00:00
Andrea Odetti
ea4891f1f6 Start with more sensible values: 2x video size.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-18 19:40:30 +00:00
Andrea Odetti
4fca44ed6f Custom opcode formatter to match AppleWin. 2021-03-18 19:40:02 +00:00
Andrea Odetti
5a3618912f Convert only up to 0.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-18 18:51:24 +00:00
Andrea Odetti
0f66cd6f85 Add DebuggerConsole and improve disassembler.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-14 20:40:37 +00:00
Andrea Odetti
49cae397d6 Update ImGui.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-14 15:22:53 +00:00
Andrea Odetti
5cb5108409 Remove (wrong) usage of BeginChild and let ImGui deal with the first frozen header row.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-14 15:22:20 +00:00
Andrea Odetti
32c200d65c Factor common code to change AppMode.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-14 11:31:00 +00:00
Andrea Odetti
5230a6a558 Add ability to step emulator.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-14 11:14:03 +00:00
Andrea Odetti
7152b82a45 untabify main.cpp
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-14 10:04:14 +00:00
Andrea Odetti
405ea13ba2 Move Execution to SDLFrame for ease of use in debugger.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-14 10:02:19 +00:00
Andrea Odetti
f7c6dfc1b9 Remove dead code.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-14 09:59:19 +00:00
Andrea Odetti
db874d37be Formatting.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-13 20:57:33 +00:00
Andrea Odetti
d99d35013d Add support for symbols.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-13 20:56:19 +00:00
Andrea Odetti
dd6455ceb9 Add 6502 disassembler.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-07 20:32:24 +00:00
Andrea Odetti
8499ccb692 Add info about g_nAppMode to settings.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-06 18:00:31 +00:00
Andrea Odetti
03329bba84 Add memory viewer using imgui_club/imgui_memory_editor.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-06 18:00:07 +00:00
Andrea Odetti
ddd1c4f301 Move ImGui Settings window(s) to a separate class.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-03-06 17:41:32 +00:00
Andrea Odetti
8d8782946b Memory 2021-02-28 17:02:30 +00:00
Andrea Odetti
0459fd3ba9 Make ImGui a module.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-25 16:56:36 +00:00
Andrea Odetti
c416eee9df sa2: add namespace and remove tabs.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-25 16:31:24 +00:00
Andrea Odetti
3b917e93be common2: add namespace and reformat everything with space over tabs.
This makes it "possible" to use other editors (than emacs).

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-25 16:04:50 +00:00
Andrea Odetti
c81b4ab1bf ImGui: fix event handling.
1) always pass events to ImGui
2) only pass keyboards to AW when ImGui says so
2021-02-23 19:32:00 +00:00
Andrea Odetti
fdfbb795d1 CAPS LOCK: use the same logic as AW.
Force it when the emulator starts, and follow its real state as soon as it is pressed.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-21 19:14:50 +00:00
Andrea Odetti
d9c6541f73 Inspired from https://github.com/audetto/AppleWin/pull/25
Add menubar to toggle demo and setting window.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-21 18:43:46 +00:00
Andrea Odetti
b78a2224d0 Support Enter key on keypad.
Honour the Caps Lock state (inverted).

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-20 16:14:03 +00:00
Andrea Odetti
3e5a6aa520 Extend geometry arg to WxH(+X+Y).
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-20 15:21:53 +00:00
Andrea Odetti
07900d5c38 Add frame timer.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-20 08:38:53 +00:00
Andrea Odetti
a75833847e Add cmd line option to switch off vsync.
Useful to profile.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-13 13:09:55 +00:00
Andrea Odetti
3051fbe3fe Make ClearBackground a standalone function.
Guidelines suggest to always clear background each frame.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-13 12:56:21 +00:00
Andrea Odetti
d912026f3e Add options to specify SDL window size via cmd line arguments.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-13 12:56:06 +00:00
Andrea Odetti
b204dc5362 Split glTexImage2D and update via glTexSubImage2D.
From the doc, it might allow for better performance.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-13 12:55:32 +00:00
Andrea Odetti
c2fab20d0c Make the volume slider work.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-07 19:55:11 +00:00
Andrea Odetti
dc9bd91f84 Add some more ImGui example settings.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-07 19:23:33 +00:00
Andrea Odetti
7865fc3457 First meaningful usage of ImGui features.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-07 16:10:54 +00:00