Commit graph

2819 commits

Author SHA1 Message Date
Andrea Odetti
282e024c37 Merge remote-tracking branch 'upstream/master' 2021-02-13 14:07:18 +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
tomcw
84a705d20d MB/6522: improve T1 underflow with latch 2021-02-12 19:16:14 +00:00
tomcw
ff29b055ce MB/6522: fix timer1 underflow for very small values 2021-02-11 22:44:40 +00:00
Andrea
8c2b38d19d
Enable ConformanceMode in VS2019. (PR #923)
This reduces the chances of incompatibility between gcc and vs.

99% is "const char *" literals.
1 case of a goto jumping over a variable declaration (but it is not needed).
2021-02-10 21:05:00 +00:00
Andrea
466207f5d3
Save-state: load/save dialog: Remove ; to concatenate string and avoid unused code. (PR #924) 2021-02-10 20:55:58 +00:00
tomcw
776a48fc01 MB/6522: support for T1 latch in one-shot mode 2021-02-10 20:51:11 +00:00
Andrea Odetti
1905590b27 Merge remote-tracking branch 'upstream/master' 2021-02-07 20:01:36 +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
tomcw
f3b6b8665f Debugger: fixes to wrap 16-bit addr (was resulting in AppleWin debugger crashes) 2021-02-07 16:58:11 +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
Andrea Odetti
c8ad71ed07 Merge remote-tracking branch 'upstream/master' 2021-02-07 14:09:44 +00:00
Andrea Odetti
1b3c3f6711 Fix SDL rectangle frame.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-07 14:00:45 +00:00
Andrea Odetti
4ae655caab Fix a few issues reported by clang.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-07 13:46:50 +00:00
Andrea Odetti
0b692ee7f8 Some CMakeLists improvements.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-07 13:46:21 +00:00
tomcw
c492004e8d 6522 read: support non 4-cycle read opcodes (#833)
. ie. addr modes: (zp,x), (zp),y and (zp)
2021-02-06 18:02:35 +00:00
Andrea
f3d5cb3f10
Merge pull request #21 from audetto/sdlimgui
Integrate Dear ImGui as a renderer over SDL2
2021-02-06 17:36:39 +00:00
Andrea Odetti
cfc7b719fe Cosmetic change.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-06 17:13:47 +00:00
Andrea Odetti
93bebd3eb0 Add travis support for Dear ImGui.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-06 17:09:27 +00:00
Andrea Odetti
53a6928991 Display Dear ImGui version.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-06 17:09:06 +00:00
Andrea Odetti
a3381bfcb6 Define ImTextureID in main config file.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-06 16:55:41 +00:00
Andrea Odetti
989410c17d Integrate Dear ImGui with SDL to reduce code duplication.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-06 16:55:08 +00:00
Andrea Odetti
05b2d5b2e7 Split SDLFrame to ease integration of ImGui.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-06 10:11:29 +00:00
tomcw
f302e88f55 Add 6522 support for stz abs16 and stz abs16,x 2021-02-05 22:30:05 +00:00
Andrea Odetti
ad5b6628b5 Merge remote-tracking branch 'upstream/master' 2021-02-04 10:13:57 +00:00
Andrea Odetti
ea0a3cb5ba Fix string comparison in cmake.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-04 10:12:51 +00:00
Andrea Odetti
5594c4fbc8 Fix for in-place builds.
Which are not recommended anyway.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-02-03 18:34:53 +00:00
tomcw
fcafa18340 Debugger: add red 'IRQ' after the v/h-pos when IRQ is being asserted to the 6502 2021-01-31 19:38:06 +00:00
Andrea Odetti
bb2fce9e72 Fix libretro compiler bug.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-31 14:31:19 +00:00
Andrea Odetti
cc55d9e681 Modern syntax: virtual -> override.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-31 13:55:43 +00:00
Andrea Odetti
3215f2aff3 Merge remote-tracking branch 'upstream/master' 2021-01-31 13:27:47 +00:00
Andrea Odetti
e376b787cd Update QHexView.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-31 13:26:47 +00:00
Andrea Odetti
be1772bc37 Use RAII pattern to initialise and clear AppleWin emulator.
Plays better with exceptions.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-31 13:26:23 +00:00
tomcw
fad4dd2ad1 Disable debug-logging for previous AY8913 fix 2021-01-30 12:50:33 +00:00
tomcw
024e97ac9b MB-AY8913 fix so that no AY changes get dumped (#770)
. Needed for read of AY8913 regs too, during built-in debugger stepping (mb-audit)
2021-01-30 10:34:46 +00:00
tomcw
a3666edf48 MB: read fix 2021-01-28 20:15:23 +00:00
tomcw
735317ae17 .gitignore builds results from v141_xp folders 2021-01-20 21:40:12 +00:00
Andrea
baad40f3b8
SpkrSetEmulationType(): simplify logic and remove unreachable code. (PR #919) 2021-01-20 21:30:34 +00:00
Andrea Odetti
f61e73b639 Move resources, bitmaps and messageboxes into Frames.
And remove a few windows.h interface functions used before.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-20 19:07:18 +00:00
Andrea Odetti
217e9ab2cc Merge remote-tracking branch 'upstream/master' 2021-01-20 11:02:08 +00:00
Andrea
cdf1cb9106
Remove usages of g_hFrameWindow and g_hInstance from core emulator files. And Resource related Win32 functions. (PR #915)
. Win32Frame: remove WM_USER_RESTART.
2021-01-19 20:37:43 +00:00
Andrea Odetti
d3e25773dc Add configuration for printer filename. 2021-01-19 12:18:12 +00:00
tomcw
81279904e2 Pravets: fix bug in ctor 2021-01-18 20:30:51 +00:00
Andrea Odetti
75b64a019d Merge remote-tracking branch 'upstream/master' 2021-01-18 08:01:24 +00:00
tomcw
44fa610ef6 Pravets.cpp: convert to UTF8 to allow VS2019 to build 2021-01-17 22:21:33 +00:00
Andrea Odetti
a3bb062260 Required from upstream.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-01-17 20:19:12 +00:00