mirror of
https://github.com/BluestormDNA/ProjectPSX.git
synced 2025-04-02 10:52:34 -04:00
Agregar archivos de proyecto.
This commit is contained in:
parent
7b760d6746
commit
9176fefa82
15 changed files with 930 additions and 0 deletions
25
ProjectPSX.sln
Normal file
25
ProjectPSX.sln
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio 15
|
||||
VisualStudioVersion = 15.0.28307.271
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjectPSX", "ProjectPSX\ProjectPSX.csproj", "{6351ED6D-2403-43EE-8DD8-EB7E796B41EB}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{6351ED6D-2403-43EE-8DD8-EB7E796B41EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{6351ED6D-2403-43EE-8DD8-EB7E796B41EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{6351ED6D-2403-43EE-8DD8-EB7E796B41EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{6351ED6D-2403-43EE-8DD8-EB7E796B41EB}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {F1FDD480-CFB0-4C0B-AAD1-4E6912F073BC}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
6
ProjectPSX/App.config
Normal file
6
ProjectPSX/App.config
Normal file
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
</configuration>
|
43
ProjectPSX/Form1.Designer.cs
generated
Normal file
43
ProjectPSX/Form1.Designer.cs
generated
Normal file
|
@ -0,0 +1,43 @@
|
|||
namespace ProjectPSX {
|
||||
partial class Form1 {
|
||||
/// <summary>
|
||||
/// Variable del diseñador necesaria.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Limpiar los recursos que se estén usando.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true si los recursos administrados se deben desechar; false en caso contrario.</param>
|
||||
protected override void Dispose(bool disposing) {
|
||||
if (disposing && (components != null)) {
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Código generado por el Diseñador de Windows Forms
|
||||
|
||||
/// <summary>
|
||||
/// Método necesario para admitir el Diseñador. No se puede modificar
|
||||
/// el contenido de este método con el editor de código.
|
||||
/// </summary>
|
||||
private void InitializeComponent() {
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Name = "Form1";
|
||||
this.Text = "Form1";
|
||||
this.Load += new System.EventHandler(this.Form1_Load);
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
14
ProjectPSX/Form1.cs
Normal file
14
ProjectPSX/Form1.cs
Normal file
|
@ -0,0 +1,14 @@
|
|||
using System;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ProjectPSX {
|
||||
public partial class Form1 : Form {
|
||||
public Form1() {
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Form1_Load(object sender, EventArgs e) {
|
||||
ProjectPSX psx = new ProjectPSX();
|
||||
}
|
||||
}
|
||||
}
|
120
ProjectPSX/Form1.resx
Normal file
120
ProjectPSX/Form1.resx
Normal file
|
@ -0,0 +1,120 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
196
ProjectPSX/PSX/CPU.cs
Normal file
196
ProjectPSX/PSX/CPU.cs
Normal file
|
@ -0,0 +1,196 @@
|
|||
using System;
|
||||
|
||||
namespace ProjectPSX {
|
||||
internal class CPU {
|
||||
|
||||
private uint PC = 0xbfc0_0000;
|
||||
//private uint PC_Predictor = 0xbfc0_0000; // Bios Entry Point
|
||||
private uint[] REG = new uint[32];
|
||||
private uint HI;
|
||||
private uint LO;
|
||||
|
||||
//CoPro Regs
|
||||
private uint[] COPROC0_REG = new uint[16];
|
||||
private uint STATUS { get { return COPROC0_REG[12]; } set { COPROC0_REG[12] = value; } }
|
||||
|
||||
private struct MEM {
|
||||
public uint LoadRegN;
|
||||
public uint LoadValue;
|
||||
}
|
||||
|
||||
private struct WB {
|
||||
public uint WriteRegN;
|
||||
public uint WriteValue;
|
||||
}
|
||||
|
||||
private struct Opcode {
|
||||
public uint instruction; //Opcode Instruction
|
||||
public uint load; //debug
|
||||
//I-Type
|
||||
public uint rs; //Register Source
|
||||
public uint rt; //Register Target
|
||||
public uint imm; //Immediate value
|
||||
public uint imm_s; //Immediate value sign extended
|
||||
//R-Type
|
||||
public uint rd;
|
||||
public uint sa; //Shift Amount
|
||||
public uint function; //Function
|
||||
//J-Type
|
||||
public uint addr; //Target Address
|
||||
//CoProcessor
|
||||
public uint format;
|
||||
public uint ft;
|
||||
public uint fs;
|
||||
public uint fd;
|
||||
|
||||
public void Decode(uint opcode) {
|
||||
instruction = opcode >> 26;
|
||||
load = opcode;
|
||||
//I-Type
|
||||
rs = (opcode >> 21) & 0x1F;
|
||||
rt = (opcode >> 16) & 0x1F;
|
||||
imm = opcode & 0xFFFF;
|
||||
imm_s = (uint)(short)imm;
|
||||
//R-Type
|
||||
rd = (opcode >> 11) & 0x1F;
|
||||
sa = (opcode >> 6) & 0x1F;
|
||||
function = opcode & 0x3F;
|
||||
//J-Type
|
||||
addr = opcode & 0x3FFFFFF;
|
||||
//CoProcessor
|
||||
format = rs;
|
||||
ft = rt;
|
||||
fs = rd;
|
||||
fd = sa;
|
||||
}
|
||||
}
|
||||
private Opcode opcode;
|
||||
private Opcode next_opcode; //used as MIPS execute next opcode even if branch (Branch Delay Slot)
|
||||
|
||||
internal void execute(MMU mmu) {
|
||||
|
||||
//PC = PC_Predictor;
|
||||
opcode = next_opcode;
|
||||
uint load = mmu.read32(PC);
|
||||
next_opcode.Decode(load);
|
||||
//PC_Predictor += 4;
|
||||
PC += 4;
|
||||
|
||||
debug(opcode);
|
||||
|
||||
switch (opcode.instruction) {
|
||||
case 0b00_0000: //R-Type Instructions
|
||||
switch (opcode.function) {
|
||||
case 0b00_0000: SLL(opcode); break;
|
||||
case 0b10_0101: OR(opcode); break;
|
||||
default: unimplementedWarning(opcode); break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 0b00_0010: J(opcode); break;
|
||||
case 0b00_0101: BNE(opcode); break;
|
||||
case 0b00_1000: ADDI(opcode); break;
|
||||
case 0b00_1001: ADDIU(opcode); break;
|
||||
|
||||
case 0b00_1101: ORI(opcode); break;
|
||||
case 0b00_1111: LUI(opcode); break;
|
||||
|
||||
case 0b01_0000: //CoProcessor Instructions
|
||||
switch (opcode.format) {
|
||||
case 0b0_0100: MTC0(opcode); break;
|
||||
default: unimplementedWarning(opcode); break;
|
||||
}
|
||||
break;
|
||||
case 0b10_0011: LW(opcode, mmu); break;
|
||||
case 0b10_1011: SW(opcode, mmu); break;
|
||||
default:
|
||||
PC -= 4;
|
||||
unimplementedWarning(opcode);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void LW(Opcode opcode, MMU mmu) {
|
||||
if ((STATUS & 0x10000) == 0) {
|
||||
uint lw = mmu.read32(REG[opcode.rs] + opcode.imm_s);
|
||||
setReg(REG[opcode.rt], lw);
|
||||
}
|
||||
else Console.WriteLine("Ignoring Write");
|
||||
}
|
||||
|
||||
private void ADDI(Opcode opcode) {
|
||||
int rs = (int)REG[opcode.rs];
|
||||
int imm_s = (int)opcode.imm_s;
|
||||
try {
|
||||
uint addi = (uint) checked(rs + imm_s);
|
||||
setReg(opcode.rt, addi);
|
||||
//Console.WriteLine("ADDI rt " + REG[opcode.rt].ToString("x4") + " value" + addi.ToString("x4"));
|
||||
//Console.WriteLine("ADDI REG10 " + REG[10].ToString("x4") + " REG11 " + REG[11].ToString("x4"));
|
||||
//Console.WriteLine("ADDI!");
|
||||
} catch (OverflowException) {
|
||||
//Console.WriteLine("WARNING ADDI OVERFLOW!");
|
||||
}
|
||||
}
|
||||
|
||||
private void BNE(Opcode opcode) {
|
||||
//Console.WriteLine("BNE Comparing RS " + REG[opcode.rs].ToString("x4") + " RT " + REG[opcode.rt].ToString("x4"));
|
||||
if (REG[opcode.rs] != REG[opcode.rt]) {
|
||||
PC -= 4;
|
||||
PC += opcode.imm_s << 2;
|
||||
}
|
||||
}
|
||||
|
||||
private void MTC0(Opcode opcode) {
|
||||
COPROC0_REG[opcode.fs] = REG[opcode.ft];
|
||||
}
|
||||
|
||||
private void OR(Opcode opcode) {
|
||||
setReg(opcode.rd, REG[opcode.rs] | REG[opcode.rt]);
|
||||
}
|
||||
|
||||
private void J(Opcode opcode) {
|
||||
PC = (PC & 0xF000_0000) | (opcode.addr << 2);
|
||||
}
|
||||
|
||||
private void ADDIU(Opcode opcode) {
|
||||
setReg(opcode.rt, REG[opcode.rs] + opcode.imm_s);
|
||||
}
|
||||
|
||||
private void SLL(Opcode opcode) {
|
||||
setReg(opcode.rd, REG[opcode.rt] << (int)opcode.sa);
|
||||
}
|
||||
|
||||
private void SW(Opcode opcode, MMU mmu) {
|
||||
if ((STATUS & 0x10000) == 0)
|
||||
mmu.write32(REG[opcode.rs] + opcode.imm_s, REG[opcode.rt]);
|
||||
else Console.WriteLine("Ignoring Write");
|
||||
}
|
||||
|
||||
private void LUI(Opcode opcode) {
|
||||
setReg(opcode.rt, opcode.imm << 16);
|
||||
}
|
||||
|
||||
private void ORI(Opcode opcode) {
|
||||
setReg(opcode.rt, REG[opcode.rs] | opcode.imm);
|
||||
}
|
||||
|
||||
private void setReg(uint regN, uint value) {
|
||||
REG[regN] = value;
|
||||
REG[0] = 0;
|
||||
}
|
||||
|
||||
private void unimplementedWarning(Opcode opcode) {
|
||||
Console.WriteLine("Unimplemented OPCODE");
|
||||
debug(opcode);
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
private void debug(Opcode opcode) {
|
||||
string funct_string = opcode.instruction == 0 ? " Function: " + opcode.function.ToString("x4") : "";
|
||||
Console.WriteLine("PC: " + (PC - 8).ToString("x4") + " Load32: " + opcode.load.ToString("x4")
|
||||
+ " Instr: " + opcode.instruction.ToString("x4") + funct_string);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
137
ProjectPSX/PSX/MMU.cs
Normal file
137
ProjectPSX/PSX/MMU.cs
Normal file
|
@ -0,0 +1,137 @@
|
|||
using System;
|
||||
using System.IO;
|
||||
|
||||
namespace ProjectPSX {
|
||||
internal class MMU {
|
||||
|
||||
private byte[] RAM = new byte[2048 * 1024];
|
||||
private byte[] EX1 = new byte[8192 * 1024];
|
||||
private byte[] SCRATHPAD = new byte[1024];
|
||||
private byte[] REGISTERS = new byte[8 * 1024];
|
||||
private byte[] BIOS = new byte[512 * 1024];
|
||||
private byte[] IO = new byte[512];
|
||||
|
||||
internal uint read32(uint addr) {
|
||||
if (addr % 4 != 0) {
|
||||
Console.WriteLine("UNALIGNED READ");
|
||||
}
|
||||
|
||||
switch (addr) {
|
||||
case uint KUSEG when addr >= 0x0000_0000 && addr < 0x1F00_0000:
|
||||
case uint KSEG0 when addr >= 0x8000_0000 && addr < 0x9F00_0000:
|
||||
case uint KSEG1 when addr >= 0xA000_0000 && addr < 0xBF00_0000:
|
||||
return (uint)((RAM[addr + 3] << 24) | (RAM[addr + 2] << 16) | (RAM[addr + 1] << 8) | RAM[addr]);
|
||||
case uint KUSEG when addr >= 0x1F00_0000 && addr < 0x1F80_0000:
|
||||
case uint KSEG0 when addr >= 0x9F00_0000 && addr < 0x9F80_0000:
|
||||
case uint KSEG1 when addr >= 0xBF00_0000 && addr < 0xBF80_0000:
|
||||
addr &= 0x7F_FFFF;
|
||||
return (uint)((EX1[addr + 3] << 24) | (EX1[addr + 2] << 16) | (EX1[addr + 1] << 8) | EX1[addr]);
|
||||
case uint KUSEG when addr >= 0x1F80_0000 && addr < 0x1F80_0400: //Warning: _1000
|
||||
case uint KSEG0 when addr >= 0x9F80_0000 && addr < 0x9F80_0400: //Warning: _1000
|
||||
case uint KSEG1 when addr >= 0xBF80_0000 && addr < 0xBF80_0400: //Warning: _1000
|
||||
addr &= 0xFFF;
|
||||
return (uint)((SCRATHPAD[addr + 3] << 24) | (SCRATHPAD[addr + 2] << 16) | (SCRATHPAD[addr + 1] << 8) | SCRATHPAD[addr]);
|
||||
case uint KUSEG when addr >= 0x1F80_1000 && addr < 0x1F80_3000:
|
||||
case uint KSEG0 when addr >= 0x9F80_1000 && addr < 0x9F80_3000:
|
||||
case uint KSEG1 when addr >= 0xBF80_1000 && addr < 0xBF80_3000:
|
||||
addr &= 0x1FFF;
|
||||
return (uint)((REGISTERS[addr + 3] << 24) | (REGISTERS[addr + 2] << 16) | (REGISTERS[addr + 1] << 8) | REGISTERS[addr]);
|
||||
case uint KUSEG when addr >= 0x1FC0_0000 && addr < 0x1FC8_0000:
|
||||
case uint KSEG0 when addr >= 0x9FC0_0000 && addr < 0x9FC8_0000:
|
||||
case uint KSEG1 when addr >= 0xBFC0_0000 && addr < 0xBFC8_0000: //BIOS mem map
|
||||
addr &= 0x7_FFFF;
|
||||
return (uint)((BIOS[addr + 3] << 24) | (BIOS[addr + 2] << 16) | (BIOS[addr + 1] << 8) | BIOS[addr]);
|
||||
case uint KSEG2 when addr >= 0xFFFE_0000 && addr < 0xFFFE_0200:
|
||||
addr &= 0x1FF;
|
||||
return (uint)((IO[addr + 3] << 24) | (IO[addr + 2] << 16) | (IO[addr + 1] << 8) | IO[addr]);
|
||||
default:
|
||||
Console.WriteLine("Unsupported READ AREA");
|
||||
return 0xFFFF_FFFF;
|
||||
}
|
||||
}
|
||||
|
||||
internal void write32(uint addr, uint value) {
|
||||
if (addr % 4 != 0) {
|
||||
Console.WriteLine("UNALIGNED WRITE");
|
||||
}
|
||||
|
||||
switch (addr) {
|
||||
case uint KUSEG when addr >= 0x0000_0000 && addr < 0x1F00_0000:
|
||||
case uint KSEG0 when addr >= 0x8000_0000 && addr < 0x9F00_0000:
|
||||
case uint KSEG1 when addr >= 0xA000_0000 && addr < 0xBF00_0000:
|
||||
RAM[addr] = (byte)(value);
|
||||
RAM[addr + 1] = (byte)(value >> 8);
|
||||
RAM[addr + 2] = (byte)(value >> 16);
|
||||
RAM[addr + 3] = (byte)(value >> 24);
|
||||
break;
|
||||
case uint KUSEG when addr >= 0x1F00_0000 && addr < 0x1F80_0000:
|
||||
case uint KSEG0 when addr >= 0x9F00_0000 && addr < 0x9F80_0000:
|
||||
case uint KSEG1 when addr >= 0xBF00_0000 && addr < 0xBF80_0000:
|
||||
addr &= 0x7F_FFFF;
|
||||
EX1[addr] = (byte)(value);
|
||||
EX1[addr + 1] = (byte)(value >> 8);
|
||||
EX1[addr + 2] = (byte)(value >> 16);
|
||||
EX1[addr + 3] = (byte)(value >> 24);
|
||||
break;
|
||||
case uint KUSEG when addr >= 0x1F80_0000 && addr < 0x1F80_0400: //Warning: _1000
|
||||
case uint KSEG0 when addr >= 0x9F80_0000 && addr < 0x9F80_0400: //Warning: _1000
|
||||
case uint KSEG1 when addr >= 0xBF80_0000 && addr < 0xBF80_0400: //Warning: _1000
|
||||
addr &= 0xFFF;
|
||||
SCRATHPAD[addr] = (byte)(value);
|
||||
SCRATHPAD[addr + 1] = (byte)(value >> 8);
|
||||
SCRATHPAD[addr + 2] = (byte)(value >> 16);
|
||||
SCRATHPAD[addr + 3] = (byte)(value >> 24);
|
||||
break;
|
||||
case uint KUSEG when addr >= 0x1F80_1000 && addr < 0x1F80_3000:
|
||||
case uint KSEG0 when addr >= 0x9F80_1000 && addr < 0x9F80_3000:
|
||||
case uint KSEG1 when addr >= 0xBF80_1000 && addr < 0xBF80_3000:
|
||||
uint a = addr;
|
||||
addr &= 0x1FFF;
|
||||
REGISTERS[addr] = (byte)(value);
|
||||
REGISTERS[addr + 1] = (byte)(value >> 8);
|
||||
REGISTERS[addr + 2] = (byte)(value >> 16);
|
||||
REGISTERS[addr + 3] = (byte)(value >> 24);
|
||||
break;
|
||||
case uint KUSEG when addr >= 0x1FC0_0000 && addr < 0x1FC8_0000:
|
||||
case uint KSEG0 when addr >= 0x9FC0_0000 && addr < 0x9FC8_0000:
|
||||
case uint KSEG1 when addr >= 0xBFC0_0000 && addr < 0xBFC8_0000: //BIOS mem map
|
||||
addr &= 0x7_FFFF;
|
||||
BIOS[addr] = (byte)(value);
|
||||
BIOS[addr + 1] = (byte)(value >> 8);
|
||||
BIOS[addr + 2] = (byte)(value >> 16);
|
||||
BIOS[addr + 3] = (byte)(value >> 24);
|
||||
break;
|
||||
case uint KSEG2 when addr >= 0xFFFE_0000 && addr < 0xFFFE_0200:
|
||||
addr &= 0x1FF;
|
||||
IO[addr] = (byte)(value);
|
||||
IO[addr + 1] = (byte)(value >> 8);
|
||||
IO[addr + 2] = (byte)(value >> 16);
|
||||
IO[addr + 3] = (byte)(value >> 24);
|
||||
break;
|
||||
default:
|
||||
Console.WriteLine("Unsupported WRITE AREA: " + addr.ToString("x4") + ": " + value.ToString("x4"));
|
||||
break;
|
||||
}
|
||||
/*
|
||||
switch (addr) {
|
||||
case uint r when addr == 0x1f80_1000: //BIOS mem map
|
||||
if (value != 0x1f00_0000) Console.WriteLine("WARNING NON VALID MEM MAP");
|
||||
// array = tal
|
||||
break;
|
||||
case uint r when addr == 0x1f80_1004: //BIOS mem map
|
||||
if (value != 0x1f80_2000) Console.WriteLine("WARNING NON VALID MEM MAP");
|
||||
// array = tal
|
||||
break;
|
||||
default:
|
||||
Console.WriteLine("Unsupported WRITE AREA: " + addr.ToString("x4") + ": " + value.ToString("x4"));
|
||||
break;
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
internal void loadBios() {
|
||||
byte[] rom = File.ReadAllBytes("./SCPH1001.BIN");
|
||||
Array.Copy(rom, 0, BIOS, 0, rom.Length);
|
||||
}
|
||||
}
|
||||
}
|
33
ProjectPSX/PSX/ProjectPSX.cs
Normal file
33
ProjectPSX/PSX/ProjectPSX.cs
Normal file
|
@ -0,0 +1,33 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ProjectPSX {
|
||||
class ProjectPSX {
|
||||
private CPU cpu;
|
||||
private MMU mmu;
|
||||
|
||||
|
||||
public ProjectPSX() {
|
||||
POWER_ON();
|
||||
}
|
||||
|
||||
public void POWER_ON() {
|
||||
cpu = new CPU();
|
||||
mmu = new MMU();
|
||||
|
||||
mmu.loadBios();
|
||||
|
||||
Task t = Task.Factory.StartNew(EXECUTE, TaskCreationOptions.LongRunning);
|
||||
}
|
||||
|
||||
public void EXECUTE() {
|
||||
while (true) {
|
||||
cpu.execute(mmu);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
19
ProjectPSX/Program.cs
Normal file
19
ProjectPSX/Program.cs
Normal file
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ProjectPSX {
|
||||
static class Program {
|
||||
/// <summary>
|
||||
/// Punto de entrada principal para la aplicación.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main() {
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
89
ProjectPSX/ProjectPSX.csproj
Normal file
89
ProjectPSX/ProjectPSX.csproj
Normal file
|
@ -0,0 +1,89 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{6351ED6D-2403-43EE-8DD8-EB7E796B41EB}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<RootNamespace>ProjectPSX</RootNamespace>
|
||||
<AssemblyName>ProjectPSX</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<StartupObject />
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="PSX\CPU.cs" />
|
||||
<Compile Include="PSX\MMU.cs" />
|
||||
<Compile Include="PSX\ProjectPSX.cs" />
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
36
ProjectPSX/Properties/AssemblyInfo.cs
Normal file
36
ProjectPSX/Properties/AssemblyInfo.cs
Normal file
|
@ -0,0 +1,36 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// La información general de un ensamblado se controla mediante el siguiente
|
||||
// conjunto de atributos. Cambie estos valores de atributo para modificar la información
|
||||
// asociada con un ensamblado.
|
||||
[assembly: AssemblyTitle("ProjectPSX")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("ProjectPSX")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2019")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Si establece ComVisible en false, los tipos de este ensamblado no estarán visibles
|
||||
// para los componentes COM. Si es necesario obtener acceso a un tipo en este ensamblado desde
|
||||
// COM, establezca el atributo ComVisible en true en este tipo.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// El siguiente GUID sirve como id. de typelib si este proyecto se expone a COM.
|
||||
[assembly: Guid("6351ed6d-2403-43ee-8dd8-eb7e796b41eb")]
|
||||
|
||||
// La información de versión de un ensamblado consta de los cuatro valores siguientes:
|
||||
//
|
||||
// Versión principal
|
||||
// Versión secundaria
|
||||
// Número de compilación
|
||||
// Revisión
|
||||
//
|
||||
// Puede especificar todos los valores o utilizar los números de compilación y de revisión predeterminados
|
||||
// mediante el carácter '*', como se muestra a continuación:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
62
ProjectPSX/Properties/Resources.Designer.cs
generated
Normal file
62
ProjectPSX/Properties/Resources.Designer.cs
generated
Normal file
|
@ -0,0 +1,62 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Este código fue generado por una herramienta.
|
||||
// Versión de runtime: 4.0.30319.42000
|
||||
//
|
||||
// Los cambios de este archivo pueden provocar un comportamiento inesperado y se perderán si
|
||||
// el código se vuelve a generar.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ProjectPSX.Properties {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Clase de recurso fuertemente tipado para buscar cadenas traducidas, etc.
|
||||
/// </summary>
|
||||
// StronglyTypedResourceBuilder generó automáticamente esta clase
|
||||
// a través de una herramienta como ResGen o Visual Studio.
|
||||
// Para agregar o quitar un miembro, edite el archivo .ResX y, a continuación, vuelva a ejecutar ResGen
|
||||
// con la opción /str o recompile su proyecto de VS.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Devuelve la instancia ResourceManager almacenada en caché utilizada por esta clase.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if ((resourceMan == null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ProjectPSX.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Invalida la propiedad CurrentUICulture del subproceso actual para todas las
|
||||
/// búsquedas de recursos usando esta clase de recursos fuertemente tipados.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
117
ProjectPSX/Properties/Resources.resx
Normal file
117
ProjectPSX/Properties/Resources.resx
Normal file
|
@ -0,0 +1,117 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
26
ProjectPSX/Properties/Settings.Designer.cs
generated
Normal file
26
ProjectPSX/Properties/Settings.Designer.cs
generated
Normal file
|
@ -0,0 +1,26 @@
|
|||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ProjectPSX.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
7
ProjectPSX/Properties/Settings.settings
Normal file
7
ProjectPSX/Properties/Settings.settings
Normal file
|
@ -0,0 +1,7 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
Loading…
Add table
Reference in a new issue