Publish VCC Plus OSS source distribution for 3.6.2 build 60
This commit is contained in:
commit
c652a5276d
1192 files changed
+272368
No files matched your search
@@ -0,0 +1,16 @@
|
||||
To enable cloud9 clock in EOU:
|
||||
|
||||
cd /dd/boots
|
||||
|
||||
ezgen os9boot.sdc
|
||||
l Clock2
|
||||
d
|
||||
i /dd/modules/6309l2/modules/clocks/clock2_cloud9
|
||||
q
|
||||
|
||||
swapboot
|
||||
select <5> Boot for SDC
|
||||
|
||||
cd /dd
|
||||
|
||||
comment out or delete settime line in startup
|
||||
@@ -0,0 +1,66 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
|
||||
//----------------------------------------------------------------------
|
||||
// This file is part of VCC (Virtual Color Computer).
|
||||
// Vcc is Copyright 2015 by Joseph Forgione
|
||||
//
|
||||
// VCC (Virtual Color Computer) is free software, you can redistribute it
|
||||
// and/or modify it under the terms of the GNU General Public License as
|
||||
// published by the Free Software Foundation, either version 3 of the License,
|
||||
// or (at your option) any later version.
|
||||
//
|
||||
// VCC (Virtual Color Computer) is distributed in the hope that it will be
|
||||
// useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
||||
// Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with VCC (Virtual Color Computer). If not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
#define IDS_MODULE_NAME 1
|
||||
#define IDS_VERSION 2
|
||||
#define IDS_CATNUMBER 3
|
||||
#define IDS_DESCRIPTION 4
|
||||
#define IDD_CONTROL 101
|
||||
#define IDD_CONFIG 102
|
||||
|
||||
#define ID_SD_BOX 1000
|
||||
#define IDC_CLOCK 1002
|
||||
#define ID_NEXT 1003
|
||||
#define ID_SD_SELECT 1004
|
||||
#define ID_STARTUP_BANK 1005
|
||||
#define ID_DISK0 1006
|
||||
#define ID_DISK1 1007
|
||||
#define ID_CONFIGURE 1008
|
||||
|
||||
#define ID_TEXT0 1010
|
||||
#define ID_TEXT1 1011
|
||||
#define ID_TEXT2 1012
|
||||
#define ID_TEXT3 1013
|
||||
#define ID_TEXT4 1014
|
||||
#define ID_TEXT5 1015
|
||||
#define ID_TEXT6 1016
|
||||
#define ID_TEXT7 1017
|
||||
|
||||
#define ID_UPDATE0 1020
|
||||
#define ID_UPDATE1 1021
|
||||
#define ID_UPDATE2 1022
|
||||
#define ID_UPDATE3 1023
|
||||
#define ID_UPDATE4 1024
|
||||
#define ID_UPDATE5 1025
|
||||
#define ID_UPDATE6 1026
|
||||
#define ID_UPDATE7 1027
|
||||
|
||||
|
||||
// Next default values for new objects
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 105
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1005
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,170 @@
|
||||
// SDC simulator DLL
|
||||
//
|
||||
// By E J Jaquay 2025
|
||||
//
|
||||
// This file is part of VCC (Virtual Color Computer).
|
||||
// Vcc is Copyright 2015 by Joseph Forgione
|
||||
//
|
||||
// VCC (Virtual Color Computer) is free software, you can redistribute
|
||||
// and/or modify it under the terms of the GNU General Public License
|
||||
// as published by the Free Software Foundation, either version 3 of
|
||||
// the License, or (at your option) any later version.
|
||||
//
|
||||
// VCC (Virtual Color Computer) is distributed in the hope that it will
|
||||
// be useful, but WITHOUT ANY WARRANTY; without even the implied
|
||||
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
// See the GNU General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU General Public License
|
||||
// along with VCC (Virtual Color Computer). If not, see
|
||||
// <http://www.gnu.org/licenses/>.
|
||||
//
|
||||
//======================================================================
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <Windows.h>
|
||||
#include <vcc/util/logger.h>
|
||||
#include "../../../src/core/Interrupts.h"
|
||||
|
||||
#include "resource.h"
|
||||
|
||||
// Return values for status register
|
||||
#define STA_NORMAL 0x00
|
||||
#define STA_BUSY 0x01
|
||||
#define STA_READY 0x02 // reply from command is ready
|
||||
#define STA_INVALID 0x04 // file or dir path is invalid
|
||||
#define STA_WIN_ERROR 0x08 // Misc windows error
|
||||
#define STA_INITERROR 0x08 // Directory not initiated
|
||||
#define STA_READERROR 0x08 // Read error
|
||||
#define STA_BAD_LSN 0x10 // LSN or no image error
|
||||
#define STA_NOTFOUND 0x10 // file (directory) not found
|
||||
#define STA_DELETED 0x20 // Sector deleted mark
|
||||
#define STA_INUSE 0x20 // image already in use
|
||||
#define STA_NOTEMPTY 0x20 // Delete directory error
|
||||
#define STA_WPROTECT 0x40 // write protect error
|
||||
#define STA_FAIL 0x80
|
||||
|
||||
#define FLP_NORMAL 0x00
|
||||
#define FLP_BUSY 0x01 // b0 Busy
|
||||
#define FLP_DATAREQ 0x02 // b1 DRQ
|
||||
#define FLP_DATALOST 0x04 // b2 Lost data
|
||||
#define FLP_READERR 0x08 // b3 Read error (CRC)
|
||||
#define FLP_SEEKERR 0x10 // b4 Seek error
|
||||
#define FLP_WRITEERR 0x20 // b5 Write error (Fault)
|
||||
#define FLP_READONLY 0x40 // b6 Write protected
|
||||
#define FLP_NOTREADY 0x80 // b7 Not ready
|
||||
|
||||
// Single byte file attributes for File info records
|
||||
#define ATTR_NORM 0x00
|
||||
#define ATTR_RDONLY 0x01
|
||||
#define ATTR_HIDDEN 0x02
|
||||
#define ATTR_SDF 0x04
|
||||
#define ATTR_DIR 0x10
|
||||
|
||||
// Disk Types
|
||||
enum DiskType {
|
||||
DTYPE_RAW = 0,
|
||||
DTYPE_DSK,
|
||||
DTYPE_JVC,
|
||||
DTYPE_VDK,
|
||||
DTYPE_SDF
|
||||
};
|
||||
|
||||
// Limit maximum dsk file size.
|
||||
#define MAX_DSK_SECTORS 2097152
|
||||
|
||||
// HostFile contains a file name, it's size, and directory and readonly flags
|
||||
struct HostFile
|
||||
{
|
||||
std::string name; // LFN 8.3 name
|
||||
DWORD size; // < 4GB
|
||||
bool isDir; // is a directory
|
||||
bool isRdOnly; // is read only
|
||||
HostFile() {}
|
||||
// Construct a HostFile from an argument list
|
||||
HostFile(const char* cName, DWORD nSize, bool isDir, bool isRdOnly) :
|
||||
name(cName), size(nSize), isDir(isDir), isRdOnly(isRdOnly) {}
|
||||
// Construct a HostFile from a WIN32_FIND_DATAA record.
|
||||
HostFile(WIN32_FIND_DATAA fd) :
|
||||
name(fd.cFileName), size(fd.nFileSizeLow),
|
||||
isDir((fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0),
|
||||
isRdOnly((fd.dwFileAttributes & FILE_ATTRIBUTE_READONLY) != 0) {}
|
||||
};
|
||||
|
||||
// FileList contains a list of HostFiles
|
||||
struct FileList
|
||||
{
|
||||
std::vector<HostFile> files; // files
|
||||
std::string directory; // directory files are in
|
||||
size_t cursor = 0; // current file curspr
|
||||
bool nextload_flag = false; // enable next disk loading
|
||||
// append a host file to the list
|
||||
void append(const HostFile& hf) { files.push_back(hf); }
|
||||
};
|
||||
|
||||
// FileRecord is 16 packed bytes file name, type, attrib, and size that can
|
||||
// be passed directly via the SDC interface.
|
||||
#pragma pack(push, 1)
|
||||
struct FileRecord
|
||||
{
|
||||
char FR_name[8];
|
||||
char FR_type[3];
|
||||
char FR_attrib;
|
||||
char FR_hihi_size;
|
||||
char FR_lohi_size;
|
||||
char FR_hilo_size;
|
||||
char FR_lolo_size;
|
||||
FileRecord() noexcept {};
|
||||
FileRecord(const HostFile& hf) noexcept;
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
// CocoDisk contains info about mounted disk files 0 and 1
|
||||
struct CocoDisk
|
||||
{
|
||||
HANDLE hFile; // file handle
|
||||
unsigned int size; // number of bytes total
|
||||
unsigned int headersize; // number of bytes in header
|
||||
DWORD sectorsize; // number of bytes per sector
|
||||
DWORD tracksectors; // number of sectors per side
|
||||
DiskType type; // Disk image type (RAW,DSK,JVC,VDK,SDF)
|
||||
char doublesided; // false:1 side, true:2 sides
|
||||
char name[MAX_PATH]; // name of file (8.3)
|
||||
char fullpath[MAX_PATH]; // full file path
|
||||
struct HostFile hf{"",0,false,false}; //name,size,isDir,isRdOnly
|
||||
struct FileRecord filerec;
|
||||
// Constructor
|
||||
CocoDisk() noexcept
|
||||
: hFile(INVALID_HANDLE_VALUE),
|
||||
size(0),
|
||||
headersize(0),
|
||||
sectorsize(256),
|
||||
tracksectors(18),
|
||||
type(DiskType::DTYPE_RAW),
|
||||
doublesided(1) {
|
||||
name[0] = '\0';
|
||||
fullpath[0] = '\0';
|
||||
};
|
||||
};
|
||||
|
||||
// SDC CoCo Interface
|
||||
struct Interface
|
||||
{
|
||||
int sdclatch;
|
||||
unsigned char cmdcode;
|
||||
unsigned char status;
|
||||
unsigned char reply1;
|
||||
unsigned char reply2;
|
||||
unsigned char reply3;
|
||||
unsigned char param1;
|
||||
unsigned char param2;
|
||||
unsigned char param3;
|
||||
unsigned char reply_mode; // 0=words, 1=bytes
|
||||
unsigned char reply_status;
|
||||
unsigned char half_sent;
|
||||
int bufcnt;
|
||||
char *bufptr;
|
||||
char blkbuf[600];
|
||||
};
|
||||
|
||||
@@ -0,0 +1,198 @@
|
||||
// Microsoft Visual C++ generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "winres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (United States) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE
|
||||
BEGIN
|
||||
"#include ""winres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 2,1,9,3
|
||||
PRODUCTVERSION 2,1,9,3
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x21L
|
||||
#else
|
||||
FILEFLAGS 0x20L
|
||||
#endif
|
||||
FILEOS 0x40004L
|
||||
FILETYPE 0x2L
|
||||
FILESUBTYPE 0x0L
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "040904b0"
|
||||
BEGIN
|
||||
VALUE "Comments", "Simulation of SDC floppy emulator"
|
||||
VALUE "CompanyName", "BitRot Software."
|
||||
VALUE "FileDescription", "SDC Simulator"
|
||||
VALUE "FileVersion", "2.1.9.3"
|
||||
VALUE "InternalName", "SDC"
|
||||
VALUE "LegalCopyright", "Copyright � 2010"
|
||||
VALUE "OriginalFilename", "sdc.dll"
|
||||
VALUE "ProductName", "Vcc Module file"
|
||||
VALUE "ProductVersion", "2.1.9.3"
|
||||
VALUE "SpecialBuild", "SDC Simulator"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_CONTROL DIALOGEX 0, 0, 95, 40
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "SDC Disk 0"
|
||||
FONT 8, "MS Sans Serif", 0, 0, 0x1
|
||||
BEGIN
|
||||
EDITTEXT ID_DISK0,8,3,80,14,ES_AUTOHSCROLL,0x800L
|
||||
DEFPUSHBUTTON "Next Disk",ID_NEXT,22,21,50,14
|
||||
END
|
||||
|
||||
IDD_CONFIG DIALOGEX 0, 0, 207, 230
|
||||
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "SDC Config"
|
||||
FONT 8, "MS Sans Serif", 0, 0, 0x1
|
||||
BEGIN
|
||||
LTEXT "SD Card Path (Directory)",IDC_STATIC,16,7,100,14
|
||||
EDITTEXT ID_SD_BOX, 16, 19,170,12,ES_AUTOHSCROLL
|
||||
PUSHBUTTON ">",ID_SD_SELECT,188, 19, 12,12
|
||||
|
||||
LTEXT "Flash Banks", IDC_STATIC, 17,39,60,14
|
||||
LTEXT "Startup Bank:",IDC_STATIC, 95,39,45,12
|
||||
EDITTEXT ID_STARTUP_BANK,145, 39, 12,11,ES_NUMBER
|
||||
|
||||
LTEXT "0",IDC_STATIC, 8, 54, 12,10
|
||||
EDITTEXT ID_TEXT0, 16, 52,170,12,ES_READONLY
|
||||
PUSHBUTTON ">",ID_UPDATE0, 188, 52, 12,12
|
||||
|
||||
LTEXT "1",IDC_STATIC, 8, 72, 12,10
|
||||
EDITTEXT ID_TEXT1, 16, 70,170,12,ES_READONLY
|
||||
PUSHBUTTON ">",ID_UPDATE1, 188, 70, 12,12
|
||||
|
||||
LTEXT "2",IDC_STATIC, 8, 90, 12,10
|
||||
EDITTEXT ID_TEXT2, 16, 88,170,12,ES_READONLY
|
||||
PUSHBUTTON ">",ID_UPDATE2, 188, 88, 12,12
|
||||
|
||||
LTEXT "3",IDC_STATIC, 8,108, 18,10
|
||||
EDITTEXT ID_TEXT3, 16,106,170,12,ES_READONLY
|
||||
PUSHBUTTON ">",ID_UPDATE3, 188,106, 12,12
|
||||
|
||||
LTEXT "4",IDC_STATIC, 8,126, 12,10
|
||||
EDITTEXT ID_TEXT4, 16,124,170,12,ES_READONLY
|
||||
PUSHBUTTON ">",ID_UPDATE4, 188,124, 12,12
|
||||
|
||||
LTEXT "5",IDC_STATIC, 8,144, 12,10
|
||||
EDITTEXT ID_TEXT5, 16,142,170,12,ES_READONLY
|
||||
PUSHBUTTON ">",ID_UPDATE5, 188,142, 12,12
|
||||
|
||||
LTEXT "6",IDC_STATIC, 8,162, 12,10
|
||||
EDITTEXT ID_TEXT6, 16,160,170,12,ES_READONLY
|
||||
PUSHBUTTON ">",ID_UPDATE6, 188,160, 12,12
|
||||
|
||||
LTEXT "7",IDC_STATIC, 8,180, 12,10
|
||||
EDITTEXT ID_TEXT7, 16,178,170,12,ES_READONLY
|
||||
PUSHBUTTON ">",ID_UPDATE7, 188,178, 12,12
|
||||
|
||||
CONTROL "Enable Cloud9 clock ($FF70)",IDC_CLOCK,"Button",BS_AUTOCHECKBOX,15,203,140,10
|
||||
PUSHBUTTON "OK",IDOK,147,201,53,18
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO
|
||||
BEGIN
|
||||
IDD_CONFIG, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 163
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 55
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// String Table
|
||||
//
|
||||
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
IDS_MODULE_NAME "SDC simulator"
|
||||
IDS_VERSION "1.0"
|
||||
IDS_DESCRIPTION "Simulation of Darren Atkinson's SDC floppy drive emulator with an added Cloud9 Clock. Uses SCS selectable disk ports. The included sdc-dos rom manages SCS selection to allow access to the first two FD502 floppy drives if present. Supports most, but not all, SDC functions."
|
||||
END
|
||||
|
||||
#endif // English (United States) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
||||
@@ -0,0 +1,116 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Legacy|Win32">
|
||||
<Configuration>Legacy</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<SccProjectName />
|
||||
<SccLocalPath />
|
||||
<ProjectGuid>{597294EB-A5F9-44C4-A68C-54C3116E8D36}</ProjectGuid>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Legacy|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v141_xp</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Legacy|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="..\vcc-base.props" />
|
||||
<Import Project="..\vcc-legacy.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="..\vcc-base.props" />
|
||||
<Import Project="..\vcc-release.props" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
<Import Project="..\vcc-base.props" />
|
||||
<Import Project="..\vcc-debug.props" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Legacy|Win32'">
|
||||
<LibraryPath>C:\Program Files %28x86%29\Windows Kits\8.1\Lib\winv6.3\um\x86;$(LibraryPath)</LibraryPath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" />
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>WIN32;sdc_EXPORTS;$(USER_PP_DEF);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<ResourceCompile />
|
||||
<Link>
|
||||
<LinkDLL>true</LinkDLL>
|
||||
<AdditionalDependencies>Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Legacy|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>WIN32;_USRDLL;sdc_EXPORTS;_LEGACY_VCC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalOptions>/arch:SSE</AdditionalOptions>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<Culture>0x0409</Culture>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<LinkDLL>true</LinkDLL>
|
||||
<AdditionalDependencies>Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>WIN32;sdc_EXPORTS;$(USER_PP_DEF);%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalOptions>/arch:SSE</AdditionalOptions>
|
||||
</ClCompile>
|
||||
<ResourceCompile />
|
||||
<Link>
|
||||
<LinkDLL>true</LinkDLL>
|
||||
<AdditionalDependencies>Shlwapi.lib;%(AdditionalDependencies)</AdditionalDependencies>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="sdc.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="sdc.h" />
|
||||
<ClInclude Include="resource.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="sdc.rc" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\libcommon\libcommon.vcxproj">
|
||||
<Project>{e0aa25bd-5527-475f-8d8b-b549a6311b0c}</Project>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,111 @@
|
||||
The CoCo SDC contains 128K of Flash memory which is divided into
|
||||
eight banks of 16K. The active Flash bank appears in the CoCo
|
||||
memory map from $C000 to $FEFF. Flash is SST 39SF010A
|
||||
|
||||
Each bank is divided into four sectors of 4K:
|
||||
|
||||
0 $C000 - $CFFF
|
||||
1 $D000 - $DFFF
|
||||
2 $E000 - $EFFF
|
||||
3 $F000 - $FEFF
|
||||
|
||||
The SDC-DOS WRITE MEM command is used to change one or more bytes:
|
||||
|
||||
WRITE MEM @bank, source, destination, count
|
||||
|
||||
Destination is $C000-$FEFF.
|
||||
|
||||
To actually write a byte to a bank a sequence of four writes is
|
||||
used. The first three are unlock writes used to prepare the 39SF010A
|
||||
flash. The last actually writes the data:
|
||||
|
||||
1 write bank 1 $D555 $AA
|
||||
2 write bank 0 $EAAA $55
|
||||
3 write bank 1 $D555 $A0
|
||||
4 write data to target bank
|
||||
|
||||
To do each write:
|
||||
|
||||
1 Store value to write in the Flash Data register
|
||||
2 Write bank number ORed with $80 to Flash Control register
|
||||
3 Read from the target address
|
||||
|
||||
-------------------------------------
|
||||
|
||||
Test write using SDC-DOS "DISK" still at $400
|
||||
|
||||
WRITE MEM @4, &H400, &HC000, 4
|
||||
|
||||
Result:
|
||||
|
||||
LoadRom load flash bank 4
|
||||
|
||||
WriteFlashBank 0 1 1555 AA state, bank, address, data
|
||||
WriteFlashBank 1 0 2AAA 55
|
||||
WriteFlashBank 2 1 1555 A0
|
||||
WriteFlashBank 3 4 0000 44 "D" written to flash
|
||||
|
||||
WriteFlashBank 0 1 1555 AA
|
||||
WriteFlashBank 1 0 2AAA 55
|
||||
WriteFlashBank 2 1 1555 A0
|
||||
WriteFlashBank 3 4 0001 49 "I" written to flash
|
||||
|
||||
WriteFlashBank 0 1 1555 AA
|
||||
WriteFlashBank 1 0 2AAA 55
|
||||
WriteFlashBank 2 1 1555 A0
|
||||
WriteFlashBank 3 4 0002 53 "S" written to flash
|
||||
|
||||
WriteFlashBank 0 1 1555 AA
|
||||
WriteFlashBank 1 0 2AAA 55
|
||||
WriteFlashBank 2 1 1555 A0
|
||||
WriteFlashBank 3 4 0003 4B "K" written to flash
|
||||
|
||||
LoadRom switching out dirty bank 4
|
||||
LoadRom load flash bank 0
|
||||
|
||||
--------------------------------------
|
||||
KILL MEM uses the sector erase sequence.
|
||||
|
||||
1 write bank 1 $D555 $AA
|
||||
2 write bank 0 $EAAA $55
|
||||
3 write bank 1 $D555 $80
|
||||
4 write bank 1 $D555 $AA
|
||||
5 write bank 0 $EAAA $55
|
||||
6 write bank # #Sect $30 // Sector $0000,$1000,$2000,$3000
|
||||
|
||||
Test kill mem. Note LoadRom occurs after the first sequence
|
||||
|
||||
KILL MEM @4
|
||||
|
||||
WriteFlashBank 0 1 1555 AA state, bank, address, data
|
||||
WriteFlashBank 1 0 2AAA 55
|
||||
WriteFlashBank 2 1 1555 80
|
||||
WriteFlashBank 4 1 1555 AA
|
||||
WriteFlashBank 5 0 2AAA 55
|
||||
WriteFlashBank 6 4 0000 30 0
|
||||
|
||||
LoadRom load flash bank 4
|
||||
|
||||
WriteFlashBank 0 1 1555 AA
|
||||
WriteFlashBank 1 0 2AAA 55
|
||||
WriteFlashBank 2 1 1555 80
|
||||
WriteFlashBank 4 1 1555 AA
|
||||
WriteFlashBank 5 0 2AAA 55
|
||||
WriteFlashBank 6 4 1000 30 1
|
||||
|
||||
WriteFlashBank 0 1 1555 AA
|
||||
WriteFlashBank 1 0 2AAA 55
|
||||
WriteFlashBank 2 1 1555 80
|
||||
WriteFlashBank 4 1 1555 AA
|
||||
WriteFlashBank 5 0 2AAA 55
|
||||
WriteFlashBank 6 4 2000 30 2
|
||||
|
||||
WriteFlashBank 0 1 1555 AA
|
||||
WriteFlashBank 1 0 2AAA 55
|
||||
WriteFlashBank 2 1 1555 80
|
||||
WriteFlashBank 4 1 1555 AA
|
||||
WriteFlashBank 5 0 2AAA 55
|
||||
WriteFlashBank 6 4 3000 30 3
|
||||
|
||||
LoadRom load flash bank 0
|
||||
|
||||
Reference in new issue
Block a user