Commit graph

1359 commits

Author SHA1 Message Date
Andrea Odetti
7037582907 Allow to turn the circle range of a gamepad to a square (as the Apple ][).
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-17 19:19:46 +01:00
Andrea Odetti
daa57cc1a0 Merge remote-tracking branch 'upstream/master' 2020-10-17 14:42:56 +01:00
tomcw
37009e287d Renamed enum: VT_COLOR_MONITOR_RGB to VT_COLOR_IDEALIZED 2020-10-17 14:26:33 +01:00
tomcw
a3f5989176 Idealized video: support Double-Hires-40 for FT DIGIDREAM demo 2020-10-17 12:31:44 +01:00
tomcw
4defaa80fb Help docs: updated for RGB card/monitor support 2020-10-15 21:41:14 +01:00
Andrea Odetti
d314546b11 Paddle: make raw interface to return values in [-1,1] to ease transformations.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-15 16:24:20 +01:00
Andrea Odetti
e8972aa824 Add support for gamepads (hardcoded to be the first).
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-15 12:55:27 +01:00
Andrea Odetti
4866867d06 Merge remote-tracking branch 'upstream/master' 2020-10-12 21:10:21 +01:00
Andrea Odetti
d4fa3f6a2c Remove Ctrl-Q shortcut as it interferes with emulator.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-12 21:01:13 +01:00
Andrea Odetti
a72d19b386 Couple of fixes from upstream AW.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-12 20:58:32 +01:00
Andrea Odetti
b100ed1ae0 Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	source/Speaker.cpp
2020-10-12 20:41:59 +01:00
Andrea Odetti
9320db8ab7 Move letters to KeyDown as opposed to text.
It is easier to handle Ctrl.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-12 20:30:23 +01:00
tomcw
cfe482cd52 NTSC: fix rare crash in NTSC_SetVideoMode() after a VM restart 2020-10-11 21:29:26 +01:00
mariofutire@gmail.com
bc029dee97 sa2: make the keyboard "work" (no CTRL-ASCII codes for the time being).
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-11 20:16:07 +01:00
mariofutire@gmail.com
1400828452 Use keycode as opposed to scancode.
We honour a layout change decided by the user.

Signed-off-by: mariofutire@gmail.com <pi@raspberrypi>
2020-10-11 20:14:02 +01:00
mariofutire@gmail.com
aac2c5139a Split event handling and "video" state to separate class.
Signed-off-by: mariofutire@gmail.com <pi@raspberrypi>
2020-10-11 20:14:02 +01:00
mariofutire@gmail.com
ddea5b139e Add #pragma once.
Signed-off-by: mariofutire@gmail.com <pi@raspberrypi>
2020-10-11 20:14:02 +01:00
mariofutire@gmail.com
080198f88c Rename ClosedApple -> SolidApple.
Signed-off-by: mariofutire@gmail.com <pi@raspberrypi>
2020-10-11 20:14:01 +01:00
mariofutire@gmail.com
4ba10089c3 sa2: add button emulation
LALT = Open Apple
RALT = Closed Apple

Signed-off-by: mariofutire@gmail.com <pi@raspberrypi>
2020-10-11 20:14:01 +01:00
mariofutire@gmail.com
3e355288cb sa2: F2 = quit (line applen).
throw an exception rather than a string.

Signed-off-by: mariofutire@gmail.com <pi@raspberrypi>
2020-10-11 20:14:01 +01:00
mariofutire@gmail.com
e279fc7a5d Reindent properly.
Signed-off-by: mariofutire@gmail.com <pi@raspberrypi>
2020-10-11 20:14:01 +01:00
mariofutire@gmail.com
dab1735a69 Logging / Config replated changes.
sa2 / applen add flag to load qt init file (--qt-ini) (read only for now)
unify logging (--log)

