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,371 @@
|
||||
//#define USE_LOGGING
|
||||
//======================================================================
|
||||
// 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/>.
|
||||
//
|
||||
//======================================================================
|
||||
|
||||
#include <string>
|
||||
#include "IdeBus.h"
|
||||
#include <stdio.h>
|
||||
#include <Windows.h>
|
||||
#include <vcc/util/logger.h>
|
||||
|
||||
static unsigned int Lba=0,LastLba;
|
||||
static unsigned char XferBuffer[512]="";
|
||||
|
||||
static unsigned int BufferIndex=0;
|
||||
static unsigned int BufferLenth=0;
|
||||
static unsigned char CurrentCommand=0;
|
||||
void ExecuteCommand();
|
||||
void ByteSwap (char *);
|
||||
static IDEINTERFACE Registers;
|
||||
static HANDLE hDiskFile[2] {};
|
||||
static unsigned char DiskSelect=0,LbaEnabled=0;
|
||||
unsigned long BytesMoved=0;
|
||||
unsigned char BusyCounter=BUSYWAIT;
|
||||
HANDLE OpenDisk(const char *,unsigned char);
|
||||
static unsigned short IDBlock[2][256];
|
||||
static unsigned char Mounted=0,ScanCount=0;
|
||||
static char CurrStatus[32]="IDE:Idle ";
|
||||
static char FileNames[2][MAX_PATH]={"",""};
|
||||
|
||||
void IdeInit()
|
||||
{
|
||||
Registers.Command=0;
|
||||
Registers.Cylinderlsb=0;
|
||||
Registers.Cylindermsb=0;
|
||||
Registers.Data=0;
|
||||
Registers.Error[MASTER]=0;
|
||||
Registers.Error[SLAVE]=0;
|
||||
Registers.Head=0;
|
||||
Registers.SecCount=0;
|
||||
Registers.SecNumber=0;
|
||||
Registers.Status[MASTER]=0;
|
||||
Registers.Status[SLAVE]=0;
|
||||
Lba=0;
|
||||
BufferIndex=0;
|
||||
CurrentCommand=0;
|
||||
BufferLenth=0;
|
||||
memset(XferBuffer,0,512);
|
||||
return;
|
||||
}
|
||||
|
||||
void IdeRegWrite(unsigned char Reg,unsigned short Data)
|
||||
{
|
||||
unsigned char SData=(unsigned char)Data&0xFF;
|
||||
|
||||
switch (Reg)
|
||||
{
|
||||
case 0x0:
|
||||
if (!CurrentCommand)
|
||||
return;
|
||||
Registers.Data=Data;
|
||||
XferBuffer[BufferIndex]= Registers.Data & 0xFF;
|
||||
XferBuffer[BufferIndex+1]=(Registers.Data>>8)&0xFF;
|
||||
BufferIndex+=2;
|
||||
if (BufferIndex>=BufferLenth)
|
||||
{
|
||||
if ((CurrentCommand==0x30) | (CurrentCommand==0x31))
|
||||
{
|
||||
SetFilePointer(hDiskFile[DiskSelect],Lba*512,nullptr,FILE_BEGIN);
|
||||
WriteFile(hDiskFile[DiskSelect],XferBuffer,512,&BytesMoved,nullptr);
|
||||
}
|
||||
BufferIndex=0;
|
||||
BufferLenth=0;
|
||||
CurrentCommand=0;
|
||||
Registers.Status[DiskSelect]=RDY;
|
||||
Registers.Error[DiskSelect]=0;
|
||||
}
|
||||
break;
|
||||
case 0x1:
|
||||
// Registers.Error=SData; //Write Precomp on write not used
|
||||
break;
|
||||
case 0x2:
|
||||
Registers.SecCount=SData;
|
||||
break;
|
||||
case 0x3:
|
||||
Registers.SecNumber=SData;
|
||||
break;
|
||||
case 0x4:
|
||||
Registers.Cylinderlsb=SData;
|
||||
break;
|
||||
case 0x5:
|
||||
Registers.Cylindermsb=SData;
|
||||
break;
|
||||
case 0x6:
|
||||
Registers.Head=SData;
|
||||
break;
|
||||
case 0x7:
|
||||
Registers.Command=SData;
|
||||
ExecuteCommand();
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
} //End port switch
|
||||
Lba=((Registers.Head&15)<<24)+(Registers.Cylindermsb<<16)+(Registers.Cylinderlsb<<8)+Registers.SecNumber;
|
||||
DiskSelect=(Registers.Head >>4)&1;
|
||||
LbaEnabled=(Registers.Head >>6)&1;
|
||||
//LBa = [ (Cylinder * No of Heads + Heads) * Sectors/Track ] + (Sector-1) //CHS translation
|
||||
}
|
||||
|
||||
unsigned short IdeRegRead(unsigned char Reg)
|
||||
{
|
||||
unsigned short RetVal=0;
|
||||
|
||||
switch (Reg)
|
||||
{
|
||||
case 0x0:
|
||||
if (!CurrentCommand)
|
||||
return 0;
|
||||
Registers.Data=XferBuffer[BufferIndex] + (XferBuffer[BufferIndex+1]<<8);
|
||||
BufferIndex+=2;
|
||||
if (BufferIndex>=BufferLenth)
|
||||
{
|
||||
BufferIndex=0;
|
||||
BufferLenth=0;
|
||||
CurrentCommand=0;
|
||||
Registers.Status[DiskSelect]=RDY;
|
||||
Registers.Error[DiskSelect]=0;
|
||||
}
|
||||
RetVal=Registers.Data;
|
||||
break;
|
||||
case 0x1:
|
||||
RetVal=Registers.Error[DiskSelect];
|
||||
break;
|
||||
case 0x2:
|
||||
RetVal=Registers.SecCount;
|
||||
break;
|
||||
case 0x3:
|
||||
RetVal=Registers.SecNumber;
|
||||
break;
|
||||
case 0x4:
|
||||
RetVal=Registers.Cylinderlsb;
|
||||
break;
|
||||
case 0x5:
|
||||
RetVal=Registers.Cylindermsb;
|
||||
break;
|
||||
case 0x6:
|
||||
RetVal=Registers.Head;
|
||||
break;
|
||||
case 0x7:
|
||||
if (BusyCounter)
|
||||
{
|
||||
BusyCounter--;
|
||||
return BUSY;
|
||||
}
|
||||
RetVal=Registers.Status[DiskSelect];
|
||||
break;
|
||||
|
||||
default:
|
||||
RetVal=0;
|
||||
break;
|
||||
} //End port switch
|
||||
return RetVal;
|
||||
}
|
||||
|
||||
void ExecuteCommand()
|
||||
{
|
||||
CurrentCommand=Registers.Command;
|
||||
char Temp=0;
|
||||
switch (Registers.Command)
|
||||
{
|
||||
|
||||
case 0x90: //Diagnostics
|
||||
for (Temp=0;Temp<=1;Temp++)
|
||||
{
|
||||
Registers.Error[Temp]=0;
|
||||
Registers.Status[Temp]=0;
|
||||
if (hDiskFile[Temp]!=INVALID_HANDLE_VALUE)
|
||||
{
|
||||
Registers.Error[Temp]=0x01;
|
||||
Registers.Status[Temp]=0x50;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 0xEC: //Indentify Drive
|
||||
memcpy(XferBuffer,IDBlock[DiskSelect],512);
|
||||
BufferLenth=512;
|
||||
BufferIndex=0;
|
||||
Registers.Status[DiskSelect]=DRQ|RDY;
|
||||
BusyCounter=BUSYWAIT;
|
||||
break;
|
||||
|
||||
case 0x20: //Read Sectors /w Retry
|
||||
case 0x21: //Read Sectors /wo Retry
|
||||
sprintf(CurrStatus,"IDE: Rd Sec %000000.6X",Lba);
|
||||
BusyCounter=BUSYWAIT;
|
||||
BufferLenth=512;
|
||||
BufferIndex=0;
|
||||
Registers.Status[DiskSelect]=DRQ|RDY;
|
||||
SetFilePointer(hDiskFile[DiskSelect],Lba*512,nullptr,FILE_BEGIN);
|
||||
memset(XferBuffer,0,512);
|
||||
ReadFile(hDiskFile[DiskSelect],XferBuffer,512,&BytesMoved,nullptr);
|
||||
LastLba=Lba;
|
||||
|
||||
break;
|
||||
|
||||
case 0x30: //Write Sectors /w Retry
|
||||
case 0x31: //Write Sectors /wo Retry
|
||||
sprintf(CurrStatus,"IDE: Wr Sec %000000.6X",Lba);
|
||||
BusyCounter=BUSYWAIT;
|
||||
BufferLenth=512;
|
||||
BufferIndex=0;
|
||||
Registers.Status[DiskSelect]=DRQ|RDY;
|
||||
memset(XferBuffer,0,512);
|
||||
break;
|
||||
case 0x50: //Format Track
|
||||
|
||||
break;
|
||||
case 0x10: //All Recalibrate
|
||||
case 0x11:
|
||||
case 0x12:
|
||||
case 0x13:
|
||||
case 0x14:
|
||||
case 0x15:
|
||||
case 0x16:
|
||||
case 0x17:
|
||||
case 0x18:
|
||||
case 0x19:
|
||||
case 0x1A:
|
||||
case 0x1B:
|
||||
case 0x1C:
|
||||
case 0x1D:
|
||||
case 0x1E:
|
||||
case 0x1F:
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
void ByteSwap (char *String)
|
||||
{
|
||||
int Index=0,Index2=0;
|
||||
int Lenth=strlen(String);
|
||||
char *NewString=(char*)malloc(Lenth+1);
|
||||
memset(NewString, 0, Lenth + 1);
|
||||
|
||||
for (Index=0;Index<(Lenth+1);Index++)
|
||||
if (String[Index^1])
|
||||
NewString[Index2++]=String[Index^1];
|
||||
memcpy(String,NewString,Lenth);
|
||||
free(NewString);
|
||||
return;
|
||||
}
|
||||
|
||||
HANDLE OpenDisk(const char *ImageFile,unsigned char DiskNum)
|
||||
{
|
||||
HANDLE hTemp=nullptr;
|
||||
unsigned long FileSize=0;
|
||||
unsigned long LbaSectors=0;
|
||||
char Model[41]="VCC VIRTUAL IDE DISK";
|
||||
char Firmware[9]="0.99BETA";
|
||||
char SerialNumber[21]="SERIAL NUMBER HERE";
|
||||
|
||||
|
||||
strncpy(SerialNumber,ImageFile,20);
|
||||
|
||||
hTemp=CreateFile( ImageFile,GENERIC_READ | GENERIC_WRITE,0,nullptr,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,nullptr);
|
||||
if (hTemp==INVALID_HANDLE_VALUE)
|
||||
return hTemp;
|
||||
|
||||
Registers.Status[DiskNum]=RDY;
|
||||
Registers.Error[DiskNum]=0;
|
||||
FileSize=SetFilePointer(hTemp,0,nullptr,FILE_END);
|
||||
LbaSectors=FileSize>>9;
|
||||
//Build Disk ID return Buffer
|
||||
ByteSwap(Model);
|
||||
ByteSwap(Firmware);
|
||||
ByteSwap(SerialNumber);
|
||||
memcpy (&IDBlock[DiskNum][27],Model,strlen(Model));
|
||||
memcpy (&IDBlock[DiskNum][23],Firmware,strlen(Firmware));
|
||||
memcpy (&IDBlock[DiskNum][10],SerialNumber,strlen(SerialNumber));
|
||||
IDBlock[DiskNum][01]=(unsigned short)(LbaSectors/0x1000); //Logical Cylinders
|
||||
IDBlock[DiskNum][03]=0x0010; //Logical Heads
|
||||
IDBlock[DiskNum][04]=0x2000; //Logical Bytes per Track
|
||||
IDBlock[DiskNum][05]=512; //Logical Bytes per Sector
|
||||
IDBlock[DiskNum][06]=0x0100; //Logical Sectors per Track
|
||||
IDBlock[DiskNum][20]=1; //Controller Type
|
||||
IDBlock[DiskNum][21]=1; //# of 512Byte Buffers
|
||||
IDBlock[DiskNum][49]=0x0200; //Bit 9=1 LBA Mode supported
|
||||
IDBlock[DiskNum][51]=0x0A00; //PIO Cycle Time Bits 15-8
|
||||
IDBlock[DiskNum][54]=(unsigned short)(LbaSectors/0x1000); //Cylinders
|
||||
IDBlock[DiskNum][55]=0x0010; //Number of Heads
|
||||
IDBlock[DiskNum][56]=0x0100; //Sectors per Track
|
||||
IDBlock[DiskNum][61]=(unsigned short)(LbaSectors>>16); //LBA Sectors
|
||||
IDBlock[DiskNum][60]=(unsigned short)(LbaSectors & 0xFFFF);
|
||||
return hTemp;
|
||||
}
|
||||
|
||||
void DiskStatus(char* text_buffer, size_t buffer_size)
|
||||
{
|
||||
strcpy(text_buffer,CurrStatus);
|
||||
ScanCount++;
|
||||
if (Lba != LastLba)
|
||||
{
|
||||
ScanCount=0;
|
||||
LastLba=Lba;
|
||||
}
|
||||
if (ScanCount > 63)
|
||||
{
|
||||
ScanCount=0;
|
||||
if (Mounted==1)
|
||||
strcpy(CurrStatus,"IDE:Idle");
|
||||
else
|
||||
strcpy(CurrStatus,"IDe:No Image!");
|
||||
}
|
||||
return;
|
||||
}
|
||||
unsigned char MountDisk(const char *FileName,unsigned char DiskNumber)
|
||||
{
|
||||
if (DiskNumber>1)
|
||||
return FALSE;
|
||||
hDiskFile[DiskNumber]=OpenDisk( FileName, DiskNumber);
|
||||
if (hDiskFile[DiskNumber]==INVALID_HANDLE_VALUE)
|
||||
return FALSE;
|
||||
strcpy(FileNames[DiskNumber],FileName);
|
||||
Mounted=1;
|
||||
DLOG_C(">>>MountDisk %d %d<<<\n",DiskNumber,hDiskFile[DiskNumber]);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
unsigned char DropDisk(unsigned char DiskNumber)
|
||||
{
|
||||
DLOG_C(">>>DropDisk %d %d<<<\n",DiskNumber,hDiskFile[DiskNumber]);
|
||||
CloseHandle(hDiskFile[DiskNumber]);
|
||||
hDiskFile[DiskNumber]=INVALID_HANDLE_VALUE;
|
||||
strcpy(FileNames[DiskNumber],"");
|
||||
Mounted=0;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void QueryDisk(unsigned char DiskNumber,char *Name)
|
||||
{
|
||||
strcpy(Name,FileNames[DiskNumber]);
|
||||
return;
|
||||
}
|
||||
|
||||
std::string QueryDisk(unsigned char DiskNumber)
|
||||
{
|
||||
return FileNames[DiskNumber];
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
#ifndef __IDEBUS_H__
|
||||
#define __IDEBUS_H__
|
||||
/*
|
||||
Copyright 2015 by Joseph Forgione
|
||||
This file is part of VCC (Virtual Color Computer).
|
||||
|
||||
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/>.
|
||||
*/
|
||||
#include <string>
|
||||
|
||||
struct IDEINTERFACE {
|
||||
unsigned short Data;
|
||||
unsigned char Error[2];
|
||||
unsigned char SecCount;
|
||||
unsigned char SecNumber;
|
||||
unsigned char Cylinderlsb;
|
||||
unsigned char Cylindermsb;
|
||||
unsigned char Head;
|
||||
unsigned char Command;
|
||||
unsigned char Status[2];
|
||||
};
|
||||
|
||||
void IdeInit();
|
||||
void IdeRegWrite(unsigned char,unsigned short);
|
||||
unsigned short IdeRegRead(unsigned char);
|
||||
void DiskStatus(char* text_buffer, size_t buffer_size);
|
||||
unsigned char MountDisk(const char *,unsigned char );
|
||||
unsigned char DropDisk(unsigned char);
|
||||
void QueryDisk(unsigned char,char *);
|
||||
std::string QueryDisk(unsigned char);
|
||||
|
||||
//Status
|
||||
#define ERR 1 //Previous command ended in an error
|
||||
#define IDX 2 //Unused
|
||||
#define CORR 4 //Unused
|
||||
#define DRQ 8 //Data Request Ready (Sector buffer ready for transfer)
|
||||
#define DSC 16 //Unused
|
||||
#define DF 32 //Write Fault
|
||||
#define RDY 64 //Ready for command
|
||||
#define BUSY 128 //Controller is busy executing a command.
|
||||
|
||||
//Error Codes
|
||||
#define AMNF 1 //Address Mark Not found
|
||||
#define TKONF 2 //Track 0 not found
|
||||
#define ABRT 4 //(Aborted Command) Set when Command Aborted due to drive error.
|
||||
#define MCR 8 //(Media Change Request) Set to 0.
|
||||
#define IDNF 16 //(ID Not Found) Set when Sector ID not found.
|
||||
#define MC 32 //(Media Changed) Set to 0.
|
||||
#define UNC 64 //(Uncorrectable Data Error) Set when Uncorrectable Error is encountered.
|
||||
#define BBK 128 //(Bad Block Detected) Set when a Bad Block is detected.
|
||||
|
||||
|
||||
|
||||
#define BUSYWAIT 5
|
||||
|
||||
#define MASTER 0
|
||||
#define SLAVE 1
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,378 @@
|
||||
//#define USE_LOGGING
|
||||
//======================================================================
|
||||
// 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/>.
|
||||
//
|
||||
//======================================================================
|
||||
|
||||
#include <Windows.h>
|
||||
#include "stdio.h"
|
||||
#include <iostream>
|
||||
#include "resource.h"
|
||||
#include "IdeBus.h"
|
||||
#include <vcc/devices/cloud9.h>
|
||||
#include <vcc/util/FileOps.h>
|
||||
#include <vcc/util/DialogOps.h>
|
||||
#include <vcc/bus/cpak_cartridge_definitions.h>
|
||||
#include <vcc/util/limits.h>
|
||||
#include <vcc/util/logger.h>
|
||||
#include <vcc/bus/cartridge_menu.h>
|
||||
#include <vcc/bus/cartridge_messages.h>
|
||||
#include <vcc/util/fileutil.h>
|
||||
#include <vcc/util/settings.h>
|
||||
|
||||
static char FileName[MAX_PATH] { 0 };
|
||||
static char SuperIDEPath[MAX_PATH];
|
||||
static ::VCC::Device::rtc::cloud9 cloud9_rtc;
|
||||
static unsigned char BaseAddress=0x50;
|
||||
LRESULT CALLBACK IDE_Config(HWND, UINT, WPARAM, LPARAM );
|
||||
void Select_Disk(unsigned char);
|
||||
void SaveConfig();
|
||||
void LoadConfig();
|
||||
unsigned char BaseTable[4]={0x40,0x50,0x60,0x70};
|
||||
bool get_menu_item(menu_item_entry*, size_t index);
|
||||
|
||||
static unsigned char BaseAddr=1;
|
||||
static int ClockEnabled = 1;
|
||||
static int ClockReadOnly = 1;
|
||||
static unsigned char DataLatch=0;
|
||||
static HINSTANCE gModuleInstance;
|
||||
static HWND hConfDlg = nullptr;
|
||||
static slot_id_type gSlotId {};
|
||||
|
||||
static HWND gVccWnd = nullptr;
|
||||
|
||||
using namespace std;
|
||||
|
||||
// Access the settings object
|
||||
static VCC::Util::settings* gpSettings = nullptr;
|
||||
VCC::Util::settings& Setting() {return *gpSettings;}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
extern "C"
|
||||
{
|
||||
|
||||
__declspec(dllexport) const char* PakGetName()
|
||||
{
|
||||
static char string_buffer[MAX_LOADSTRING];
|
||||
|
||||
LoadString(gModuleInstance, IDS_MODULE_NAME, string_buffer, MAX_LOADSTRING);
|
||||
|
||||
return string_buffer;
|
||||
}
|
||||
|
||||
__declspec(dllexport) const char* PakGetCatalogId()
|
||||
{
|
||||
static char string_buffer[MAX_LOADSTRING];
|
||||
|
||||
LoadString(gModuleInstance, IDS_CATNUMBER, string_buffer, MAX_LOADSTRING);
|
||||
|
||||
return string_buffer;
|
||||
}
|
||||
|
||||
__declspec(dllexport) const char* PakGetDescription()
|
||||
{
|
||||
static char string_buffer[MAX_LOADSTRING];
|
||||
|
||||
LoadString(gModuleInstance, IDS_DESCRIPTION, string_buffer, MAX_LOADSTRING);
|
||||
|
||||
return string_buffer;
|
||||
}
|
||||
|
||||
__declspec(dllexport) void PakInitialize(
|
||||
slot_id_type SlotId,
|
||||
const char* const configuration_path,
|
||||
HWND hVccWnd,
|
||||
const cpak_callbacks* const callbacks)
|
||||
{
|
||||
gSlotId = SlotId;
|
||||
gVccWnd = hVccWnd;
|
||||
gpSettings = new VCC::Util::settings(configuration_path);
|
||||
|
||||
LoadConfig();
|
||||
IdeInit();
|
||||
//SendMessage(gVccWnd,WM_COMMAND,(WPARAM) IDC_MSG_UPD_MENU,(LPARAM) 0);
|
||||
}
|
||||
|
||||
__declspec(dllexport) void PakTerminate()
|
||||
{
|
||||
CloseCartDialog(hConfDlg);
|
||||
hConfDlg = nullptr;
|
||||
}
|
||||
|
||||
__declspec(dllexport) void PakWritePort(unsigned char Port,unsigned char Data)
|
||||
{
|
||||
if ( (Port >=BaseAddress) & (Port <= (BaseAddress+8)))
|
||||
switch (Port-BaseAddress)
|
||||
{
|
||||
case 0x0:
|
||||
IdeRegWrite(Port-BaseAddress,(DataLatch<<8)+ Data );
|
||||
break;
|
||||
|
||||
case 0x8:
|
||||
DataLatch=Data & 0xFF; //Latch
|
||||
break;
|
||||
|
||||
default:
|
||||
IdeRegWrite(Port-BaseAddress,Data);
|
||||
break;
|
||||
} //End port switch
|
||||
return;
|
||||
}
|
||||
|
||||
__declspec(dllexport) unsigned char PakReadPort(unsigned char Port)
|
||||
{
|
||||
unsigned char RetVal=0;
|
||||
unsigned short Temp=0;
|
||||
if (((Port == 0x78) || (Port == 0x79) || (Port == 0x7C)) && ClockEnabled)
|
||||
RetVal = cloud9_rtc.read_port(Port);
|
||||
|
||||
if ( (Port >=BaseAddress) & (Port <= (BaseAddress+8)))
|
||||
switch (Port-BaseAddress)
|
||||
{
|
||||
case 0x0:
|
||||
Temp=IdeRegRead(Port-BaseAddress);
|
||||
|
||||
RetVal=Temp & 0xFF;
|
||||
DataLatch= Temp>>8;
|
||||
break;
|
||||
|
||||
case 0x8:
|
||||
RetVal=DataLatch; //Latch
|
||||
break;
|
||||
default:
|
||||
RetVal=IdeRegRead(Port-BaseAddress)& 0xFF;
|
||||
break;
|
||||
|
||||
} //End port switch
|
||||
|
||||
return RetVal;
|
||||
}
|
||||
|
||||
__declspec(dllexport) void PakGetStatus(char* text_buffer, size_t buffer_size)
|
||||
{
|
||||
DiskStatus(text_buffer, buffer_size);
|
||||
}
|
||||
|
||||
|
||||
//PakGetMenuItem export
|
||||
__declspec(dllexport) bool PakGetMenuItem(menu_item_entry* item, size_t index)
|
||||
{
|
||||
return get_menu_item(item, index);
|
||||
}
|
||||
|
||||
__declspec(dllexport) void PakMenuItemClicked(unsigned char MenuID)
|
||||
{
|
||||
switch (MenuID)
|
||||
{
|
||||
case 10:
|
||||
Select_Disk(MASTER);
|
||||
SaveConfig();
|
||||
SendMessage(gVccWnd,WM_VCC_UPD_MENU,(WPARAM) 0,(LPARAM) 0);
|
||||
break;
|
||||
|
||||
case 11:
|
||||
DropDisk(MASTER);
|
||||
SaveConfig();
|
||||
SendMessage(gVccWnd,WM_VCC_UPD_MENU,(WPARAM) 0,(LPARAM) 0);
|
||||
break;
|
||||
|
||||
case 12:
|
||||
Select_Disk(SLAVE);
|
||||
SaveConfig();
|
||||
SendMessage(gVccWnd,WM_VCC_UPD_MENU,(WPARAM) 0,(LPARAM) 0);
|
||||
break;
|
||||
|
||||
case 13:
|
||||
DropDisk(SLAVE);
|
||||
SaveConfig();
|
||||
SendMessage(gVccWnd,WM_VCC_UPD_MENU,(WPARAM) 0,(LPARAM) 0);
|
||||
break;
|
||||
|
||||
case 14:
|
||||
CreateDialog( gModuleInstance, (LPCTSTR) IDD_CONFIG,
|
||||
GetActiveWindow(), (DLGPROC) IDE_Config );
|
||||
ShowWindow(hConfDlg,1);
|
||||
break;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
BOOL WINAPI DllMain(
|
||||
HINSTANCE hinstDLL,
|
||||
DWORD reason,
|
||||
LPVOID /*lpReserved*/ )
|
||||
{
|
||||
switch (reason) {
|
||||
case DLL_PROCESS_ATTACH:
|
||||
gModuleInstance = hinstDLL;
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
PakTerminate();
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// Added for PakGetMenuItem export
|
||||
// Return items for cartridge menu. Called for each item
|
||||
bool get_menu_item(menu_item_entry* item, size_t index)
|
||||
{
|
||||
using VCC::Bus::gDllCartMenu;
|
||||
std::string disk;
|
||||
if (!item) return false;
|
||||
// request zero rebuilds the menu list
|
||||
if (index == 0) {
|
||||
gDllCartMenu.clear();
|
||||
gDllCartMenu.add("", 0, MIT_Seperator);
|
||||
gDllCartMenu.add("IDE Master",0,MIT_Head);
|
||||
gDllCartMenu.add("Insert",ControlId(10),MIT_Slave);
|
||||
disk = VCC::Util::GetFileNamePart(QueryDisk(MASTER));
|
||||
gDllCartMenu.add("Eject: "+disk,ControlId(11),MIT_Slave);
|
||||
gDllCartMenu.add("IDE Slave",0,MIT_Head);
|
||||
gDllCartMenu.add("Insert",ControlId(12),MIT_Slave);
|
||||
disk = VCC::Util::GetFileNamePart(QueryDisk(SLAVE));
|
||||
gDllCartMenu.add("Eject: "+disk,ControlId(13),MIT_Slave);
|
||||
gDllCartMenu.add("IDE Config",ControlId(14),MIT_StandAlone);
|
||||
}
|
||||
// return requested list item or false
|
||||
return gDllCartMenu.copy_item(*item, index);
|
||||
}
|
||||
|
||||
LRESULT CALLBACK IDE_Config(HWND hDlg, UINT message, WPARAM wParam, LPARAM /*lParam*/)
|
||||
{
|
||||
unsigned char BTemp=0;
|
||||
switch (message)
|
||||
{
|
||||
case WM_CLOSE:
|
||||
DestroyWindow(hDlg);
|
||||
hConfDlg=nullptr;
|
||||
return TRUE;
|
||||
break;
|
||||
|
||||
case WM_INITDIALOG:
|
||||
hConfDlg=hDlg;
|
||||
SendDlgItemMessage(hDlg, IDC_CLOCK, BM_SETCHECK, ClockEnabled, 0);
|
||||
SendDlgItemMessage(hDlg, IDC_READONLY, BM_SETCHECK, ClockReadOnly, 0);
|
||||
SendDlgItemMessage(hDlg,IDC_BASEADDR, CB_ADDSTRING, 0, (LPARAM) "40");
|
||||
SendDlgItemMessage(hDlg,IDC_BASEADDR, CB_ADDSTRING, 0, (LPARAM) "50");
|
||||
SendDlgItemMessage(hDlg,IDC_BASEADDR, CB_ADDSTRING, 0, (LPARAM) "60");
|
||||
SendDlgItemMessage(hDlg,IDC_BASEADDR, CB_ADDSTRING, 0, (LPARAM) "70");
|
||||
SendDlgItemMessage(hDlg,IDC_BASEADDR, CB_SETCURSEL,BaseAddr,(LPARAM)0);
|
||||
EnableWindow(GetDlgItem(hDlg, IDC_CLOCK), TRUE);
|
||||
if (BaseAddr==3)
|
||||
{
|
||||
ClockEnabled = 0;
|
||||
SendDlgItemMessage(hDlg,IDC_CLOCK,BM_SETCHECK,ClockEnabled,0);
|
||||
EnableWindow(GetDlgItem(hDlg, IDC_CLOCK), FALSE);
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_COMMAND:
|
||||
switch (LOWORD(wParam))
|
||||
{
|
||||
case IDOK:
|
||||
BaseAddr=(unsigned char)SendDlgItemMessage(
|
||||
hDlg,IDC_BASEADDR,CB_GETCURSEL,0,0);
|
||||
ClockEnabled = SendDlgItemMessage( hDlg, IDC_CLOCK, BM_GETCHECK, 0, 0);
|
||||
ClockReadOnly = SendDlgItemMessage( hDlg, IDC_READONLY, BM_GETCHECK, 0, 0);
|
||||
BaseAddress=BaseTable[BaseAddr & 3];
|
||||
cloud9_rtc.set_read_only(ClockReadOnly);
|
||||
SaveConfig();
|
||||
EndDialog(hDlg, LOWORD(wParam));
|
||||
|
||||
break;
|
||||
|
||||
case IDCANCEL:
|
||||
EndDialog(hDlg, LOWORD(wParam));
|
||||
break;
|
||||
|
||||
case IDC_CLOCK:
|
||||
|
||||
break;
|
||||
|
||||
case IDC_READONLY:
|
||||
break;
|
||||
|
||||
case IDC_BASEADDR:
|
||||
BTemp=(unsigned char)SendDlgItemMessage(hDlg,IDC_BASEADDR,CB_GETCURSEL,0,0);
|
||||
EnableWindow(GetDlgItem(hDlg, IDC_CLOCK), TRUE);
|
||||
if (BTemp==3)
|
||||
{
|
||||
ClockEnabled = 0;
|
||||
SendDlgItemMessage(hDlg,IDC_CLOCK,BM_SETCHECK,ClockEnabled,0);
|
||||
EnableWindow(GetDlgItem(hDlg, IDC_CLOCK), FALSE);
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Select_Disk(unsigned char Disk)
|
||||
{
|
||||
FileDialog dlg;
|
||||
dlg.setDefExt("IMG");
|
||||
dlg.setTitle("Mount IDE hard Disk Image");
|
||||
dlg.setFilter("Hard Disk Images\0*.img;*.vhd;*.os9\0All files\0*.*\0\0");
|
||||
dlg.setInitialDir(SuperIDEPath);
|
||||
if (dlg.show()) {
|
||||
if (MountDisk(dlg.path(),Disk)) {
|
||||
dlg.getdir(SuperIDEPath);
|
||||
} else {
|
||||
MessageBox(GetActiveWindow(),"Can't Open Image","Error",0);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
void SaveConfig()
|
||||
{
|
||||
const char* ModName="SuperIDE";
|
||||
QueryDisk(MASTER,FileName);
|
||||
Setting().write(ModName,"Master",FileName);
|
||||
QueryDisk(SLAVE,FileName);
|
||||
Setting().write(ModName,"Slave",FileName);
|
||||
Setting().write(ModName,"BaseAddr",BaseAddr);
|
||||
Setting().write(ModName,"ClkEnable", ClockEnabled);
|
||||
Setting().write(ModName, "ClkRdOnly", ClockReadOnly);
|
||||
if (strcmp(SuperIDEPath, "") != 0) {
|
||||
Setting().write("DefaultPaths", "SuperIDEPath", SuperIDEPath);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
void LoadConfig()
|
||||
{
|
||||
const char* ModName="SuperIDE";
|
||||
Setting().read("DefaultPaths", "SuperIDEPath", "", SuperIDEPath, MAX_PATH);
|
||||
Setting().read(ModName,"Master","",FileName,MAX_PATH);
|
||||
MountDisk(FileName ,MASTER);
|
||||
Setting().read(ModName,"Slave","",FileName,MAX_PATH);
|
||||
BaseAddr=Setting().read(ModName,"BaseAddr",1);
|
||||
ClockEnabled = Setting().read(ModName, "ClkEnable", 1);
|
||||
ClockReadOnly = Setting().read(ModName, "ClkRdOnly", 1);
|
||||
BaseAddr&=3;
|
||||
if (BaseAddr == 3)
|
||||
ClockEnabled = 0;
|
||||
BaseAddress=BaseTable[BaseAddr];
|
||||
cloud9_rtc.set_read_only(ClockReadOnly);
|
||||
MountDisk(FileName ,SLAVE);
|
||||
SendMessage(gVccWnd,WM_VCC_UPD_MENU,(WPARAM) 0,(LPARAM) 0);
|
||||
return;
|
||||
}
|
||||
Whitespace-only changes.
@@ -0,0 +1,162 @@
|
||||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "winres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""winres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
#ifndef _MAC
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Version
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 2,1,8,3
|
||||
PRODUCTVERSION 2,1,8,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", "SuperIDE Disk Controller\0"
|
||||
VALUE "CompanyName", "BitRot Software.\0"
|
||||
VALUE "FileDescription", "SuperIDE\0"
|
||||
VALUE "FileVersion", "2.1.8.3\0"
|
||||
VALUE "InternalName", "SuperIDE\0"
|
||||
VALUE "LegalCopyright", "Copyright � 2010\0"
|
||||
VALUE "LegalTrademarks", "\0"
|
||||
VALUE "OriginalFilename", "SuperIDE.dll\0"
|
||||
VALUE "PrivateBuild", "\0"
|
||||
VALUE "ProductName", "Vcc Module file\0"
|
||||
VALUE "ProductVersion", "2.1.8.3\0"
|
||||
VALUE "SpecialBuild", "SuperIDE Disk Controller\0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", 0x409, 1200
|
||||
END
|
||||
END
|
||||
|
||||
#endif // !_MAC
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_CONFIG DIALOG DISCARDABLE 0, 0, 164, 52
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "IDE Drive Configuration"
|
||||
FONT 8, "MS Sans Serif"
|
||||
BEGIN
|
||||
DEFPUSHBUTTON "OK",IDOK,107,7,50,14
|
||||
PUSHBUTTON "Cancel",IDCANCEL,107,25,50,14
|
||||
COMBOBOX IDC_BASEADDR,71,7,28,41,CBS_DROPDOWNLIST | CBS_SORT |
|
||||
CBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
|
||||
LTEXT "Base Address 0xFF",IDC_STATIC,9,9,62,8
|
||||
CONTROL "Clock at 0xFF70",IDC_CLOCK,"Button",BS_AUTOCHECKBOX |
|
||||
WS_TABSTOP,7,24,66,10
|
||||
CONTROL "Clock is Read-Only",IDC_READONLY,"Button",
|
||||
BS_AUTOCHECKBOX | WS_TABSTOP,7,35,81,10
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO DISCARDABLE
|
||||
BEGIN
|
||||
IDD_CONFIG, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 157
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 45
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// String Table
|
||||
//
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
IDS_MODULE_NAME "Glenside-IDE /w Clock"
|
||||
IDS_CATNUMBER "000"
|
||||
IDS_DESCRIPTION "Emulates Glenside IDE disk device. It supports a master and a slave IDE disk image. Also contains a Dallas DS1315 real time clock."
|
||||
END
|
||||
|
||||
#endif // English (U.S.) 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>{95713490-9812-4348-9E5E-818F736A271A}</ProjectGuid>
|
||||
<ProjectName>superide</ProjectName>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<CharacterSet>MultiByte</CharacterSet>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<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>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</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>
|
||||
<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>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<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'" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" />
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Legacy|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>WIN32;_USRDLL;SUPERIDE_EXPORTS;_LEGACY_VCC;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalOptions>/arch:SSE</AdditionalOptions>
|
||||
</ClCompile>
|
||||
<ResourceCompile>
|
||||
<Culture>0x0409</Culture>
|
||||
<PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ResourceCompile>
|
||||
<Link>
|
||||
<LinkDLL>true</LinkDLL>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>WIN32;SUPERIDE_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<AdditionalOptions>/arch:SSE</AdditionalOptions>
|
||||
</ClCompile>
|
||||
<ResourceCompile />
|
||||
<Link>
|
||||
<LinkDLL>true</LinkDLL>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<PreprocessorDefinitions>WIN32;SUPERIDE_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
</ClCompile>
|
||||
<ResourceCompile />
|
||||
<Link>
|
||||
<LinkDLL>true</LinkDLL>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="IdeBus.cpp" />
|
||||
<ClCompile Include="SuperIDE.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="IdeBus.h" />
|
||||
<ClInclude Include="resource.h" />
|
||||
<ClInclude Include="SuperIDE.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ResourceCompile Include="SuperIDE.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,23 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Developer Studio generated include file.
|
||||
// Used by SuperIDE.rc
|
||||
//
|
||||
#define IDS_MODULE_NAME 1
|
||||
#define IDS_CATNUMBER 2
|
||||
#define IDS_DESCRIPTION 3
|
||||
#define IDD_DIALOG1 101
|
||||
#define IDD_CONFIG 101
|
||||
#define IDC_BASEADDR 1000
|
||||
#define IDC_CLOCK 1001
|
||||
#define IDC_READONLY 1002
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 102
|
||||
#define _APS_NEXT_COMMAND_VALUE 40001
|
||||
#define _APS_NEXT_CONTROL_VALUE 1003
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
Reference in new issue
Block a user