Skip to content

Commit

Permalink
added write double
Browse files Browse the repository at this point in the history
  • Loading branch information
erfg12 committed Apr 16, 2018
1 parent f3f28a0 commit 0b4c294
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions Memory/Class1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -844,6 +844,11 @@ public bool writeMemory(string code, string type, string write, string file = ""
size = 1;
}
}
else if (type == "double")
{
memory = BitConverter.GetBytes(Convert.ToDouble(write));
size = 8;
}
else if (type == "long")
{
memory = BitConverter.GetBytes(Convert.ToInt64(write));
Expand Down Expand Up @@ -887,6 +892,11 @@ public bool writeMove(string code, string type, string write, int moveQty, strin
memory = BitConverter.GetBytes(Convert.ToInt32(write));
size = 4;
}
else if (type == "double")
{
memory = BitConverter.GetBytes(Convert.ToDouble(write));
size = 8;
}
else if (type == "byte")
{
memory = new byte[1];
Expand Down
4 changes: 2 additions & 2 deletions Memory/Memory.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
Expand All @@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Memory</RootNamespace>
<AssemblyName>Memory</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.7.1</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile>
</TargetFrameworkProfile>
Expand Down

0 comments on commit 0b4c294

Please sign in to comment.