Commit graph

961 commits

Author SHA1 Message Date
michaelangel007
5e9b8fe2ae Set Ctrl-0 Toggle Fastest/100%, Ctrl-3 Always fastest 2019-08-23 19:33:56 -07:00
michaelangel007
32b42b2aeb Add Ctrl-0, Ctrl-1, Ctrl-3 for #678 2019-08-23 08:46:43 -07:00
michaelangel007
93bd7c678f Merge branch 'master' of https://github.com/AppleWin/AppleWin 2019-08-23 07:32:08 -07:00
Andrea Odetti
4d2febfb42 Linux changes for current version of AppleWin.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-08-10 16:16:44 +01:00
Andrea Odetti
850ceff343 Merge remote-tracking branch 'upstream/master' 2019-08-10 08:52:17 +01:00
tomcw
8a11feb739 NTSC TV video modes: adjust y-position by 1 pixel (#650) 2019-08-09 22:58:12 +01:00
Brett Vickers
9e5e21b8c9 Prevent uninitialized value bugs and improve string safety.
This change does two things:

1. Updates the registry APIs to reduce the likelihood of uninitialized
variables.

The code wasn't always checking the return value of registry load operations.
In some cases, this led to uninitialized memory being used, and crashes could
result. For example, LoadConfiguration in Applewin.cpp was using an
uninitialized value for the computer type if no registry variable for the
"Apple 2 type" was set.

New registry reading methods and macros have also been introduced, allowing
default value fallbacks for the cases where a registry variable is not found.
This makes registry access simpler and safer when a default value is known in
advance.

The registry code's style has also been updated to conform with the rest of
the code base (tabs instead of spaces, naming conventions, etc.)

2. Introduces string safety improvements.

A number of code paths have been modified to use safe-string functions instead
of their unsafe counterparts (e.g., strcpy, sprintf).  In the process, some
strings were converted from "char" to "TCHAR". This was done mostly for
consistency with the rest of the code-base.
2019-08-09 13:38:50 -07:00
tomcw
b66e5a2be9 WOZ: Small refactor 2019-08-03 18:21:41 +01:00
tomcw
1af12fbbb1 WOZ: Small refactor to call DataLatchReadWriteWOZ() for any WOZ data-latch access 2019-08-03 18:10:39 +01:00
tomcw
d973fb6b97 WOZ: Added debug dump sector & track functions 2019-08-03 17:51:19 +01:00
tomcw
b770306496 WOZ: #672
. Even disk i/o read accesses will update the data latch
. All disk i/o write accesses will update the data latch
2019-07-30 22:41:28 +01:00
tomcw
7987883847 WOZ: Register .woz extension and improved logging for all extensions. Also updated DELREG.INF and help. (Fixes #671) 2019-07-28 17:13:39 +01:00
tomcw
816dc77cb0 Only delay certain video modes when not Full-Speed. (Fixes #670) 2019-07-27 19:59:45 +01:00
michaelangel007
89eab1156c Merge branch 'master' of https://github.com/AppleWin/AppleWin 2019-07-22 12:06:53 -07:00
tomcw
c03eb54103 WOZ: Extended latch delay for 'Wizardry III' and 'Space Quest I' copy-protection (#662, #669) 2019-07-22 19:32:25 +01:00
tomcw
75c9669884 Fixed 2x Windowed mode: to show correct track for drive-2 2019-07-09 22:18:36 +01:00
tomcw
a73038fb74 Disk: fix LOGGING and comment typo 2019-07-08 21:14:31 +01:00
tomcw
8e5505c734 Fixed LOG_DISK to use CLK_6502_NTSC 2019-07-06 12:03:15 +01:00
TomCh
4bc75093b8
Support (read-only) WOZ1/WOZ2 images (#544) (PR #653)
Supports:
- all "woz test images" v1.3 (WOZ1, WOZ2) are working, except 3.5"
- additionally: Frogger (spiradisc), Choplifter (not Enhanced //e!), Lode Runner, Marble Madness, Skyfox.
- woz images can be .gz or .zip compressed (ie. same as other supported images)
- save-state

Limitations:
- read-only, so WOZ images are forced to be write-protected
  . as a result, games that need r/w images won't work (Stickybear Town Builder, Wizardry)
- 5.25" only (not 3.5")
2019-07-05 23:01:19 +01:00
tomcw
73ce127eef Removed some old commented out code 2019-06-29 17:05:07 +01:00
tomcw
f0f63f934f Tweak PAL 6502 base clock 2019-06-28 21:45:43 +01:00
TomCh
bd86088c59
Support 50Hz(PAL) (#648) (PR #658)
- Added Configuration GUI to include checkbox for "50Hz"
- Implicitly use PAL or NTSC base 6502 clocks depending on video refresh rate
- Added new -50hz and -60hz command line switches
- Updated save-state for video refresh rate

1.28.8.0: Updated version & history.txt
2019-06-28 21:34:34 +01:00
tomcw
dbcb789442 Don't delay a PAGE1/2 video mode change (#656) 2019-06-24 22:05:32 +01:00
Andrea Odetti
1776fc8aec Upstream changes.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-06-18 17:06:11 +01:00
Andrea Odetti
d9f1bfb12a Merge remote-tracking branch 'upstream/master' 2019-06-18 16:58:51 +01:00
tomcw
e6e52ffcf4 Delay any video mode change by 1 cycle (#654) 2019-06-15 18:15:00 +01:00
tomcw
3fbe416424 6522: Underflow on 0x0001 -> 0x0000; and FRT's period is N+2 cycles (#652) 2019-06-15 17:41:53 +01:00
Andrea Odetti
78ef2cc23c Merge remote-tracking branch 'upstream/master' 2019-06-07 19:49:37 +01:00
tomcw
1f2dc6ee8a Full-speed: only do interrupt checking every 40 opcodes & simplify CYC macro (#651) 2019-06-02 14:30:54 +01:00
tomcw
98a733ba73 Removed comment about benchmark: as benchmark is now run in both normal and full-speed modes 2019-06-01 17:01:15 +01:00
tomcw
3a41061f83 Check interrupt sources after every opcode when in normal speed. (#651) 2019-06-01 16:54:58 +01:00
tomcw
941ef46e9a 6522: account for underflowed cycles to ensure consistent interrupt period (#651) 2019-06-01 12:21:00 +01:00
Andrea Odetti
aada654e60 Avoid uninitialised reads if the settings are not present.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-04-27 11:31:30 +01:00
Andrea Odetti
69ec0e7db0 Add support for RamWorks.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-04-22 16:02:06 +01:00
Andrea Odetti
90f0a6d6c4 Fix problem about removing a language card.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-04-21 20:58:54 +01:00
Andrea Odetti
020fb5c0cb Remove a deprecated function.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-04-20 21:01:25 +01:00
Andrea Odetti
224fcbce78 Add (better) support to select card in Slot 0.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-04-20 20:51:19 +01:00
Andrea Odetti
a51118cf35 Fix all disk related function due to Disk class introduction.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-04-20 16:43:52 +01:00
Andrea Odetti
f6719554e6 Merge remote-tracking branch 'upstream/master' 2019-04-19 21:14:05 +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
e04d5cac04 Merge tag 'v1.28.5.0' 2019-04-19 21:07:30 +01:00
Andrea Odetti
598cb2e70e Fix compilation.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-04-19 21:07:15 +01:00
Andrea Odetti
cbceb5c79f Merge tag 'v1.28.4.0' 2019-04-19 21:00:32 +01:00
Andrea Odetti
f1aa6d2e25 Merge tag 'v1.28.3.0' 2019-04-19 21:00:22 +01:00
Andrea Odetti
d6abf1a93a Fix compilation.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-04-19 21:00:09 +01:00
Andrea Odetti
4373e1ac61 Merge tag 'v1.28.2.0' 2019-04-19 20:55:57 +01:00
Andrea Odetti
7ce15903bf Compile RGBMonitor too.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-04-19 20:55:23 +01:00
Andrea Odetti
7f2310150b Merge tag 'v1.28.1.0' 2019-04-19 20:46:16 +01:00
Andrea Odetti
2ee0a01959 Merge tag 'v1.28.0.0'
# Conflicts:
#	source/SaveState.cpp

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-04-19 20:45:50 +01:00
Andrea Odetti
e68898daf4 Fix Version macros.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2019-04-19 20:42:25 +01:00