Signed-off-by: mariofutire@gmail.com <pi@raspberrypi>
2020-10-11 20:14:01 +01:00
mariofutire@gmail.com
bc74b5fbfb Implement save-on-exit configuration flag.
Signed-off-by: mariofutire@gmail.com <pi@raspberrypi>
2020-10-11 20:13:50 +01:00
tomcw
6f39869f8c Minor: make Spkr_DSUninit() static 2020-10-11 18:55:28 +01:00
tomcw
1a11c65d37 Replaced global g_CardMgr with a singleton object & GetCardMgr() call. (Fixes #843) 2020-10-11 17:34:44 +01:00
ThorstenB
b0b033da49
Source clean-up, portability and debugger fixes. (PR #842)
And fix two general issues:
- confusing behavior when entering the builtin (mini) assembler mode,
- and also fixes the "cl" (clear flag) command - which was documented, but did not work at all (due to an "interesting" command/syntax conflict...).
2020-10-11 17:14:03 +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
65effc121d Add Quit on the Qt app.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-09 19:37:04 +01:00
Andrea Odetti
bb8269052a SDL2: add F6 (full screen) and F5 (swap disks).
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-09 19:31:20 +01:00
Andrea Odetti
24621373dd Better way to share data between ncurses and sdl2.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-09 19:13:42 +01:00
Andrea Odetti
01c059873f Let SDL2 do the refresh sync.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-09 11:50:59 +01:00
Andrea Odetti
274ef6a796 Fix sa2 to work with recent code.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-09 10:31:18 +01:00
Andrea Odetti
697a5b5c88 Rechange the order of initialisation.
Need to find a better solution.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-09 10:30:53 +01:00
Andrea Odetti
8b081725ce More SDL WIP. 2020-10-09 09:46:15 +01:00
Andrea Odetti
ae0194d5b1 Merge branch 'master' into sdl4
# Conflicts:
#	source/CMakeLists.txt
#	source/frontends/ncurses/main.cpp
#	source/frontends/ncurses/resources.cpp
2020-10-09 09:17:55 +01:00
Andrea Odetti
039bfc04c3 Fix a couple of issues with RGB modes. 2020-10-07 20:45:31 +01:00
Andrea Odetti
13edefa6e0 Add support for older cmake versions.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-06 20:58:43 +01:00
Andrea Odetti
ffddc18fe6 Dummy implementation of MultiByteToWideChar & WideCharToMultiByte.
Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-10-06 20:57:18 +01:00
mariofutire@gmail.com
806a369624 WIP SDL2 2020-10-06 20:05:48 +01:00
Andrea Odetti
14fdc2520b Merge remote-tracking branch 'upstream/master' 2020-10-02 21:07:49 +01:00
ThorstenB
7d7aa17a47
Debugger: minor clean-up: compiler warnings, unused variables etc (#840) 2020-10-01 19:55:29 +01:00
tomcw
b5739b862a Adjusted the Config PropSheetPage to widen the Video Mode's combo box.
Renamed a few globals & made static.
Removed a few VS2008 'int to bool' perf warnings.
2020-09-28 20:27:41 +01:00
Cyril Lambin
08458a9d29
Extended support for RGB cards (#819) (PR #837)
Video mode: "Color (RGB Card/Monitor)"
. RGB HGR rendering (no half-dot-shift, no vertical blend)
. RGB DHGR rendering
  - Color 140-mode is a real 140x192 mode with no color fringe (Video7 patent, shows that way on real hardware)
  - Mixed mode: correct transition for Color 140-mode <-> B&W (validated on a real IIc adapter.)
. Complete Féline support (eg. 2 distinct greys)
. Fixed Video7 SL7 inverse text
. Fixed DHIRES mixed mode detection
. NB. Prince of Persia will switch to B&W (560-mode) when going from HGR back to DHGR (same on real hardware).

Video mode: "Color (Composite Idealized)"
. Previously this was "Color (RGB Monitor)" (and before that, the AppleWin 1.25 "Color (Standard)")
. Now this mode does not support the extra RGB cards' video modes
2020-09-27 14:09:02 +01:00
tomcw
b9d80a0317 Save-state ANSI support: small refactor for new/delete char buffers (#838) 2020-09-25 21:25:46 +01:00
tomcw
09a5ac4761 libyaml supports UTF-8 and not accented ANSI characters - so convert to UTF-8 (Fixes GH#838) 2020-09-25 18:17:03 +01:00
Andrea Odetti
d9f29257f9 Merge remote-tracking branch 'upstream/master' 2020-09-09 17:25:48 +01:00
Cyril Lambin
3e33d7f6d1
Added support for RGB cards & Video7 SL7 RGB extra modes (#819) (PR #826)
Currently only Apple Color Card and Video7 SL7 are supported.

The RGB card can be defined through the command-line:
-rgb-card-type: apple (default), sl7, eve, feline

The default text color can be modified when SL7 is selected. On the actual card this was defined by dip switches.
-rgb-card-foreground <color>
can be 6 (blue), 9 (amber), 12 (green) and white (15)

Details:
. Added RGB FG/BG Text + mixed GR mode
. Added Color Text80
. Added Duochrome HGR
. RGB card defaults to Apple Color Card + B&W text
2020-09-01 21:32:44 +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
8446794828 Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	source/Video.h
2020-08-27 18:35:42 +01:00