Skip to content

Commit 626b8e6

Browse files
committed
Merge remote-tracking branch 'linux/master' into linux
2 parents 7c1e227 + 5da446a commit 626b8e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1490
-419
lines changed

.github/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ Frontend based on ncurses, with a ASCII art graphic mode.
5151
Keyboard shortcuts
5252

5353
* ``F2``: reset the machine
54-
* ``F3``: terminate the emulator
55-
* ``F11``, ``F12``: Save, Load Snapshot
54+
* ``Shift-F2``: ctrl reset
55+
* ``F3``: pause
56+
* ``Shift-F3``: exit (``F4`` as well to avoid key code issues)
57+
* ``F5``: swap disks
58+
* ``F11``, ``F12``: Load, Save Snapshot
5659
* ``ALT-RIGHT``: wider hi res graphis
5760
* ``ALT-LEFT``: narrower hi res graphics
5861
* ``ALT-UP``: vertical hi res (smaller)

resource/Apple2_Video.rom

2 KB
Binary file not shown.
4 KB
Binary file not shown.

resource/Applewin.rc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ DEBUG_BUTTON BITMAP "DEBUG.BMP"
6060
DRIVE1_BUTTON BITMAP "DRIVE1.BMP"
6161
DRIVE2_BUTTON BITMAP "DRIVE2.BMP"
6262
SETUP_BUTTON BITMAP "SETUP.BMP"
63-
CHARSET40 BITMAP "CHARSET4.BMP"
6463
DISKOFF_BITMAP BITMAP "DISKOFF.BMP"
6564
DISKREAD_BITMAP BITMAP "DISKREAD.BMP"
6665
DISKWRITE_BITMAP BITMAP "DISKWRIT.BMP"
@@ -358,7 +357,7 @@ IDR_APPLE2_ROM ROM "Apple2.rom"
358357
IDR_APPLE2_PLUS_ROM ROM "Apple2_Plus.rom"
359358
IDR_APPLE2_JPLUS_ROM ROM "Apple2_JPlus.rom"
360359
IDR_APPLE2E_ROM ROM "Apple2e.rom"
361-
IDR_APPLE2E_ENHANCED_ROM ROM "Apple2e_Enhanced.rom"
360+
IDR_APPLE2E_ENHANCED_ROM ROM "Apple2e_Enhanced.rom"
362361
IDR_PRAVETS_82_ROM ROM "Pravets82.rom"
363362
IDR_PRAVETS_8M_ROM ROM "Pravets8M.rom"
364363
IDR_PRAVETS_8C_ROM ROM "Pravets8C.rom"
@@ -371,7 +370,9 @@ IDR_FREEZES_F8_ROM ROM "FREEZES_NON-AUTOSTART_F8_ROM.ro
371370
// VIDEO ROM
372371
//
373372

373+
IDR_APPLE2_VIDEO_ROM ROM "Apple2_Video.rom"
374374
IDR_APPLE2_JPLUS_VIDEO_ROM ROM "Apple2_JPlus_Video.rom"
375+
IDR_APPLE2E_ENHANCED_VIDEO_ROM ROM "Apple2e_Enhanced_Video.rom"
375376
IDR_BASE64A_VIDEO_ROM ROM "Base64A_German_Video.rom"
376377

377378
/////////////////////////////////////////////////////////////////////////////

resource/CHARSET4.BMP

-24.1 KB
Binary file not shown.

resource/Debug_Font.bmp

-68 Bytes
Binary file not shown.

resource/resource.h

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@
2828
#define IDR_MENU 125
2929
#define IDR_APPLE2_ROM 126
3030
#define IDR_APPLE2_PLUS_ROM 127
31-
#define IDR_APPLE2E_ROM 128
32-
#define IDR_APPLE2E_ENHANCED_ROM 129
33-
#define IDD_TFE_SETTINGS_DIALOG 131
34-
#define IDR_PRINTDRVR_FW 132
35-
#define IDD_PROPPAGE_ADVANCED 132
31+
#define IDR_APPLE2_VIDEO_ROM 128
32+
#define IDR_APPLE2E_ROM 129
33+
#define IDR_APPLE2E_ENHANCED_ROM 130
34+
#define IDR_APPLE2E_ENHANCED_VIDEO_ROM 131
35+
#define IDD_TFE_SETTINGS_DIALOG 132
36+
#define IDR_PRINTDRVR_FW 133
37+
#define IDD_PROPPAGE_ADVANCED 133
3638
#define IDR_SSC_FW 134
3739
#define IDR_MOCKINGBOARD_D_FW 135
3840
#define IDR_MOUSEINTERFACE_FW 136

source/6522.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ void SY6522::Write(BYTE nReg, BYTE nValue)
153153
m_regs.ORB = nValue & m_regs.DDRB;
154154
break;
155155
case 0x01: // ORA
156+
case 0x0f: // ORA_NO_HS
156157
m_regs.ORA = nValue & m_regs.DDRA;
157158
break;
158159
case 0x02: // DDRB
@@ -220,8 +221,6 @@ void SY6522::Write(BYTE nReg, BYTE nValue)
220221
m_syncEvent[1]->m_canAssertIRQ = (m_regs.IER & IxR_TIMER2) ? true : false;
221222
UpdateIFR(0);
222223
break;
223-
case 0x0f: // ORA_NO_HS
224-
break;
225224
}
226225
}
227226

