Kelvin Lee
0f7e240841
Debugger: Fix to use logical "&&" for boolean variables (PR #1073 )
2022-03-27 20:44:50 +01:00
Kelvin Lee
eac88a340d
Fix spelling: "seperator" -> "separator" (PR #1071 )
2022-03-25 20:11:33 +00:00
TomCh
a3774705e9
Update README.md
2022-03-23 21:43:24 +00:00
tomcw
37445c4e35
1.30.9.0: Update History.txt
2022-03-23 20:11:50 +00:00
tomcw
7640ce8383
AppleWin.chm: credit @audetto for his work done on Uthernet II support (+other tweaks)
2022-03-22 19:51:25 +00:00
Andrea
500c2e50b6
Uthernet II: handle TCP connection failure. (PR #1070 )
2022-03-22 19:39:49 +00:00
Andrea
cdd360bdfe
Uthernet II: implement IPRAW sockets. (PR #1069 )
2022-03-22 19:30:42 +00:00
Kelvin Lee
2d4f60452f
Add ByteToHexStr() and WordToHexStr() (PR #1064 )
...
- Simplify common StrFormat(), especially in Debugger (changes upcoming)
- Add helpers StrAppendByteAsHex() and StrAppendWordAsHex()
- Add helpers StrBufferAppendByteAsHex() and StrBufferAppendWordAsHex() for plain string buffer
2022-03-22 19:19:50 +00:00
TomCh
119db28de1
Update README.md
2022-03-20 16:38:14 +00:00
TomCh
b4b29e1ef5
Refactor ParallelPrinter.cpp/h as a C++ class (PR #1067 )
...
Add command line: -s1 parallel.
NB. Only a single Parallel Printer card is supported, and currently it's restricted to slot 1.
2022-03-18 22:04:34 +00:00
tomcw
cbc0c2cf87
Save-state: wrap string in quotes when it contains comment char '#'. Fixes #1066
2022-03-17 20:14:52 +00:00
Andrea
a4341aa808
tfesupp: remove all manual string manipulations - just use std::string. (PR #1065 )
2022-03-14 21:12:52 +00:00
tomcw
00668c2668
Debugger "help <cmd>" : fix formatting.
...
And specifically for "help brk" - split help across an extra line for better readability
2022-03-14 20:50:21 +00:00
tomcw
169f0b29e8
Slot 3: make the default (ie. vanilla install of AppleWin) have an empty slot 3.
...
. Previously it would default to Uthernet, but there are now other slot 3 card options.
2022-03-13 17:19:21 +00:00
Kelvin Lee
e38e48e3a6
Debugger: replace sprintf() part 1 (PR #1060 )
...
- Add MemoryTextFile_t::PushLineFormat()
- Replace some sprintf() with PushLineFormat()
2022-03-13 16:37:25 +00:00
tomcw
35ec3fcc7f
Fix crash when in Config GUI -> Disk:
...
. eg. add DiskII in slot-5, cancel, then access $C0Dx
Change IsCardInSlot() to use CardMgr().QuerySlot()
2022-03-13 16:12:01 +00:00
Andrea
231e6c6d64
Cards: remove special call to InitializeIO() for Disk and Harddisk. (PR #1061 )
2022-03-13 15:45:43 +00:00
Kelvin Lee
be846efc83
Use clear() instread of erase(begin(), end()). (PR #1053 )
2022-03-12 11:19:34 +00:00
tomcw
51149083e6
Add log msg for power-cycle, and improve debug-check for U1 $Csnn I/O access.
2022-03-12 10:16:38 +00:00
Andrea
12d1a0e1fe
Card: cleanup interface. (PR #1059 )
...
1) Remove Init()
2) Call Reset() via CardManager
3) Call Destroy() via CardManager (only used by Disks/Harddisk) on WM_DESTROY
The only "real" changes are in CSuperSerialCard: ensure destructor cleans up and remove Destroy().
2022-03-11 22:17:03 +00:00
Andrea
bbe2a7f8ee
Uthernet II card: support save/load state. (PR #1054 )
...
NB. do not attempt to restore a UDP / TCP socket.
2022-03-07 21:08:31 +00:00
TomCh
10337aa95c
Update CONTRIBUTING.md
...
Add link to Coding Conventions doc.
2022-03-05 11:48:33 +00:00
tomcw
45f30a86a3
Coding Conventions: update for Platform Toolset v141_xp (C++11/14/17) and StrFormat() rule. ( #1050 )
2022-03-05 11:43:06 +00:00
tomcw
648f832647
Debugger: minor stop-reason refactor
2022-03-02 21:25:04 +00:00
Kelvin Lee
dfb8802763
Replace sprintf() with StrFormat() (PR #1048 )
2022-03-02 21:10:41 +00:00
Kelvin Lee
80f3eaeb91
Various *Name() functions can simply return const std::string& (PR #1049 )
2022-02-28 20:52:18 +00:00
tomcw
d2004553f1
Remove old tfe.cpp
2022-02-27 18:06:15 +00:00
Andrea
9f8c4d99af
Add Uthernet II support and make Uthernet I a Card. (PR #1047 )
...
. tfe.cpp renamed to Uthernet1.cpp.
. add class NetworkBackend: common to both U1 and U2 cards, and abstracts Windows/Linux backends.
. modernise error message if WPCAP.DLL is not installed.
2022-02-27 17:26:48 +00:00
tomcw
514d2adb79
6522: Fix IFR.T2 when counter.b15=1
2022-02-26 21:10:42 +00:00
tomcw
c277c5152d
Fix a few medium Coverity defects:
...
1514566, 1063811
2022-02-26 20:23:00 +00:00
tomcw
707993b686
Fix LogOutput() to call StrFormatV()
2022-02-26 18:39:39 +00:00
Kelvin Lee
253a59fde6
Replace sprintf_s() and wsprintf() with StrFormat(). (PR #1041 )
...
And these Debugger related:
. Improve FormatAddress() and GetSymbol().
. GetSymbol(), FindSymbolFromAddress(), FormatAddress() are changed to use std::string instead.
. Remove static variable (not nice) in FormatAddress().
. GetSymbol() returns std::string reference instead of pointer.
2022-02-26 17:54:06 +00:00
Andrea
9ad6b11cf9
Fix some format errors. (PR #1042 )
2022-02-26 17:15:09 +00:00
Kelvin Lee
5a5d0e2df4
Debugger: Simplify console print (PR #1038 )
...
. Simplify console display functions using StrFormat()
. Update TestDebugger that needs StrFormat() now
2022-02-17 22:12:04 +00:00
tomcw
43b9df253a
Fix build errors from PR #1039
2022-02-16 20:14:40 +00:00
Kelvin Lee
7ae8907674
Remove unnecessary static std::string variables (PR #1039 )
2022-02-16 20:09:10 +00:00
sh95014
8cb3d4c88c
Make DiskGetFullPathName() public. (PR #1035 )
...
Reasons:
. a macOS port needs it for the disk image browser feature.
. for consistency with "class HarddiskInterfaceCard".
2022-02-15 19:02:03 +00:00
Kelvin Lee
1a4e933778
Replace StringCbPrintf() with StrFormat() (PR #1032 )
2022-02-15 18:48:20 +00:00
Andrea
48dd638d33
Synchronize Linux build. (PR #1037 )
...
. remove OutputDebugStringA()
. push changes to StdAfx.h
. mention g_strSaveStatePathname in the error message for loading save-state
2022-02-14 20:37:18 +00:00
Kelvin Lee
9a3832084a
Simplify the common combination of sprintf() and OutputDebugString() (PR #1031 )
...
- Update LogOutput() and LogFileOutput().
- Add StrFormat() to produce std::string out of snprintf() & add StrFormat.cpp to projects.
- Add PTRDIFF_T_FMT in parallel to SIZE_T_FMT to StdAfx.h, for completeness.
- In Log.cpp, changed to get timestamp using posix functions.
- Removed TCHAR usage throughout - simply use char.
2022-02-13 21:37:05 +00:00
tomcw
83e56924f7
WM_CREATE: remove CpuCreateCriticalSection(), since done in SY6522.Reset()
2022-02-13 12:37:33 +00:00
tomcw
b519031de4
WM_CREATE: call CpuCreateCriticalSection() instead of CpuInitialize()
2022-02-12 19:11:34 +00:00
tomcw
3fe06faf65
MB/6522: remove the legacy g_nMBTimerDevice variable.
...
Fix ASSERT from previous commit as SY6522.Reset() needs CriticalSection.
2022-02-12 18:42:58 +00:00
Andrea
8bbb85b1e8
SY6522: initialise device. (PR #1036 )
2022-02-12 17:29:49 +00:00
sh95014
9459ec261a
Writes to Printer Interface card strobe should not be interpreted as a data byte ( #1017 PR #1027 )
2022-02-11 20:57:09 +00:00
tomcw
3d39698d2c
CHM: Bump copyright year
2022-02-08 21:24:50 +00:00
tomcw
771d9b1328
1.30.8.0: Update History.txt
2022-02-08 20:32:02 +00:00
Kelvin Lee
ad73f3ec37
A couple of smallish fixes (PR #1029 )
...
. Fix VS2008 build: int8_t is not defined
. Fix VC compile warning C4800: forcing int to bool
2022-02-05 22:02:26 +00:00
TomCh
f7c6ef397c
Split 6522 out of MB code and into own class (PR #1028 )
...
NB. Update CpuInitialize() & CriticalSection creation:
. call CpuInitialize() on WM_CREATE to create CriticalSection
. needed as MB_Initialize() needs CriticalSection
2022-02-05 18:48:36 +00:00
tomcw
53ab72ce13
Card.cpp: add newline at EOF
2022-01-30 21:37:40 +00:00