Commit graph

73 commits

Author SHA1 Message Date
Andrea Odetti
56779456b5 Merge remote-tracking branch 'upstream/master' into update
# Conflicts:
#	source/Utilities.cpp
2021-10-17 09:02:17 +01:00
TomCh
9553106f4e
Debugger: Add IRQ support to LBR and new command to Break on Interrupt (#987, PR #990)
Extend LBR so that it includes the control-flow on a taken interrupt
Add a new command 'brkint <0|1>' to support Break on Interrupt

Internal: in core emulation loop, moved IRQ/NMI check to start of loop so that just the "interrupt vectoring" case can be single-stepped (instead of previously opcode + interrupt vector).

Debugger help chm: update Breakpoints section to include BRK, BRKOP and BRKINT
2021-10-16 16:57:00 +01:00
Andrea Odetti
c6b9cb1ee1 StdAfx.h make include consistent with AW.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2021-10-16 14:50:13 +01:00
tomcw
4f8b30506d Debugger: Fix LBR so it's updated only if branch is taken (#987) 2021-10-16 11:58:09 +01:00
tomcw
4c73a8003a Fix TestDebugger (currently only used by VS2008 sln) 2021-10-15 21:08:16 +01: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
cdf8573202 Tidy up linux interface.h.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-29 09:22:10 +00:00
Andrea Odetti
7d6439fefd Introduce a LinuxFrame.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-27 20:25:42 +00:00
Andrea Odetti
c4f3296336 Merge remote-tracking branch 'upstream/master' 2020-12-27 19:43:53 +00:00
tomcw
41ccd21307 Fix VS2008 build due to the TestDebugger proj (only included by VS2008 at the moment) 2020-12-27 11:54:11 +00:00
Andrea Odetti
f4af643500 Merge remote-tracking branch 'upstream/master' 2020-12-23 18:57:10 +00:00
tomcw
6ec47a357d Removed old VS projs for libs & dlls 2020-12-23 18:41:37 +00:00
Andrea Odetti
ad41cae876 Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	source/StdAfx.h
2020-12-23 16:40:25 +00:00
tomcw
8d7d2b9647 VS2019: new debug/release configurations for v141_xp (#693)
. NB, the Microsoft SDK 7.1A doesn't contain dxguid.lib & ddraw.lib, so they are linked against these two dx libs that are already part of the AppleWin repo.
2020-12-20 18:44:25 +00:00
Andrea Odetti
edb93cbaa0 Integrate memory changes from AW.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-11 08:28:16 +00:00
Andrea Odetti
f6224a5a3b Merge remote-tracking branch 'upstream/master' 2020-12-11 08:18:18 +00:00
Andrea
d2a34e1f91
Remove VirtualAlloc, VirtualFree & ZeroMemory. (PR #884)
. Allocation in Memory.cpp: keep VirtualAlloc of size=64KiB (alignment=64KiB) to ease debugging.
2020-12-10 21:08:15 +00:00
Andrea Odetti
eb55d011ca Mirror AW where TestCPU6502 inlcudes a .cpp from source.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-05 20:52:27 +00:00
Andrea Odetti
f867dc0479 Make the code more similar to AW.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-11-30 18:44:31 +00:00
Andrea Odetti
90368927e8 Merge remote-tracking branch 'upstream/master' 2020-11-27 08:55:05 +00:00
tomcw
8ef34d7d76 Fixed TestDebugger.cpp 2020-11-26 21:52:39 +00:00
Andrea
bbe88da787
AppleWin.cpp split (PR #875)
. Split AppleWin -> Core with the functionality really needed by the emulator.
. Split AppleWin -> Utilities for generic code not called by other emulator components.
. Split AppleWin -> CmdLine for the command line option parsing.
2020-11-26 21:50:06 +00:00
TomCh
6e166dfff6
Support NSC for Apple II/II+ via F8-ROM (#827 PR #873) 2020-11-25 21:57:34 +00:00
Andrea Odetti
aa473958d0 Merge remote-tracking branch 'upstream/master' into pi
# Conflicts:
#	source/Disk.cpp
#	source/DiskImageHelper.cpp
#	source/DiskImageHelper.h
#	source/Memory.h
#	source/MouseInterface.cpp
2020-11-12 18:30:39 +00:00
tomcw
bd1d65ce4f Renamed Applewin.h to AppleWin.h across entire project 2020-11-11 22:12:39 +00:00
Andrea
8cc04e2b86
Cumulative changes required to enable / ease compilation in Linux with gcc. (PR #861)
Split MouseInterface to isolate DirectInput code.
Avoid overflow in platforms where RAND_MAX is a big integer constant.
Fix include files for gcc (where enums cannot be forward declared).
2020-11-10 20:33:55 +00:00
Andrea Odetti
b100ed1ae0 Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	source/Speaker.cpp
2020-10-12 20:41:59 +01:00
TomCh
6125c2b12d
Support for synchronous events (PR #841)
Switched Mockingboard/6522 Timer interrupts & Mousecard's VBlank interrupt to use synchronous events.
This is a linked-list of ordered timer-based event, where only the head of the list needs updating after every opcode.
2020-10-11 16:08:05 +01:00
Andrea Odetti
317e048d5a Remove windows includes.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-08-31 19:00:16 +01:00
Andrea Odetti
a6cb08714d Merge remote-tracking branch 'upstream/master' 2020-08-31 18:56:40 +01:00
TomCh
ef913fe827
Removed 65d02 and used the regular 65c02/6502 headers instead (PR #825)
Removed 65d02.h and reconstructed this code using a combination of existing 6502.h/65c02.h and extra C Pre-Processor macros to include (or omit) the extra heatmap functionality.

We still end up with a normal 65c02 instance and also a debug 65c02 instance, but both will derive from the same 65c02.h file (+ same for the 6502 normal/debug instances).

Also:
. Added cpu_heatmap.inl for the built-in debugger's read/write operations.
. Support CpuRead/Write() from Z80 to hook the heatmap r/w.
2020-08-31 10:03:29 +01:00
Andrea Odetti
9c442468f5 Compile AW's Speaker.cpp and remove custom implementation.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-08 16:52:00 +01:00
Andrea Odetti
40d3e822e9 Make resource interface based on "char *" as it is easier to detect a nullptr.
Can't change the return type to std::string.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-07 20:13:26 +01:00
Andrea Odetti
5dee29fbf9 Make Mockingboard voice actually play.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-07-02 11:02:57 +01:00
Andrea Odetti
aa60179992 Merge remote-tracking branch 'upstream/master' 2020-06-22 15:59:40 +01:00
tomcw
42d265a25c Fixed timing for 6502 opcodes: rol abs,x; lsr abs,x; ror abs,x. (Fixes #801) 2020-06-19 19:40:23 +01:00
Andrea Odetti
efec61caba Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	source/StdAfx.h
2020-01-09 09:30:23 +00:00
tomcw
087616db29 Fixed Coverity 'High Impact Outstanding' issues:
1489113
1489111
1489105
1489096
1489093
1489092
1486059
1486055 (false positive)
1486054
1486051 (false positive)
1486050
1486047 (false positive)
1486043
1446684
2020-01-04 17:43:20 +00:00
Andrea Odetti
2b40967589 Merge remote-tracking branch 'upstream/master' into newmaster 2019-12-14 21:17:01 +00:00
tomcw
87677ed4c3 Debugger: In _6502_GetTargets() removed the bool bIgnoreJSRJMP parameter. 2019-12-09 20:42:16 +00:00
tomcw
b1316dc3da Debugger: Fixed regression at prior commit dd274bc000 for bpm addr16 not triggering.
. Extended debugger regression tests to catch this (and test many other variants).
2019-12-09 16:27:13 +00:00
Andrea Odetti
7529f5c659 Reworked the entire wondows.h replacement.
wincompat.h is a stripped down version coming from linapple-pie with the bare minimum common types.
Each group of functions in its own file.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-23 18:17:44 +00:00
Andrea Odetti
d18269fb2d First (succesful) attempt at using NTSC code in Linux.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-11-20 21:23:27 +00:00
Andrea Odetti
0a6de645e0 Incorporate chat * -> std::string conversion.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-09-21 09:58:29 +01:00
Andrea Odetti
fef75d878a Merge remote-tracking branch 'upstream/master' 2019-09-12 20:58:49 +01:00
Kelvin Lee
eb0e3a6b4e Add VS2019 support. 2019-08-11 17:45:23 +10:00
Andrea Odetti
78ef2cc23c Merge remote-tracking branch 'upstream/master' 2019-06-07 19:49:37 +01:00
tomcw
3a41061f83 Check interrupt sources after every opcode when in normal speed. (#651) 2019-06-01 16:54:58 +01:00
Andrea Odetti
a3061f55d6 Fix new Joystick interface.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-04-19 21:13:00 +01:00
Andrea Odetti
14c5c820c1 Adapt to upstream changes.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2018-08-25 21:17:55 +01:00