@@ -348,6 +347,7 @@ BYTE SY6522::Read(BYTE nReg)
348347
if (m_isMegaAudio) nValue = 0x00; // MegaAudio: IRB just reads as $00
349348
break;
350349
case 0x01: // IRA
350+
case 0x0f: // IRA_NO_HS
351351
nValue = m_regs.ORA | (m_isBusDriven ? 0x00 : (m_regs.DDRA ^ 0xff)); // NB. Inputs bits driven by AY8913 if in PSG READ mode
352352
if (m_isMegaAudio) nValue = 0x00; // MegaAudio: IRA just reads as $00
353353
break;
@@ -400,9 +400,6 @@ BYTE SY6522::Read(BYTE nReg)
400400
if (m_isMegaAudio)
401401
nValue &= 0x7F;
402402
break;
403-
case 0x0f: // ORA_NO_HS
404-
nValue = m_regs.ORA;
405-
break;
406403
}
407404

408405
return nValue;

source/CMakeLists.txt

Lines changed: 32 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,36 @@ pkg_search_module(YAML REQUIRED yaml-0.1)
66
pkg_search_module(MINIZIP REQUIRED minizip)
77
pkg_search_module(SLIRP slirp)
88

9+
# if slirp is not found, we will try pcap
10+
# if it is not found either, a dummy pcap will be compiled
11+
# but network will be badly affected
12+
913
if ("${SLIRP_FOUND}" STREQUAL "")
10-
message(WARNING "'libslirp' not found. Will use 'libpcap' instead")
11-
endif()
14+
message(WARNING "'libslirp' not found: will try 'libpcap' instead")
1215

13-
pkg_search_module(PCAP libpcap)
14-
if ("${PCAP_FOUND}" STREQUAL "")
15-
# old versions of pcap do not work with pkg-config
16-
# this is necessary on Rapsberri Pi OS
17-
execute_process(COMMAND pcap-config --cflags
18-
OUTPUT_VARIABLE PCAP_INCLUDE_DIRS
19-
OUTPUT_STRIP_TRAILING_WHITESPACE
20-
RESULT_VARIABLE STATUS)
21-
if ("${STATUS}" STREQUAL "0")
22-
message("Found 'libpcap' via pcap-config")
23-
else()
24-
message(FATAL_ERROR "Cannot locate 'libpcap-dev'")
16+
pkg_search_module(PCAP libpcap)
17+
if ("${PCAP_FOUND}" STREQUAL "")
18+
# old versions of pcap do not work with pkg-config
19+
# this is necessary on Rapsberri Pi OS
20+
execute_process(COMMAND pcap-config --cflags
21+
OUTPUT_VARIABLE PCAP_INCLUDE_DIRS
22+
OUTPUT_STRIP_TRAILING_WHITESPACE
23+
RESULT_VARIABLE STATUS)
24+
if ("${STATUS}" STREQUAL "0")
25+
message("Found 'libpcap' via pcap-config")
26+
execute_process(COMMAND pcap-config --libs
27+
OUTPUT_VARIABLE PCAP_LIBRARIES
28+
OUTPUT_STRIP_TRAILING_WHITESPACE)
29+
set(PCAP_FOUND "1")
30+
endif()
2531
endif()
26-
execute_process(COMMAND pcap-config --libs
27-
OUTPUT_VARIABLE PCAP_LIBRARIES
28-
OUTPUT_STRIP_TRAILING_WHITESPACE)
2932
endif()
3033

3134
find_package(Boost REQUIRED)
3235

3336
include(${CMAKE_SOURCE_DIR}/source/slip.cmake)
3437

3538
set(SOURCE_FILES
36-
Tfe/tfearch.cpp
3739
Tfe/tfesupp.cpp
3840
Tfe/NetworkBackend.cpp
3941
Tfe/PCapBackend.cpp
@@ -121,6 +123,12 @@ set(SOURCE_FILES
121123
linux/duplicates/FourPlay.cpp
122124
linux/duplicates/SNESMAX.cpp
123125
linux/duplicates/Keyboard.cpp
126+
linux/duplicates/PageConfig.cpp
127+
linux/duplicates/PageConfigTfe.cpp
128+
linux/duplicates/PageInput.cpp
129+
linux/duplicates/PageSound.cpp
130+
linux/duplicates/PageDisk.cpp
131+
linux/duplicates/PageAdvanced.cpp
124132

125133
devrelay/commands/Close.cpp
126134
devrelay/commands/Control.cpp
@@ -274,6 +282,12 @@ add_library(appleii STATIC
274282
${HEADER_FILES}
275283
)
276284

285+
if ("${PCAP_FOUND}" STREQUAL "1")
286+
target_sources(appleii PRIVATE Tfe/tfearch.cpp)
287+
else()
288+
target_sources(appleii PRIVATE linux/duplicates/tfearch.cpp)
289+
endif()
290+
277291
target_include_directories(appleii PRIVATE
278292
${YAML_INCLUDE_DIRS}
279293
${PCAP_INCLUDE_DIRS}

source/Debugger/Debugger_Disassembler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ char FormatChar4Font(const BYTE b, bool* pWasHi_, bool* pWasLo_)
124124
// Disassembly
125125
/*
126126
// Thought about moving MouseText to another location, say high bit, 'A' + 0x80
127-
// But would like to keep compatibility with existing CHARSET40
127+
// But would like to keep compatibility with existing CHARSET40 - UPDATE: we now use original video ROMs (GH#1308)
128128
// Since we should be able to display all apple chars 0x00 .. 0xFF with minimal processing
129129
// Use CONSOLE_COLOR_ESCAPE_CHAR to shift to mouse text
130130
* Apple Font

0 commit comments

Comments
 (0)