OSDN Git Service

[TOOL] Merge UPSTREAM.
authorK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 18 Jan 2023 03:17:01 +0000 (12:17 +0900)
committerK.Ohta <whatisthis.sowhat@gmail.com>
Wed, 18 Jan 2023 03:17:01 +0000 (12:17 +0900)
35 files changed:
source/tool/any2d88/any2d88.vcproj
source/tool/any2d88/any2d88.vcxproj
source/tool/any2d88/any2d88.vcxproj.filters
source/tool/d88fix/d88fix.vcproj
source/tool/fmr50/create_hd.cpp
source/tool/jx/mkfont.cpp
source/tool/jx/mkfont.vcproj
source/tool/multi8/wav2cas.cpp
source/tool/multi8/wav2rom.cpp
source/tool/mz2500/create_hd.cpp
source/tool/mz2500/create_hd.vcproj
source/tool/mz2500/wav_apss.cpp
source/tool/mz2500/wav_apss.vcproj
source/tool/mz3500/mkfont.cpp
source/tool/mz3500/mkfont.vcproj
source/tool/mz80k/Form1.Designer.vb
source/tool/mz80k/Form1.resx
source/tool/mz80k/Form1.vb
source/tool/mz80k/My Project/Application.Designer.vb
source/tool/mz80k/My Project/Application.myapp
source/tool/mz80k/My Project/AssemblyInfo.vb
source/tool/mz80k/My Project/Resources.Designer.vb
source/tool/mz80k/My Project/Resources.resx
source/tool/mz80k/My Project/Settings.Designer.vb
source/tool/mz80k/My Project/Settings.settings
source/tool/mz80k/mz80k_kbd.vbproj
source/tool/pasopia7/mkfont.cpp
source/tool/pasopia7/wav2bin.cpp
source/tool/pc100/mkfont.cpp
source/tool/pc98lt/readme.txt
source/tool/qc10/mkmfont.cpp
source/tool/t2d/t2d.cpp
source/tool/viddumper/frmMain.frm
source/tool/viddumper/viddumper.vbp
source/tool/viddumper/viddumper.vbw

index 635f6df..00b41da 100644 (file)
-<?xml version="1.0" encoding="shift_jis"?>
-<VisualStudioProject
-       ProjectType="Visual C++"
-       Version="9.00"
-       Name="any2d88"
-       ProjectGUID="{7F241E68-EB84-4412-AF32-70EAF1C6C212}"
-       RootNamespace="any2d88"
-       TargetFrameworkVersion="196613"
-       >
-       <Platforms>
-               <Platform
-                       Name="Win32"
-               />
-       </Platforms>
-       <ToolFiles>
-       </ToolFiles>
-       <Configurations>
-               <Configuration
-                       Name="Debug|Win32"
-                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
-                       IntermediateDirectory="$(ConfigurationName)"
-                       ConfigurationType="1"
-                       CharacterSet="2"
-                       >
-                       <Tool
-                               Name="VCPreBuildEventTool"
-                       />
-                       <Tool
-                               Name="VCCustomBuildTool"
-                       />
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCMIDLTool"
-                       />
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="0"
-                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_ANY2D88"
-                               MinimalRebuild="true"
-                               BasicRuntimeChecks="3"
-                               RuntimeLibrary="3"
-                               WarningLevel="3"
-                               DebugInformationFormat="4"
-                       />
-                       <Tool
-                               Name="VCManagedResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCPreLinkEventTool"
-                       />
-                       <Tool
-                               Name="VCLinkerTool"
-                               GenerateDebugInformation="true"
-                               TargetMachine="1"
-                       />
-                       <Tool
-                               Name="VCALinkTool"
-                       />
-                       <Tool
-                               Name="VCManifestTool"
-                       />
-                       <Tool
-                               Name="VCXDCMakeTool"
-                       />
-                       <Tool
-                               Name="VCBscMakeTool"
-                       />
-                       <Tool
-                               Name="VCFxCopTool"
-                       />
-                       <Tool
-                               Name="VCAppVerifierTool"
-                       />
-                       <Tool
-                               Name="VCPostBuildEventTool"
-                       />
-               </Configuration>
-               <Configuration
-                       Name="Release|Win32"
-                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
-                       IntermediateDirectory="$(ConfigurationName)"
-                       ConfigurationType="1"
-                       CharacterSet="2"
-                       WholeProgramOptimization="1"
-                       >
-                       <Tool
-                               Name="VCPreBuildEventTool"
-                       />
-                       <Tool
-                               Name="VCCustomBuildTool"
-                       />
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCMIDLTool"
-                       />
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="2"
-                               PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_ANY2D88"
-                               EnableIntrinsicFunctions="true"
-                               RuntimeLibrary="2"
-                               EnableFunctionLevelLinking="true"
-                               WarningLevel="3"
-                               DebugInformationFormat="3"
-                       />
-                       <Tool
-                               Name="VCManagedResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCPreLinkEventTool"
-                       />
-                       <Tool
-                               Name="VCLinkerTool"
-                               GenerateDebugInformation="true"
-                               OptimizeReferences="2"
-                               EnableCOMDATFolding="2"
-                               TargetMachine="1"
-                       />
-                       <Tool
-                               Name="VCALinkTool"
-                       />
-                       <Tool
-                               Name="VCManifestTool"
-                       />
-                       <Tool
-                               Name="VCXDCMakeTool"
-                       />
-                       <Tool
-                               Name="VCBscMakeTool"
-                       />
-                       <Tool
-                               Name="VCFxCopTool"
-                       />
-                       <Tool
-                               Name="VCAppVerifierTool"
-                       />
-                       <Tool
-                               Name="VCPostBuildEventTool"
-                       />
-               </Configuration>
-       </Configurations>
-       <References>
-       </References>
-       <Files>
-               <Filter
-                       Name="Source Files"
-                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
-                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
-                       >
-                       <File
-                               RelativePath=".\any2d88.cpp"
-                               >
-                       </File>
-                       <File
-                               RelativePath="..\..\src\common.cpp"
-                               >
-                       </File>
-                       <File
-                               RelativePath="..\..\src\fileio.cpp"
-                               >
-                       </File>
-                       <File
-                               RelativePath="..\..\src\vm\disk.cpp"
-                               >
-                       </File>
-               </Filter>
-               <Filter
-                       Name="Header Files"
-                       Filter="h;hpp;hxx;hm;inl;inc;xsd"
-                       UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
-                       >
-                       <File
-                               RelativePath="..\..\src\common.h"
-                               >
-                       </File>
-                       <File
-                               RelativePath="..\..\src\fileio.h"
-                               >
-                       </File>
-                       <File
-                               RelativePath="..\..\src\vm\disk.h"
-                               >
-                       </File>
-               </Filter>
-               <Filter
-                       Name="Resource Files"
-                       Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
-                       UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
-                       >
-               </Filter>
-       </Files>
-       <Globals>
-       </Globals>
-</VisualStudioProject>
+<?xml version="1.0" encoding="shift_jis"?>\r
+<VisualStudioProject\r
+       ProjectType="Visual C++"\r
+       Version="9.00"\r
+       Name="any2d88"\r
+       ProjectGUID="{7F241E68-EB84-4412-AF32-70EAF1C6C212}"\r
+       RootNamespace="any2d88"\r
+       TargetFrameworkVersion="196613"\r
+       >\r
+       <Platforms>\r
+               <Platform\r
+                       Name="Win32"\r
+               />\r
+       </Platforms>\r
+       <ToolFiles>\r
+       </ToolFiles>\r
+       <Configurations>\r
+               <Configuration\r
+                       Name="Debug|Win32"\r
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="1"\r
+                       CharacterSet="2"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="0"\r
+                               PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_ANY2D88"\r
+                               MinimalRebuild="true"\r
+                               BasicRuntimeChecks="3"\r
+                               RuntimeLibrary="3"\r
+                               WarningLevel="3"\r
+                               DebugInformationFormat="4"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               GenerateDebugInformation="true"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+               <Configuration\r
+                       Name="Release|Win32"\r
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="1"\r
+                       CharacterSet="2"\r
+                       WholeProgramOptimization="1"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="2"\r
+                               PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_ANY2D88"\r
+                               EnableIntrinsicFunctions="true"\r
+                               RuntimeLibrary="2"\r
+                               EnableFunctionLevelLinking="true"\r
+                               WarningLevel="3"\r
+                               DebugInformationFormat="3"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               GenerateDebugInformation="true"\r
+                               OptimizeReferences="2"\r
+                               EnableCOMDATFolding="2"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+       </Configurations>\r
+       <References>\r
+       </References>\r
+       <Files>\r
+               <Filter\r
+                       Name="Source Files"\r
+                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"\r
+                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"\r
+                       >\r
+                       <File\r
+                               RelativePath=".\any2d88.cpp"\r
+                               >\r
+                       </File>\r
+                       <File\r
+                               RelativePath="..\..\src\common.cpp"\r
+                               >\r
+                       </File>\r
+                       <File\r
+                               RelativePath="..\..\src\fileio.cpp"\r
+                               >\r
+                       </File>\r
+                       <File\r
+                               RelativePath="..\..\src\vm\disk.cpp"\r
+                               >\r
+                       </File>\r
+               </Filter>\r
+               <Filter\r
+                       Name="Header Files"\r
+                       Filter="h;hpp;hxx;hm;inl;inc;xsd"\r
+                       UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"\r
+                       >\r
+                       <File\r
+                               RelativePath="..\..\src\common.h"\r
+                               >\r
+                       </File>\r
+                       <File\r
+                               RelativePath="..\..\src\fileio.h"\r
+                               >\r
+                       </File>\r
+                       <File\r
+                               RelativePath="..\..\src\vm\disk.h"\r
+                               >\r
+                       </File>\r
+               </Filter>\r
+               <Filter\r
+                       Name="Resource Files"\r
+                       Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"\r
+                       UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"\r
+                       >\r
+               </Filter>\r
+       </Files>\r
+       <Globals>\r
+       </Globals>\r
+</VisualStudioProject>\r
index 4f5a661..775b135 100644 (file)
@@ -1,96 +1,96 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project DefaultTargets="Build" ToolsVersion="12.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="Release|Win32">
-      <Configuration>Release</Configuration>
-      <Platform>Win32</Platform>
-    </ProjectConfiguration>
-  </ItemGroup>
-  <PropertyGroup Label="Globals">
-    <ProjectGuid>{7F241E68-EB84-4412-AF32-70EAF1C6C212}</ProjectGuid>
-    <RootNamespace>any2d88</RootNamespace>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <PlatformToolset>v120_xp</PlatformToolset>
-    <CharacterSet>MultiByte</CharacterSet>
-    <WholeProgramOptimization>true</WholeProgramOptimization>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
-    <ConfigurationType>Application</ConfigurationType>
-    <PlatformToolset>v120_xp</PlatformToolset>
-    <CharacterSet>MultiByte</CharacterSet>
-  </PropertyGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
-  <ImportGroup Label="ExtensionSettings">
-  </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" />
-  </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" />
-  </ImportGroup>
-  <PropertyGroup Label="UserMacros" />
-  <PropertyGroup>
-    <_ProjectFileVersion>12.0.30501.0</_ProjectFileVersion>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <OutDir>$(SolutionDir)$(Configuration)\</OutDir>
-    <IntDir>$(Configuration)\</IntDir>
-  </PropertyGroup>
-  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <OutDir>$(SolutionDir)$(Configuration)\</OutDir>
-    <IntDir>$(Configuration)\</IntDir>
-  </PropertyGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
-    <ClCompile>
-      <Optimization>Disabled</Optimization>
-      <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_ANY2D88;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <MinimalRebuild>true</MinimalRebuild>
-      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
-      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
-      <WarningLevel>Level3</WarningLevel>
-      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>
-    </ClCompile>
-    <Link>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
-    <ClCompile>
-      <Optimization>MaxSpeed</Optimization>
-      <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_ANY2D88;%(PreprocessorDefinitions)</PreprocessorDefinitions>
-      <IntrinsicFunctions>true</IntrinsicFunctions>
-      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>
-      <FunctionLevelLinking>true</FunctionLevelLinking>
-      <WarningLevel>Level3</WarningLevel>
-      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>
-    </ClCompile>
-    <Link>
-      <GenerateDebugInformation>true</GenerateDebugInformation>
-      <OptimizeReferences>true</OptimizeReferences>
-      <EnableCOMDATFolding>true</EnableCOMDATFolding>
-      <TargetMachine>MachineX86</TargetMachine>
-    </Link>
-  </ItemDefinitionGroup>
-  <ItemGroup>
-    <ClCompile Include="..\..\src\common.cpp" />
-    <ClCompile Include="..\..\src\fileio.cpp" />
-    <ClCompile Include="..\..\src\vm\disk.cpp" />
-    <ClCompile Include="any2d88.cpp" />
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\src\common.h" />
-    <ClInclude Include="..\..\src\fileio.h" />
-    <ClInclude Include="..\..\src\vm\disk.h" />
-  </ItemGroup>
-  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
-  <ImportGroup Label="ExtensionTargets">
-  </ImportGroup>
+<?xml version="1.0" encoding="utf-8"?>\r
+<Project DefaultTargets="Build" ToolsVersion="12.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+  <ItemGroup Label="ProjectConfigurations">\r
+    <ProjectConfiguration Include="Debug|Win32">\r
+      <Configuration>Debug</Configuration>\r
+      <Platform>Win32</Platform>\r
+    </ProjectConfiguration>\r
+    <ProjectConfiguration Include="Release|Win32">\r
+      <Configuration>Release</Configuration>\r
+      <Platform>Win32</Platform>\r
+    </ProjectConfiguration>\r
+  </ItemGroup>\r
+  <PropertyGroup Label="Globals">\r
+    <ProjectGuid>{7F241E68-EB84-4412-AF32-70EAF1C6C212}</ProjectGuid>\r
+    <RootNamespace>any2d88</RootNamespace>\r
+  </PropertyGroup>\r
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />\r
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">\r
+    <ConfigurationType>Application</ConfigurationType>\r
+    <PlatformToolset>v120_xp</PlatformToolset>\r
+    <CharacterSet>MultiByte</CharacterSet>\r
+    <WholeProgramOptimization>true</WholeProgramOptimization>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">\r
+    <ConfigurationType>Application</ConfigurationType>\r
+    <PlatformToolset>v120_xp</PlatformToolset>\r
+    <CharacterSet>MultiByte</CharacterSet>\r
+  </PropertyGroup>\r
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />\r
+  <ImportGroup Label="ExtensionSettings">\r
+  </ImportGroup>\r
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="PropertySheets">\r
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />\r
+  </ImportGroup>\r
+  <ImportGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="PropertySheets">\r
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />\r
+  </ImportGroup>\r
+  <PropertyGroup Label="UserMacros" />\r
+  <PropertyGroup>\r
+    <_ProjectFileVersion>12.0.30501.0</_ProjectFileVersion>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
+    <OutDir>$(SolutionDir)$(Configuration)\</OutDir>\r
+    <IntDir>$(Configuration)\</IntDir>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\r
+    <OutDir>$(SolutionDir)$(Configuration)\</OutDir>\r
+    <IntDir>$(Configuration)\</IntDir>\r
+  </PropertyGroup>\r
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">\r
+    <ClCompile>\r
+      <Optimization>Disabled</Optimization>\r
+      <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_ANY2D88;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r
+      <MinimalRebuild>true</MinimalRebuild>\r
+      <BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>\r
+      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>\r
+      <WarningLevel>Level3</WarningLevel>\r
+      <DebugInformationFormat>EditAndContinue</DebugInformationFormat>\r
+    </ClCompile>\r
+    <Link>\r
+      <GenerateDebugInformation>true</GenerateDebugInformation>\r
+      <TargetMachine>MachineX86</TargetMachine>\r
+    </Link>\r
+  </ItemDefinitionGroup>\r
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">\r
+    <ClCompile>\r
+      <Optimization>MaxSpeed</Optimization>\r
+      <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_ANY2D88;%(PreprocessorDefinitions)</PreprocessorDefinitions>\r
+      <IntrinsicFunctions>true</IntrinsicFunctions>\r
+      <RuntimeLibrary>MultiThreadedDLL</RuntimeLibrary>\r
+      <FunctionLevelLinking>true</FunctionLevelLinking>\r
+      <WarningLevel>Level3</WarningLevel>\r
+      <DebugInformationFormat>ProgramDatabase</DebugInformationFormat>\r
+    </ClCompile>\r
+    <Link>\r
+      <GenerateDebugInformation>true</GenerateDebugInformation>\r
+      <OptimizeReferences>true</OptimizeReferences>\r
+      <EnableCOMDATFolding>true</EnableCOMDATFolding>\r
+      <TargetMachine>MachineX86</TargetMachine>\r
+    </Link>\r
+  </ItemDefinitionGroup>\r
+  <ItemGroup>\r
+    <ClCompile Include="..\..\src\common.cpp" />\r
+    <ClCompile Include="..\..\src\fileio.cpp" />\r
+    <ClCompile Include="..\..\src\vm\disk.cpp" />\r
+    <ClCompile Include="any2d88.cpp" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <ClInclude Include="..\..\src\common.h" />\r
+    <ClInclude Include="..\..\src\fileio.h" />\r
+    <ClInclude Include="..\..\src\vm\disk.h" />\r
+  </ItemGroup>\r
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />\r
+  <ImportGroup Label="ExtensionTargets">\r
+  </ImportGroup>\r
 </Project>
\ No newline at end of file
index 04e56d0..e9d52b1 100644 (file)
@@ -1,42 +1,42 @@
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <ItemGroup>
-    <Filter Include="Source Files">
-      <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
-      <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
-    </Filter>
-    <Filter Include="Header Files">
-      <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
-      <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
-    </Filter>
-    <Filter Include="Resource Files">
-      <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
-      <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>
-    </Filter>
-  </ItemGroup>
-  <ItemGroup>
-    <ClCompile Include="any2d88.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\src\common.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\src\fileio.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-    <ClCompile Include="..\..\src\vm\disk.cpp">
-      <Filter>Source Files</Filter>
-    </ClCompile>
-  </ItemGroup>
-  <ItemGroup>
-    <ClInclude Include="..\..\src\common.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\src\fileio.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\src\vm\disk.h">
-      <Filter>Header Files</Filter>
-    </ClInclude>
-  </ItemGroup>
+<?xml version="1.0" encoding="utf-8"?>\r
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+  <ItemGroup>\r
+    <Filter Include="Source Files">\r
+      <UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>\r
+      <Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>\r
+    </Filter>\r
+    <Filter Include="Header Files">\r
+      <UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>\r
+      <Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>\r
+    </Filter>\r
+    <Filter Include="Resource Files">\r
+      <UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>\r
+      <Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav</Extensions>\r
+    </Filter>\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <ClCompile Include="any2d88.cpp">\r
+      <Filter>Source Files</Filter>\r
+    </ClCompile>\r
+    <ClCompile Include="..\..\src\common.cpp">\r
+      <Filter>Source Files</Filter>\r
+    </ClCompile>\r
+    <ClCompile Include="..\..\src\fileio.cpp">\r
+      <Filter>Source Files</Filter>\r
+    </ClCompile>\r
+    <ClCompile Include="..\..\src\vm\disk.cpp">\r
+      <Filter>Source Files</Filter>\r
+    </ClCompile>\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <ClInclude Include="..\..\src\common.h">\r
+      <Filter>Header Files</Filter>\r
+    </ClInclude>\r
+    <ClInclude Include="..\..\src\fileio.h">\r
+      <Filter>Header Files</Filter>\r
+    </ClInclude>\r
+    <ClInclude Include="..\..\src\vm\disk.h">\r
+      <Filter>Header Files</Filter>\r
+    </ClInclude>\r
+  </ItemGroup>\r
 </Project>
\ No newline at end of file
index 2000378..e336c5b 100644 (file)
-<?xml version="1.0" encoding="shift_jis"?>
-<VisualStudioProject
-       ProjectType="Visual C++"
-       Version="9.00"
-       Name="d88fix"
-       ProjectGUID="{7F241E68-EB84-4412-AF32-70EAF1C6C212}"
-       RootNamespace="d88fix"
-       TargetFrameworkVersion="196613"
-       >
-       <Platforms>
-               <Platform
-                       Name="Win32"
-               />
-       </Platforms>
-       <ToolFiles>
-       </ToolFiles>
-       <Configurations>
-               <Configuration
-                       Name="Debug|Win32"
-                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
-                       IntermediateDirectory="$(ConfigurationName)"
-                       ConfigurationType="1"
-                       CharacterSet="2"
-                       >
-                       <Tool
-                               Name="VCPreBuildEventTool"
-                       />
-                       <Tool
-                               Name="VCCustomBuildTool"
-                       />
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCMIDLTool"
-                       />
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="0"
-                               MinimalRebuild="true"
-                               BasicRuntimeChecks="3"
-                               RuntimeLibrary="3"
-                               WarningLevel="3"
-                               DebugInformationFormat="4"
-                       />
-                       <Tool
-                               Name="VCManagedResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCPreLinkEventTool"
-                       />
-                       <Tool
-                               Name="VCLinkerTool"
-                               GenerateDebugInformation="true"
-                               TargetMachine="1"
-                       />
-                       <Tool
-                               Name="VCALinkTool"
-                       />
-                       <Tool
-                               Name="VCManifestTool"
-                       />
-                       <Tool
-                               Name="VCXDCMakeTool"
-                       />
-                       <Tool
-                               Name="VCBscMakeTool"
-                       />
-                       <Tool
-                               Name="VCFxCopTool"
-                       />
-                       <Tool
-                               Name="VCAppVerifierTool"
-                       />
-                       <Tool
-                               Name="VCPostBuildEventTool"
-                       />
-               </Configuration>
-               <Configuration
-                       Name="Release|Win32"
-                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
-                       IntermediateDirectory="$(ConfigurationName)"
-                       ConfigurationType="1"
-                       CharacterSet="2"
-                       WholeProgramOptimization="1"
-                       >
-                       <Tool
-                               Name="VCPreBuildEventTool"
-                       />
-                       <Tool
-                               Name="VCCustomBuildTool"
-                       />
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCMIDLTool"
-                       />
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="2"
-                               EnableIntrinsicFunctions="true"
-                               RuntimeLibrary="2"
-                               EnableFunctionLevelLinking="true"
-                               WarningLevel="3"
-                               DebugInformationFormat="3"
-                       />
-                       <Tool
-                               Name="VCManagedResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCPreLinkEventTool"
-                       />
-                       <Tool
-                               Name="VCLinkerTool"
-                               GenerateDebugInformation="true"
-                               OptimizeReferences="2"
-                               EnableCOMDATFolding="2"
-                               TargetMachine="1"
-                       />
-                       <Tool
-                               Name="VCALinkTool"
-                       />
-                       <Tool
-                               Name="VCManifestTool"
-                       />
-                       <Tool
-                               Name="VCXDCMakeTool"
-                       />
-                       <Tool
-                               Name="VCBscMakeTool"
-                       />
-                       <Tool
-                               Name="VCFxCopTool"
-                       />
-                       <Tool
-                               Name="VCAppVerifierTool"
-                       />
-                       <Tool
-                               Name="VCPostBuildEventTool"
-                       />
-               </Configuration>
-       </Configurations>
-       <References>
-       </References>
-       <Files>
-               <Filter
-                       Name="Source Files"
-                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
-                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
-                       >
-                       <File
-                               RelativePath=".\d88fix.cpp"
-                               >
-                       </File>
-               </Filter>
-               <Filter
-                       Name="Header Files"
-                       Filter="h;hpp;hxx;hm;inl;inc;xsd"
-                       UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
-                       >
-               </Filter>
-               <Filter
-                       Name="Resource Files"
-                       Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
-                       UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
-                       >
-               </Filter>
-       </Files>
-       <Globals>
-       </Globals>
-</VisualStudioProject>
+<?xml version="1.0" encoding="shift_jis"?>\r
+<VisualStudioProject\r
+       ProjectType="Visual C++"\r
+       Version="9.00"\r
+       Name="d88fix"\r
+       ProjectGUID="{7F241E68-EB84-4412-AF32-70EAF1C6C212}"\r
+       RootNamespace="d88fix"\r
+       TargetFrameworkVersion="196613"\r
+       >\r
+       <Platforms>\r
+               <Platform\r
+                       Name="Win32"\r
+               />\r
+       </Platforms>\r
+       <ToolFiles>\r
+       </ToolFiles>\r
+       <Configurations>\r
+               <Configuration\r
+                       Name="Debug|Win32"\r
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="1"\r
+                       CharacterSet="2"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="0"\r
+                               MinimalRebuild="true"\r
+                               BasicRuntimeChecks="3"\r
+                               RuntimeLibrary="3"\r
+                               WarningLevel="3"\r
+                               DebugInformationFormat="4"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               GenerateDebugInformation="true"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+               <Configuration\r
+                       Name="Release|Win32"\r
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="1"\r
+                       CharacterSet="2"\r
+                       WholeProgramOptimization="1"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="2"\r
+                               EnableIntrinsicFunctions="true"\r
+                               RuntimeLibrary="2"\r
+                               EnableFunctionLevelLinking="true"\r
+                               WarningLevel="3"\r
+                               DebugInformationFormat="3"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               GenerateDebugInformation="true"\r
+                               OptimizeReferences="2"\r
+                               EnableCOMDATFolding="2"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+       </Configurations>\r
+       <References>\r
+       </References>\r
+       <Files>\r
+               <Filter\r
+                       Name="Source Files"\r
+                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"\r
+                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"\r
+                       >\r
+                       <File\r
+                               RelativePath=".\d88fix.cpp"\r
+                               >\r
+                       </File>\r
+               </Filter>\r
+               <Filter\r
+                       Name="Header Files"\r
+                       Filter="h;hpp;hxx;hm;inl;inc;xsd"\r
+                       UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"\r
+                       >\r
+               </Filter>\r
+               <Filter\r
+                       Name="Resource Files"\r
+                       Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"\r
+                       UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"\r
+                       >\r
+               </Filter>\r
+       </Files>\r
+       <Globals>\r
+       </Globals>\r
+</VisualStudioProject>\r
index efc6bca..28b5445 100644 (file)
@@ -1,24 +1,24 @@
-/*
-       hdd image creater for eFMR-50
-       
-       Author : Takeda.Toshiya
-       Date   : 2004.09.10 -
-*/
-
-#include <stdio.h>
-
-// variable scope of 'for' loop (for microsoft visual c++ 6.0)
-#define for if(0);else for
-// type definition
-typedef unsigned char uint8_t;
-
-#define HDD_SIZE (40*1024*1024)
-
-void main()
-{
-       FILE* fp = fopen("SCSI0.DAT", "wb");
-       for(int i = 0; i < HDD_SIZE; i++)
-               fputc(0, fp);
-       fclose(fp);
-}
-
+/*\r
+       hdd image creater for eFMR-50\r
+       \r
+       Author : Takeda.Toshiya\r
+       Date   : 2004.09.10 -\r
+*/\r
+\r
+#include <stdio.h>\r
+\r
+// variable scope of 'for' loop (for microsoft visual c++ 6.0)\r
+#define for if(0);else for\r
+// type definition\r
+typedef unsigned char uint8_t;\r
+\r
+#define HDD_SIZE (40*1024*1024)\r
+\r
+void main()\r
+{\r
+       FILE* fp = fopen("SCSI0.DAT", "wb");\r
+       for(int i = 0; i < HDD_SIZE; i++)\r
+               fputc(0, fp);\r
+       fclose(fp);\r
+}\r
+\r
index 3d85e83..1f2995d 100644 (file)
-
-#include <windows.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-void main()
-{
-       // create dib section (32x32, 16bpp)
-       LPBYTE lpBuf = (LPBYTE)GlobalAlloc(GPTR, sizeof(BITMAPINFO));
-       LPBITMAPINFO lpDib = (LPBITMAPINFO)lpBuf;
-       lpDib->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
-       lpDib->bmiHeader.biWidth = 32;
-       lpDib->bmiHeader.biHeight = 32;
-       lpDib->bmiHeader.biPlanes = 1;
-       lpDib->bmiHeader.biBitCount = 16;
-       lpDib->bmiHeader.biCompression = BI_RGB;
-       lpDib->bmiHeader.biSizeImage = 0;
-       lpDib->bmiHeader.biXPelsPerMeter = 0;
-       lpDib->bmiHeader.biYPelsPerMeter = 0;
-       lpDib->bmiHeader.biClrUsed = 0;
-       lpDib->bmiHeader.biClrImportant = 0;
-       HDC hdc = CreateDC("DISPLAY", NULL, NULL, NULL);
-       LPWORD lpBmp;
-       HBITMAP hBmp = CreateDIBSection(hdc, lpDib, DIB_RGB_COLORS, (PVOID*)&lpBmp, NULL, 0);
-       HDC hdcDib = CreateCompatibleDC(hdc);
-       SelectObject(hdcDib, hBmp);
-       
-       // create font (ms gothic, 16pt)
-       LOGFONT logfont;
-       logfont.lfEscapement = 0;
-       logfont.lfOrientation = 0;
-       logfont.lfWeight = FW_NORMAL;
-       logfont.lfItalic = FALSE;
-       logfont.lfUnderline = FALSE;
-       logfont.lfStrikeOut = FALSE;
-       logfont.lfCharSet = SHIFTJIS_CHARSET;
-       logfont.lfOutPrecision = OUT_TT_PRECIS;
-       logfont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
-       logfont.lfQuality = DEFAULT_QUALITY; 
-       logfont.lfPitchAndFamily = FIXED_PITCH | FF_DONTCARE;
-       strcpy(logfont.lfFaceName, "\82l\82\83S\83V\83b\83N");
-//     strcpy(logfont.lfFaceName, "\82l\82\96¾\92©");
-       logfont.lfHeight = 16;
-       logfont.lfWidth = 8;
-       HFONT hFont = CreateFontIndirect(&logfont);
-       SelectObject(hdcDib, hFont);
-       SetBkMode(hdcDib, TRANSPARENT);
-       SetTextColor(hdcDib, RGB(255, 255, 255));
-       
-       // convert font
-       FILE* fs = fopen("kanji.txt", "rb");
-       if(fs == NULL) {
-               printf("kanji.txt not found.\n");
-               return;
-       }
-
-       FILE* fd = fopen("KANJI.ROM", "wb");
-       int c1, count = 0;
-       while((c1 = fgetc(fs)) != EOF) {
-               memset(lpBmp, 0, 32 * 32 * 2);
-
-               if(c1 == 0x0d || c1 == 0x0a) {
-                       fgetc(fs);
-                       continue;
-               }
-               else if((0x81 <= c1 && c1 <= 0x9f) || 0xe0 <= c1) {
-                       // kanji
-                       char string[3];
-                       string[0] = c1;
-                       string[1] = fgetc(fs);
-                       string[2] = '\0';
-                       ExtTextOut(hdcDib, 1, 0, NULL, NULL, string, 2, NULL);
-               }
-               else if(c1 == 0x20 && count >= 256 && ((count & 0xff) < 0x40 || count >= 6260)) {
-                       memset(lpBmp, 0xff, 32 * 32 * 2);
-                       fgetc(fs);
-               }
-               else {
-                       // 1st
-                       char string[2];
-                       string[0] = c1;
-                       string[1] = '\0';
-                       ExtTextOut(hdcDib, 1, 0, NULL, NULL, string, 1, NULL);
-                       
-                       // 2nd
-                       string[0] = fgetc(fs);
-                       ExtTextOut(hdcDib, 9, 0, NULL, NULL, string, 1, NULL);
-               }
-               for(int y = 0; y < 16; y++) {
-                       LPWORD pat = &lpBmp[32 * (31 - y)];
-                       int d;
-                       d  = pat[ 0] ? 0x80 : 0;
-                       d |= pat[ 1] ? 0x40 : 0;
-                       d |= pat[ 2] ? 0x20 : 0;
-                       d |= pat[ 3] ? 0x10 : 0;
-                       d |= pat[ 4] ? 0x08 : 0;
-                       d |= pat[ 5] ? 0x04 : 0;
-                       d |= pat[ 6] ? 0x02 : 0;
-                       d |= pat[ 7] ? 0x01 : 0;
-                       fputc(d, fd);
-                       d  = pat[ 8] ? 0x80 : 0;
-                       d |= pat[ 9] ? 0x40 : 0;
-                       d |= pat[10] ? 0x20 : 0;
-                       d |= pat[11] ? 0x10 : 0;
-                       d |= pat[12] ? 0x08 : 0;
-                       d |= pat[13] ? 0x04 : 0;
-                       d |= pat[14] ? 0x02 : 0;
-                       d |= pat[15] ? 0x01 : 0;
-                       fputc(d, fd);
-               }
-               count++;
-       }
-       fclose(fd);
-       fclose(fs);
-       
-       // release
-       DeleteObject(hFont);
-       DeleteDC(hdcDib);
-       DeleteObject(hBmp);
-       GlobalFree(lpBuf);
-}
-
+\r
+#include <windows.h>\r
+#include <stdio.h>\r
+#include <stdlib.h>\r
+\r
+void main()\r
+{\r
+       // create dib section (32x32, 16bpp)\r
+       LPBYTE lpBuf = (LPBYTE)GlobalAlloc(GPTR, sizeof(BITMAPINFO));\r
+       LPBITMAPINFO lpDib = (LPBITMAPINFO)lpBuf;\r
+       lpDib->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);\r
+       lpDib->bmiHeader.biWidth = 32;\r
+       lpDib->bmiHeader.biHeight = 32;\r
+       lpDib->bmiHeader.biPlanes = 1;\r
+       lpDib->bmiHeader.biBitCount = 16;\r
+       lpDib->bmiHeader.biCompression = BI_RGB;\r
+       lpDib->bmiHeader.biSizeImage = 0;\r
+       lpDib->bmiHeader.biXPelsPerMeter = 0;\r
+       lpDib->bmiHeader.biYPelsPerMeter = 0;\r
+       lpDib->bmiHeader.biClrUsed = 0;\r
+       lpDib->bmiHeader.biClrImportant = 0;\r
+       HDC hdc = CreateDC("DISPLAY", NULL, NULL, NULL);\r
+       LPWORD lpBmp;\r
+       HBITMAP hBmp = CreateDIBSection(hdc, lpDib, DIB_RGB_COLORS, (PVOID*)&lpBmp, NULL, 0);\r
+       HDC hdcDib = CreateCompatibleDC(hdc);\r
+       SelectObject(hdcDib, hBmp);\r
+       \r
+       // create font (ms gothic, 16pt)\r
+       LOGFONT logfont;\r
+       logfont.lfEscapement = 0;\r
+       logfont.lfOrientation = 0;\r
+       logfont.lfWeight = FW_NORMAL;\r
+       logfont.lfItalic = FALSE;\r
+       logfont.lfUnderline = FALSE;\r
+       logfont.lfStrikeOut = FALSE;\r
+       logfont.lfCharSet = SHIFTJIS_CHARSET;\r
+       logfont.lfOutPrecision = OUT_TT_PRECIS;\r
+       logfont.lfClipPrecision = CLIP_DEFAULT_PRECIS;\r
+       logfont.lfQuality = DEFAULT_QUALITY; \r
+       logfont.lfPitchAndFamily = FIXED_PITCH | FF_DONTCARE;\r
+       strcpy(logfont.lfFaceName, "\82l\82\83S\83V\83b\83N");\r
+//     strcpy(logfont.lfFaceName, "\82l\82\96¾\92©");\r
+       logfont.lfHeight = 16;\r
+       logfont.lfWidth = 8;\r
+       HFONT hFont = CreateFontIndirect(&logfont);\r
+       SelectObject(hdcDib, hFont);\r
+       SetBkMode(hdcDib, TRANSPARENT);\r
+       SetTextColor(hdcDib, RGB(255, 255, 255));\r
+       \r
+       // convert font\r
+       FILE* fs = fopen("kanji.txt", "rb");\r
+       if(fs == NULL) {\r
+               printf("kanji.txt not found.\n");\r
+               return;\r
+       }\r
+\r
+       FILE* fd = fopen("KANJI.ROM", "wb");\r
+       int c1, count = 0;\r
+       while((c1 = fgetc(fs)) != EOF) {\r
+               memset(lpBmp, 0, 32 * 32 * 2);\r
+\r
+               if(c1 == 0x0d || c1 == 0x0a) {\r
+                       fgetc(fs);\r
+                       continue;\r
+               }\r
+               else if((0x81 <= c1 && c1 <= 0x9f) || 0xe0 <= c1) {\r
+                       // kanji\r
+                       char string[3];\r
+                       string[0] = c1;\r
+                       string[1] = fgetc(fs);\r
+                       string[2] = '\0';\r
+                       ExtTextOut(hdcDib, 1, 0, NULL, NULL, string, 2, NULL);\r
+               }\r
+               else if(c1 == 0x20 && count >= 256 && ((count & 0xff) < 0x40 || count >= 6260)) {\r
+                       memset(lpBmp, 0xff, 32 * 32 * 2);\r
+                       fgetc(fs);\r
+               }\r
+               else {\r
+                       // 1st\r
+                       char string[2];\r
+                       string[0] = c1;\r
+                       string[1] = '\0';\r
+                       ExtTextOut(hdcDib, 1, 0, NULL, NULL, string, 1, NULL);\r
+                       \r
+                       // 2nd\r
+                       string[0] = fgetc(fs);\r
+                       ExtTextOut(hdcDib, 9, 0, NULL, NULL, string, 1, NULL);\r
+               }\r
+               for(int y = 0; y < 16; y++) {\r
+                       LPWORD pat = &lpBmp[32 * (31 - y)];\r
+                       int d;\r
+                       d  = pat[ 0] ? 0x80 : 0;\r
+                       d |= pat[ 1] ? 0x40 : 0;\r
+                       d |= pat[ 2] ? 0x20 : 0;\r
+                       d |= pat[ 3] ? 0x10 : 0;\r
+                       d |= pat[ 4] ? 0x08 : 0;\r
+                       d |= pat[ 5] ? 0x04 : 0;\r
+                       d |= pat[ 6] ? 0x02 : 0;\r
+                       d |= pat[ 7] ? 0x01 : 0;\r
+                       fputc(d, fd);\r
+                       d  = pat[ 8] ? 0x80 : 0;\r
+                       d |= pat[ 9] ? 0x40 : 0;\r
+                       d |= pat[10] ? 0x20 : 0;\r
+                       d |= pat[11] ? 0x10 : 0;\r
+                       d |= pat[12] ? 0x08 : 0;\r
+                       d |= pat[13] ? 0x04 : 0;\r
+                       d |= pat[14] ? 0x02 : 0;\r
+                       d |= pat[15] ? 0x01 : 0;\r
+                       fputc(d, fd);\r
+               }\r
+               count++;\r
+       }\r
+       fclose(fd);\r
+       fclose(fs);\r
+       \r
+       // release\r
+       DeleteObject(hFont);\r
+       DeleteDC(hdcDib);\r
+       DeleteObject(hBmp);\r
+       GlobalFree(lpBuf);\r
+}\r
+\r
index e5f9849..ab1fecc 100644 (file)
-<?xml version="1.0" encoding="shift_jis"?>
-<VisualStudioProject
-       ProjectType="Visual C++"
-       Version="9.00"
-       Name="mkfont"
-       ProjectGUID="{82AEFE2D-AFA3-4954-B32D-06EC53EBA06D}"
-       RootNamespace="mkfont"
-       Keyword="Win32Proj"
-       TargetFrameworkVersion="196613"
-       >
-       <Platforms>
-               <Platform
-                       Name="Win32"
-               />
-       </Platforms>
-       <ToolFiles>
-       </ToolFiles>
-       <Configurations>
-               <Configuration
-                       Name="Debug|Win32"
-                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
-                       IntermediateDirectory="$(ConfigurationName)"
-                       ConfigurationType="1"
-                       CharacterSet="1"
-                       >
-                       <Tool
-                               Name="VCPreBuildEventTool"
-                       />
-                       <Tool
-                               Name="VCCustomBuildTool"
-                       />
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCMIDLTool"
-                       />
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="0"
-                               PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
-                               MinimalRebuild="true"
-                               BasicRuntimeChecks="3"
-                               RuntimeLibrary="3"
-                               UsePrecompiledHeader="0"
-                               WarningLevel="3"
-                               DebugInformationFormat="4"
-                       />
-                       <Tool
-                               Name="VCManagedResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCPreLinkEventTool"
-                       />
-                       <Tool
-                               Name="VCLinkerTool"
-                               LinkIncremental="2"
-                               GenerateDebugInformation="true"
-                               SubSystem="1"
-                               TargetMachine="1"
-                       />
-                       <Tool
-                               Name="VCALinkTool"
-                       />
-                       <Tool
-                               Name="VCManifestTool"
-                       />
-                       <Tool
-                               Name="VCXDCMakeTool"
-                       />
-                       <Tool
-                               Name="VCBscMakeTool"
-                       />
-                       <Tool
-                               Name="VCFxCopTool"
-                       />
-                       <Tool
-                               Name="VCAppVerifierTool"
-                       />
-                       <Tool
-                               Name="VCPostBuildEventTool"
-                       />
-               </Configuration>
-               <Configuration
-                       Name="Release|Win32"
-                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
-                       IntermediateDirectory="$(ConfigurationName)"
-                       ConfigurationType="1"
-                       CharacterSet="2"
-                       WholeProgramOptimization="1"
-                       >
-                       <Tool
-                               Name="VCPreBuildEventTool"
-                       />
-                       <Tool
-                               Name="VCCustomBuildTool"
-                       />
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCMIDLTool"
-                       />
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="2"
-                               EnableIntrinsicFunctions="true"
-                               PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
-                               RuntimeLibrary="2"
-                               EnableFunctionLevelLinking="true"
-                               TreatWChar_tAsBuiltInType="true"
-                               UsePrecompiledHeader="0"
-                               WarningLevel="3"
-                               DebugInformationFormat="3"
-                       />
-                       <Tool
-                               Name="VCManagedResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCPreLinkEventTool"
-                       />
-                       <Tool
-                               Name="VCLinkerTool"
-                               LinkIncremental="1"
-                               GenerateDebugInformation="true"
-                               SubSystem="1"
-                               OptimizeReferences="2"
-                               EnableCOMDATFolding="2"
-                               TargetMachine="1"
-                       />
-                       <Tool
-                               Name="VCALinkTool"
-                       />
-                       <Tool
-                               Name="VCManifestTool"
-                       />
-                       <Tool
-                               Name="VCXDCMakeTool"
-                       />
-                       <Tool
-                               Name="VCBscMakeTool"
-                       />
-                       <Tool
-                               Name="VCFxCopTool"
-                       />
-                       <Tool
-                               Name="VCAppVerifierTool"
-                       />
-                       <Tool
-                               Name="VCPostBuildEventTool"
-                       />
-               </Configuration>
-       </Configurations>
-       <References>
-       </References>
-       <Files>
-               <Filter
-                       Name="Source Files"
-                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
-                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
-                       >
-                       <File
-                               RelativePath=".\mkfont.cpp"
-                               >
-                       </File>
-               </Filter>
-               <Filter
-                       Name="Header Files"
-                       Filter="h;hpp;hxx;hm;inl;inc;xsd"
-                       UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
-                       >
-               </Filter>
-               <Filter
-                       Name="Resource Files"
-                       Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
-                       UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
-                       >
-               </Filter>
-       </Files>
-       <Globals>
-       </Globals>
-</VisualStudioProject>
+<?xml version="1.0" encoding="shift_jis"?>\r
+<VisualStudioProject\r
+       ProjectType="Visual C++"\r
+       Version="9.00"\r
+       Name="mkfont"\r
+       ProjectGUID="{82AEFE2D-AFA3-4954-B32D-06EC53EBA06D}"\r
+       RootNamespace="mkfont"\r
+       Keyword="Win32Proj"\r
+       TargetFrameworkVersion="196613"\r
+       >\r
+       <Platforms>\r
+               <Platform\r
+                       Name="Win32"\r
+               />\r
+       </Platforms>\r
+       <ToolFiles>\r
+       </ToolFiles>\r
+       <Configurations>\r
+               <Configuration\r
+                       Name="Debug|Win32"\r
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="1"\r
+                       CharacterSet="1"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="0"\r
+                               PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"\r
+                               MinimalRebuild="true"\r
+                               BasicRuntimeChecks="3"\r
+                               RuntimeLibrary="3"\r
+                               UsePrecompiledHeader="0"\r
+                               WarningLevel="3"\r
+                               DebugInformationFormat="4"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               LinkIncremental="2"\r
+                               GenerateDebugInformation="true"\r
+                               SubSystem="1"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+               <Configuration\r
+                       Name="Release|Win32"\r
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="1"\r
+                       CharacterSet="2"\r
+                       WholeProgramOptimization="1"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="2"\r
+                               EnableIntrinsicFunctions="true"\r
+                               PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"\r
+                               RuntimeLibrary="2"\r
+                               EnableFunctionLevelLinking="true"\r
+                               TreatWChar_tAsBuiltInType="true"\r
+                               UsePrecompiledHeader="0"\r
+                               WarningLevel="3"\r
+                               DebugInformationFormat="3"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               LinkIncremental="1"\r
+                               GenerateDebugInformation="true"\r
+                               SubSystem="1"\r
+                               OptimizeReferences="2"\r
+                               EnableCOMDATFolding="2"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+       </Configurations>\r
+       <References>\r
+       </References>\r
+       <Files>\r
+               <Filter\r
+                       Name="Source Files"\r
+                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"\r
+                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"\r
+                       >\r
+                       <File\r
+                               RelativePath=".\mkfont.cpp"\r
+                               >\r
+                       </File>\r
+               </Filter>\r
+               <Filter\r
+                       Name="Header Files"\r
+                       Filter="h;hpp;hxx;hm;inl;inc;xsd"\r
+                       UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"\r
+                       >\r
+               </Filter>\r
+               <Filter\r
+                       Name="Resource Files"\r
+                       Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"\r
+                       UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"\r
+                       >\r
+               </Filter>\r
+       </Files>\r
+       <Globals>\r
+       </Globals>\r
+</VisualStudioProject>\r
index 4115747..25df184 100644 (file)
-#include <windows.h>
-#include <stdio.h>
-#include <memory.h>
-
-#define NARROW(p)      (6 <= (p) && (p) <= 14)
-#define WIDE(p)                (16 <= (p) && (p) <= 24)
-
-int fgetc2(FILE* fp)
-{
-       int dat;
-       while((dat = fgetc(fp)) != EOF) {
-               if(dat == 'N' || dat == 'w')
-                       return dat;
-       }
-       return EOF;
-}
-
-void main(int argc, char **argv)
-{
-       if(argc < 1)
-               return;
-       
-       // get path
-       int dat, l = 0, h = 0, w = 0, n = 0;
-       bool prev = false;
-       FILE *fs, *fd;
-
-       char root[_MAX_PATH], file[_MAX_PATH];
-       char tmp1[_MAX_PATH], tmp2[_MAX_PATH], dest[_MAX_PATH];
-       GetModuleFileName(NULL, root, _MAX_PATH);
-       int p = strlen(root);
-       while(root[p] != '\\')
-               p--;
-       root[p] = '\0';
-
-       strcpy(tmp1, argv[1]);
-       p = strlen(tmp1);
-       while(p != 0 && tmp1[p] != '\\')
-               p--;
-       if(p)
-               strcpy(file, &tmp1[p + 1]);
-       else
-               strcpy(file, argv[1]);
-
-       sprintf(tmp1, "%s\\tmp1.txt", root);
-       sprintf(tmp2, "%s\\tmp2.txt", root);
-       sprintf(dest, "%s\\dest.cas", root);
-       
-       if(strcmp(file, "tmp1.txt") == 0) {
-               printf("skip wav->pulse\n");
-               goto label1;
-       }
-       if(strcmp(file, "tmp2.txt") == 0) {
-               printf("skip wav->pulse\n");
-               printf("skip pulse->bit\n");
-               goto label2;
-       }
-       
-       // convert #1 (wav -> pulse)
-       fs = fopen(argv[1], "rb");
-       fd = fopen(tmp1, "w");
-       
-       while((dat = fgetc(fs)) != EOF) {
-               bool current = dat & 0x80 ? false : true;
-               if(prev && !current) {
-                       if(NARROW(l) && (NARROW(h) || WIDE(h)))
-                               fputc('N', fd);
-                       else if(WIDE(l) && (WIDE(h) || NARROW(h)))
-                               fputc('w', fd);
-                       else
-                               fprintf(fd, "[%d,%d]", l, h);
-                       l = h = 0;
-               }
-               if(current)
-                       h++;
-               else
-                       l++;
-               prev = current;
-       }
-       fclose(fd);
-       fclose(fs);
-       
-label1:
-       
-       // convert #2 (pulse -> bit)
-       fs = fopen(tmp1, "rb");
-       fd = fopen(tmp2, "w");
-       prev = true;
-       
-       while((dat = fgetc(fs)) != EOF) {
-               if(dat != 'w' && dat != 'N') {
-                       fputc(dat, fd);
-                       continue;
-               }
-               bool current = (dat == 'w') ? true : false;
-               if(prev != current) {
-                       if(w)
-                               fprintf(fd, "[W%d]", w);
-                       if(n)
-                               fprintf(fd, "[n%d]", n);
-                       w = n = 0;
-               }
-               prev = current;
-               
-               if(current)
-                       w++;
-               else
-                       n++;
-               if(w == 2) {
-                       fputc('w', fd);
-                       w = n = 0;
-               }
-               if(n == 4) {
-                       fputc('N', fd);
-                       w = n = 0;
-               }
-       }
-       fclose(fd);
-       fclose(fs);
-       
-label2:
-       
-       // convert #3 (bit -> byte)
-       fs = fopen(tmp2, "rb");
-       fd = fopen(dest, "wb");
-       
-       while((dat = fgetc2(fs)) != EOF) {
-               if(dat != 'N')
-                       continue;
-               if(fgetc2(fs) != 'N')
-                       continue;
-label3:
-               dat = fgetc2(fs);
-               if(dat == EOF)
-                       break;
-               if(dat != 'w')
-                       goto label3;
-               int d = 0;
-               d |= (fgetc2(fs) == 'N') ? 0x01 : 0;
-               d |= (fgetc2(fs) == 'N') ? 0x02 : 0;
-               d |= (fgetc2(fs) == 'N') ? 0x04 : 0;
-               d |= (fgetc2(fs) == 'N') ? 0x08 : 0;
-               d |= (fgetc2(fs) == 'N') ? 0x10 : 0;
-               d |= (fgetc2(fs) == 'N') ? 0x20 : 0;
-               d |= (fgetc2(fs) == 'N') ? 0x40 : 0;
-               d |= (fgetc2(fs) == 'N') ? 0x80 : 0;
-               fputc(d, fd);
-       }
-       fclose(fd);
-       fclose(fs);
-}
+#include <windows.h>\r
+#include <stdio.h>\r
+#include <memory.h>\r
+\r
+#define NARROW(p)      (6 <= (p) && (p) <= 14)\r
+#define WIDE(p)                (16 <= (p) && (p) <= 24)\r
+\r
+int fgetc2(FILE* fp)\r
+{\r
+       int dat;\r
+       while((dat = fgetc(fp)) != EOF) {\r
+               if(dat == 'N' || dat == 'w')\r
+                       return dat;\r
+       }\r
+       return EOF;\r
+}\r
+\r
+void main(int argc, char **argv)\r
+{\r
+       if(argc < 1)\r
+               return;\r
+       \r
+       // get path\r
+       int dat, l = 0, h = 0, w = 0, n = 0;\r
+       bool prev = false;\r
+       FILE *fs, *fd;\r
+\r
+       char root[_MAX_PATH], file[_MAX_PATH];\r
+       char tmp1[_MAX_PATH], tmp2[_MAX_PATH], dest[_MAX_PATH];\r
+       GetModuleFileName(NULL, root, _MAX_PATH);\r
+       int p = strlen(root);\r
+       while(root[p] != '\\')\r
+               p--;\r
+       root[p] = '\0';\r
+\r
+       strcpy(tmp1, argv[1]);\r
+       p = strlen(tmp1);\r
+       while(p != 0 && tmp1[p] != '\\')\r
+               p--;\r
+       if(p)\r
+               strcpy(file, &tmp1[p + 1]);\r
+       else\r
+               strcpy(file, argv[1]);\r
+\r
+       sprintf(tmp1, "%s\\tmp1.txt", root);\r
+       sprintf(tmp2, "%s\\tmp2.txt", root);\r
+       sprintf(dest, "%s\\dest.cas", root);\r
+       \r
+       if(strcmp(file, "tmp1.txt") == 0) {\r
+               printf("skip wav->pulse\n");\r
+               goto label1;\r
+       }\r
+       if(strcmp(file, "tmp2.txt") == 0) {\r
+               printf("skip wav->pulse\n");\r
+               printf("skip pulse->bit\n");\r
+               goto label2;\r
+       }\r
+       \r
+       // convert #1 (wav -> pulse)\r
+       fs = fopen(argv[1], "rb");\r
+       fd = fopen(tmp1, "w");\r
+       \r
+       while((dat = fgetc(fs)) != EOF) {\r
+               bool current = dat & 0x80 ? false : true;\r
+               if(prev && !current) {\r
+                       if(NARROW(l) && (NARROW(h) || WIDE(h)))\r
+                               fputc('N', fd);\r
+                       else if(WIDE(l) && (WIDE(h) || NARROW(h)))\r
+                               fputc('w', fd);\r
+                       else\r
+                               fprintf(fd, "[%d,%d]", l, h);\r
+                       l = h = 0;\r
+               }\r
+               if(current)\r
+                       h++;\r
+               else\r
+                       l++;\r
+               prev = current;\r
+       }\r
+       fclose(fd);\r
+       fclose(fs);\r
+       \r
+label1:\r
+       \r
+       // convert #2 (pulse -> bit)\r
+       fs = fopen(tmp1, "rb");\r
+       fd = fopen(tmp2, "w");\r
+       prev = true;\r
+       \r
+       while((dat = fgetc(fs)) != EOF) {\r
+               if(dat != 'w' && dat != 'N') {\r
+                       fputc(dat, fd);\r
+                       continue;\r
+               }\r
+               bool current = (dat == 'w') ? true : false;\r
+               if(prev != current) {\r
+                       if(w)\r
+                               fprintf(fd, "[W%d]", w);\r
+                       if(n)\r
+                               fprintf(fd, "[n%d]", n);\r
+                       w = n = 0;\r
+               }\r
+               prev = current;\r
+               \r
+               if(current)\r
+                       w++;\r
+               else\r
+                       n++;\r
+               if(w == 2) {\r
+                       fputc('w', fd);\r
+                       w = n = 0;\r
+               }\r
+               if(n == 4) {\r
+                       fputc('N', fd);\r
+                       w = n = 0;\r
+               }\r
+       }\r
+       fclose(fd);\r
+       fclose(fs);\r
+       \r
+label2:\r
+       \r
+       // convert #3 (bit -> byte)\r
+       fs = fopen(tmp2, "rb");\r
+       fd = fopen(dest, "wb");\r
+       \r
+       while((dat = fgetc2(fs)) != EOF) {\r
+               if(dat != 'N')\r
+                       continue;\r
+               if(fgetc2(fs) != 'N')\r
+                       continue;\r
+label3:\r
+               dat = fgetc2(fs);\r
+               if(dat == EOF)\r
+                       break;\r
+               if(dat != 'w')\r
+                       goto label3;\r
+               int d = 0;\r
+               d |= (fgetc2(fs) == 'N') ? 0x01 : 0;\r
+               d |= (fgetc2(fs) == 'N') ? 0x02 : 0;\r
+               d |= (fgetc2(fs) == 'N') ? 0x04 : 0;\r
+               d |= (fgetc2(fs) == 'N') ? 0x08 : 0;\r
+               d |= (fgetc2(fs) == 'N') ? 0x10 : 0;\r
+               d |= (fgetc2(fs) == 'N') ? 0x20 : 0;\r
+               d |= (fgetc2(fs) == 'N') ? 0x40 : 0;\r
+               d |= (fgetc2(fs) == 'N') ? 0x80 : 0;\r
+               fputc(d, fd);\r
+       }\r
+       fclose(fd);\r
+       fclose(fs);\r
+}\r
index 796a42f..dd84b0e 100644 (file)
-#include <windows.h>
-#include <stdio.h>
-#include <memory.h>
-
-#define NARROW(p)      (6 <= (p) && (p) <= 14)
-#define WIDE(p)                (16 <= (p) && (p) <= 24)
-
-int fgetc2(FILE* fp)
-{
-       int dat;
-       while((dat = fgetc(fp)) != EOF) {
-               if(dat == 'N' || dat == 'w')
-                       return dat;
-       }
-       return EOF;
-}
-
-void fputc2(int dat, FILE* fp)
-{
-       static int head = 0, cnt = 0, sum = 0, total = 0;
-       
-       if(head++ < 6)
-               return;
-       if(sum) {
-               sum--;
-               return;
-       }
-       if(cnt++ < 255) {
-               if(total++ < 0x8000)
-                       fputc(dat, fp);
-       }
-       else {
-               sum = 2;
-               cnt = 0;
-       }
-}
-
-void main(int argc, char **argv)
-{
-       if(argc < 1)
-               return;
-       
-       // get path
-       int dat, l = 0, h = 0, w = 0, n = 0;
-       bool prev = false;
-       FILE *fs, *fd;
-
-       char root[_MAX_PATH], file[_MAX_PATH];
-       char tmp1[_MAX_PATH], tmp2[_MAX_PATH], dest[_MAX_PATH];
-       GetModuleFileName(NULL, root, _MAX_PATH);
-       int p = strlen(root);
-       while(root[p] != '\\')
-               p--;
-       root[p] = '\0';
-
-       strcpy(tmp1, argv[1]);
-       p = strlen(tmp1);
-       while(p != 0 && tmp1[p] != '\\')
-               p--;
-       if(p)
-               strcpy(file, &tmp1[p + 1]);
-       else
-               strcpy(file, argv[1]);
-
-       sprintf(tmp1, "%s\\tmp1.txt", root);
-       sprintf(tmp2, "%s\\tmp2.txt", root);
-       sprintf(dest, "%s\\dest.rom", root);
-       
-       if(strcmp(file, "tmp1.txt") == 0) {
-               printf("skip wav->pulse\n");
-               goto label1;
-       }
-       if(strcmp(file, "tmp2.txt") == 0) {
-               printf("skip wav->pulse\n");
-               printf("skip pulse->bit\n");
-               goto label2;
-       }
-       
-       // convert #1 (wav -> pulse)
-       fs = fopen(argv[1], "rb");
-       fd = fopen(tmp1, "w");
-       
-       while((dat = fgetc(fs)) != EOF) {
-               bool current = dat & 0x80 ? false : true;
-               if(prev && !current) {
-                       if(NARROW(l) && (NARROW(h) || WIDE(h)))
-                               fputc('N', fd);
-                       else if(WIDE(l) && (WIDE(h) || NARROW(h)))
-                               fputc('w', fd);
-                       else
-                               fprintf(fd, "[%d,%d]", l, h);
-                       l = h = 0;
-               }
-               if(current)
-                       h++;
-               else
-                       l++;
-               prev = current;
-       }
-       fclose(fd);
-       fclose(fs);
-       
-label1:
-       
-       // convert #2 (pulse -> bit)
-       fs = fopen(tmp1, "rb");
-       fd = fopen(tmp2, "w");
-       prev = true;
-       
-       while((dat = fgetc(fs)) != EOF) {
-               if(dat != 'w' && dat != 'N') {
-                       fputc(dat, fd);
-                       continue;
-               }
-               bool current = (dat == 'w') ? true : false;
-               if(prev != current) {
-                       if(w)
-                               fprintf(fd, "[W%d]", w);
-                       if(n)
-                               fprintf(fd, "[n%d]", n);
-                       w = n = 0;
-               }
-               prev = current;
-               
-               if(current)
-                       w++;
-               else
-                       n++;
-               if(w == 2) {
-                       fputc('w', fd);
-                       w = n = 0;
-               }
-               if(n == 4) {
-                       fputc('N', fd);
-                       w = n = 0;
-               }
-       }
-       fclose(fd);
-       fclose(fs);
-       
-label2:
-       
-       // convert #3 (bit -> byte)
-       fs = fopen(tmp2, "rb");
-       fd = fopen(dest, "wb");
-       
-       while((dat = fgetc2(fs)) != EOF) {
-               if(dat != 'N')
-                       continue;
-               if(fgetc2(fs) != 'N')
-                       continue;
-label3:
-               dat = fgetc2(fs);
-               if(dat == EOF)
-                       break;
-               if(dat != 'w')
-                       goto label3;
-               int d = 0;
-               d |= (fgetc2(fs) == 'N') ? 0x01 : 0;
-               d |= (fgetc2(fs) == 'N') ? 0x02 : 0;
-               d |= (fgetc2(fs) == 'N') ? 0x04 : 0;
-               d |= (fgetc2(fs) == 'N') ? 0x08 : 0;
-               d |= (fgetc2(fs) == 'N') ? 0x10 : 0;
-               d |= (fgetc2(fs) == 'N') ? 0x20 : 0;
-               d |= (fgetc2(fs) == 'N') ? 0x40 : 0;
-               d |= (fgetc2(fs) == 'N') ? 0x80 : 0;
-               fputc2(d, fd);
-       }
-       fclose(fd);
-       fclose(fs);
-}
+#include <windows.h>\r
+#include <stdio.h>\r
+#include <memory.h>\r
+\r
+#define NARROW(p)      (6 <= (p) && (p) <= 14)\r
+#define WIDE(p)                (16 <= (p) && (p) <= 24)\r
+\r
+int fgetc2(FILE* fp)\r
+{\r
+       int dat;\r
+       while((dat = fgetc(fp)) != EOF) {\r
+               if(dat == 'N' || dat == 'w')\r
+                       return dat;\r
+       }\r
+       return EOF;\r
+}\r
+\r
+void fputc2(int dat, FILE* fp)\r
+{\r
+       static int head = 0, cnt = 0, sum = 0, total = 0;\r
+       \r
+       if(head++ < 6)\r
+               return;\r
+       if(sum) {\r
+               sum--;\r
+               return;\r
+       }\r
+       if(cnt++ < 255) {\r
+               if(total++ < 0x8000)\r
+                       fputc(dat, fp);\r
+       }\r
+       else {\r
+               sum = 2;\r
+               cnt = 0;\r
+       }\r
+}\r
+\r
+void main(int argc, char **argv)\r
+{\r
+       if(argc < 1)\r
+               return;\r
+       \r
+       // get path\r
+       int dat, l = 0, h = 0, w = 0, n = 0;\r
+       bool prev = false;\r
+       FILE *fs, *fd;\r
+\r
+       char root[_MAX_PATH], file[_MAX_PATH];\r
+       char tmp1[_MAX_PATH], tmp2[_MAX_PATH], dest[_MAX_PATH];\r
+       GetModuleFileName(NULL, root, _MAX_PATH);\r
+       int p = strlen(root);\r
+       while(root[p] != '\\')\r
+               p--;\r
+       root[p] = '\0';\r
+\r
+       strcpy(tmp1, argv[1]);\r
+       p = strlen(tmp1);\r
+       while(p != 0 && tmp1[p] != '\\')\r
+               p--;\r
+       if(p)\r
+               strcpy(file, &tmp1[p + 1]);\r
+       else\r
+               strcpy(file, argv[1]);\r
+\r
+       sprintf(tmp1, "%s\\tmp1.txt", root);\r
+       sprintf(tmp2, "%s\\tmp2.txt", root);\r
+       sprintf(dest, "%s\\dest.rom", root);\r
+       \r
+       if(strcmp(file, "tmp1.txt") == 0) {\r
+               printf("skip wav->pulse\n");\r
+               goto label1;\r
+       }\r
+       if(strcmp(file, "tmp2.txt") == 0) {\r
+               printf("skip wav->pulse\n");\r
+               printf("skip pulse->bit\n");\r
+               goto label2;\r
+       }\r
+       \r
+       // convert #1 (wav -> pulse)\r
+       fs = fopen(argv[1], "rb");\r
+       fd = fopen(tmp1, "w");\r
+       \r
+       while((dat = fgetc(fs)) != EOF) {\r
+               bool current = dat & 0x80 ? false : true;\r
+               if(prev && !current) {\r
+                       if(NARROW(l) && (NARROW(h) || WIDE(h)))\r
+                               fputc('N', fd);\r
+                       else if(WIDE(l) && (WIDE(h) || NARROW(h)))\r
+                               fputc('w', fd);\r
+                       else\r
+                               fprintf(fd, "[%d,%d]", l, h);\r
+                       l = h = 0;\r
+               }\r
+               if(current)\r
+                       h++;\r
+               else\r
+                       l++;\r
+               prev = current;\r
+       }\r
+       fclose(fd);\r
+       fclose(fs);\r
+       \r
+label1:\r
+       \r
+       // convert #2 (pulse -> bit)\r
+       fs = fopen(tmp1, "rb");\r
+       fd = fopen(tmp2, "w");\r
+       prev = true;\r
+       \r
+       while((dat = fgetc(fs)) != EOF) {\r
+               if(dat != 'w' && dat != 'N') {\r
+                       fputc(dat, fd);\r
+                       continue;\r
+               }\r
+               bool current = (dat == 'w') ? true : false;\r
+               if(prev != current) {\r
+                       if(w)\r
+                               fprintf(fd, "[W%d]", w);\r
+                       if(n)\r
+                               fprintf(fd, "[n%d]", n);\r
+                       w = n = 0;\r
+               }\r
+               prev = current;\r
+               \r
+               if(current)\r
+                       w++;\r
+               else\r
+                       n++;\r
+               if(w == 2) {\r
+                       fputc('w', fd);\r
+                       w = n = 0;\r
+               }\r
+               if(n == 4) {\r
+                       fputc('N', fd);\r
+                       w = n = 0;\r
+               }\r
+       }\r
+       fclose(fd);\r
+       fclose(fs);\r
+       \r
+label2:\r
+       \r
+       // convert #3 (bit -> byte)\r
+       fs = fopen(tmp2, "rb");\r
+       fd = fopen(dest, "wb");\r
+       \r
+       while((dat = fgetc2(fs)) != EOF) {\r
+               if(dat != 'N')\r
+                       continue;\r
+               if(fgetc2(fs) != 'N')\r
+                       continue;\r
+label3:\r
+               dat = fgetc2(fs);\r
+               if(dat == EOF)\r
+                       break;\r
+               if(dat != 'w')\r
+                       goto label3;\r
+               int d = 0;\r
+               d |= (fgetc2(fs) == 'N') ? 0x01 : 0;\r
+               d |= (fgetc2(fs) == 'N') ? 0x02 : 0;\r
+               d |= (fgetc2(fs) == 'N') ? 0x04 : 0;\r
+               d |= (fgetc2(fs) == 'N') ? 0x08 : 0;\r
+               d |= (fgetc2(fs) == 'N') ? 0x10 : 0;\r
+               d |= (fgetc2(fs) == 'N') ? 0x20 : 0;\r
+               d |= (fgetc2(fs) == 'N') ? 0x40 : 0;\r
+               d |= (fgetc2(fs) == 'N') ? 0x80 : 0;\r
+               fputc2(d, fd);\r
+       }\r
+       fclose(fd);\r
+       fclose(fs);\r
+}\r
index 0225c30..8b25887 100644 (file)
@@ -1,46 +1,46 @@
-/*
-       hdd image creater for EmuZ-2500
-       
-       Author : Takeda.Toshiya
-       Date   : 2004.09.10 -
-*/
-
-#include <stdio.h>
-
-// variable scope of 'for' loop (for microsoft visual c++ 6.0)
-#define for if(0);else for
-// type definition
-typedef unsigned char uint8_t;
-
-//#define HDD_SIZE (20*1024*1024)
-#define HDD_SIZE 22437888
-
-void main()
-{
-       uint8_t header[0x30] = {
-               0x4d,0x5a,0x2d,0x32,0x35,0x30,0x30,0x20,0x48,0x44,0x20,0x73,0x79,0x73,0x74,0x65,
-               0x6d,0x20,0x62,0x79,0x20,0x53,0x48,0x41,0x52,0x50,0x20,0x43,0x6f,0x72,0x70,0x2e,
-               0x20,0x20,0x56,0x31,0x2e,0x30,0x41,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20
-       };
-       
-       FILE* fp = fopen("HDD1.DAT", "wb");
-       fwrite(header, sizeof(header), 1, fp);
-       for(int i = 0; i < 0xd0; i++)
-               fputc(0x20, fp);
-       for(int i = 0; i < 0x100; i++)
-               fputc(0xff, fp);
-       for(int i = 0; i < HDD_SIZE - 0x200; i++)
-               fputc(0, fp);
-       fclose(fp);
-       
-       fp = fopen("HDD2.DAT", "wb");
-       fwrite(header, sizeof(header), 1, fp);
-       for(int i = 0; i < 0xd0; i++)
-               fputc(0x20, fp);
-       for(int i = 0; i < 0x100; i++)
-               fputc(0xff, fp);
-       for(int i = 0; i < HDD_SIZE - 0x200; i++)
-               fputc(0, fp);
-       fclose(fp);
-}
-
+/*\r
+       hdd image creater for EmuZ-2500\r
+       \r
+       Author : Takeda.Toshiya\r
+       Date   : 2004.09.10 -\r
+*/\r
+\r
+#include <stdio.h>\r
+\r
+// variable scope of 'for' loop (for microsoft visual c++ 6.0)\r
+#define for if(0);else for\r
+// type definition\r
+typedef unsigned char uint8_t;\r
+\r
+//#define HDD_SIZE (20*1024*1024)\r
+#define HDD_SIZE 22437888\r
+\r
+void main()\r
+{\r
+       uint8_t header[0x30] = {\r
+               0x4d,0x5a,0x2d,0x32,0x35,0x30,0x30,0x20,0x48,0x44,0x20,0x73,0x79,0x73,0x74,0x65,\r
+               0x6d,0x20,0x62,0x79,0x20,0x53,0x48,0x41,0x52,0x50,0x20,0x43,0x6f,0x72,0x70,0x2e,\r
+               0x20,0x20,0x56,0x31,0x2e,0x30,0x41,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20\r
+       };\r
+       \r
+       FILE* fp = fopen("HDD1.DAT", "wb");\r
+       fwrite(header, sizeof(header), 1, fp);\r
+       for(int i = 0; i < 0xd0; i++)\r
+               fputc(0x20, fp);\r
+       for(int i = 0; i < 0x100; i++)\r
+               fputc(0xff, fp);\r
+       for(int i = 0; i < HDD_SIZE - 0x200; i++)\r
+               fputc(0, fp);\r
+       fclose(fp);\r
+       \r
+       fp = fopen("HDD2.DAT", "wb");\r
+       fwrite(header, sizeof(header), 1, fp);\r
+       for(int i = 0; i < 0xd0; i++)\r
+               fputc(0x20, fp);\r
+       for(int i = 0; i < 0x100; i++)\r
+               fputc(0xff, fp);\r
+       for(int i = 0; i < HDD_SIZE - 0x200; i++)\r
+               fputc(0, fp);\r
+       fclose(fp);\r
+}\r
+\r
index b2633a0..6dc5fab 100644 (file)
-<?xml version="1.0" encoding="shift_jis"?>
-<VisualStudioProject
-       ProjectType="Visual C++"
-       Version="9.00"
-       Name="create_hd"
-       ProjectGUID="{7F241E68-EB84-4412-AF32-70EAF1C6C212}"
-       RootNamespace="create_hd"
-       TargetFrameworkVersion="196613"
-       >
-       <Platforms>
-               <Platform
-                       Name="Win32"
-               />
-       </Platforms>
-       <ToolFiles>
-       </ToolFiles>
-       <Configurations>
-               <Configuration
-                       Name="Debug|Win32"
-                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
-                       IntermediateDirectory="$(ConfigurationName)"
-                       ConfigurationType="1"
-                       CharacterSet="2"
-                       >
-                       <Tool
-                               Name="VCPreBuildEventTool"
-                       />
-                       <Tool
-                               Name="VCCustomBuildTool"
-                       />
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCMIDLTool"
-                       />
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="0"
-                               MinimalRebuild="true"
-                               BasicRuntimeChecks="3"
-                               RuntimeLibrary="3"
-                               WarningLevel="3"
-                               DebugInformationFormat="4"
-                       />
-                       <Tool
-                               Name="VCManagedResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCPreLinkEventTool"
-                       />
-                       <Tool
-                               Name="VCLinkerTool"
-                               GenerateDebugInformation="true"
-                               TargetMachine="1"
-                       />
-                       <Tool
-                               Name="VCALinkTool"
-                       />
-                       <Tool
-                               Name="VCManifestTool"
-                       />
-                       <Tool
-                               Name="VCXDCMakeTool"
-                       />
-                       <Tool
-                               Name="VCBscMakeTool"
-                       />
-                       <Tool
-                               Name="VCFxCopTool"
-                       />
-                       <Tool
-                               Name="VCAppVerifierTool"
-                       />
-                       <Tool
-                               Name="VCPostBuildEventTool"
-                       />
-               </Configuration>
-               <Configuration
-                       Name="Release|Win32"
-                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
-                       IntermediateDirectory="$(ConfigurationName)"
-                       ConfigurationType="1"
-                       CharacterSet="2"
-                       WholeProgramOptimization="1"
-                       >
-                       <Tool
-                               Name="VCPreBuildEventTool"
-                       />
-                       <Tool
-                               Name="VCCustomBuildTool"
-                       />
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCMIDLTool"
-                       />
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="2"
-                               EnableIntrinsicFunctions="true"
-                               RuntimeLibrary="2"
-                               EnableFunctionLevelLinking="true"
-                               WarningLevel="3"
-                               DebugInformationFormat="3"
-                       />
-                       <Tool
-                               Name="VCManagedResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCPreLinkEventTool"
-                       />
-                       <Tool
-                               Name="VCLinkerTool"
-                               GenerateDebugInformation="true"
-                               OptimizeReferences="2"
-                               EnableCOMDATFolding="2"
-                               TargetMachine="1"
-                       />
-                       <Tool
-                               Name="VCALinkTool"
-                       />
-                       <Tool
-                               Name="VCManifestTool"
-                       />
-                       <Tool
-                               Name="VCXDCMakeTool"
-                       />
-                       <Tool
-                               Name="VCBscMakeTool"
-                       />
-                       <Tool
-                               Name="VCFxCopTool"
-                       />
-                       <Tool
-                               Name="VCAppVerifierTool"
-                       />
-                       <Tool
-                               Name="VCPostBuildEventTool"
-                       />
-               </Configuration>
-       </Configurations>
-       <References>
-       </References>
-       <Files>
-               <Filter
-                       Name="Source Files"
-                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
-                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
-                       >
-                       <File
-                               RelativePath=".\create_hd.cpp"
-                               >
-                       </File>
-               </Filter>
-               <Filter
-                       Name="Header Files"
-                       Filter="h;hpp;hxx;hm;inl;inc;xsd"
-                       UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
-                       >
-               </Filter>
-               <Filter
-                       Name="Resource Files"
-                       Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
-                       UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
-                       >
-               </Filter>
-       </Files>
-       <Globals>
-       </Globals>
-</VisualStudioProject>
+<?xml version="1.0" encoding="shift_jis"?>\r
+<VisualStudioProject\r
+       ProjectType="Visual C++"\r
+       Version="9.00"\r
+       Name="create_hd"\r
+       ProjectGUID="{7F241E68-EB84-4412-AF32-70EAF1C6C212}"\r
+       RootNamespace="create_hd"\r
+       TargetFrameworkVersion="196613"\r
+       >\r
+       <Platforms>\r
+               <Platform\r
+                       Name="Win32"\r
+               />\r
+       </Platforms>\r
+       <ToolFiles>\r
+       </ToolFiles>\r
+       <Configurations>\r
+               <Configuration\r
+                       Name="Debug|Win32"\r
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="1"\r
+                       CharacterSet="2"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="0"\r
+                               MinimalRebuild="true"\r
+                               BasicRuntimeChecks="3"\r
+                               RuntimeLibrary="3"\r
+                               WarningLevel="3"\r
+                               DebugInformationFormat="4"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               GenerateDebugInformation="true"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+               <Configuration\r
+                       Name="Release|Win32"\r
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="1"\r
+                       CharacterSet="2"\r
+                       WholeProgramOptimization="1"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="2"\r
+                               EnableIntrinsicFunctions="true"\r
+                               RuntimeLibrary="2"\r
+                               EnableFunctionLevelLinking="true"\r
+                               WarningLevel="3"\r
+                               DebugInformationFormat="3"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               GenerateDebugInformation="true"\r
+                               OptimizeReferences="2"\r
+                               EnableCOMDATFolding="2"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+       </Configurations>\r
+       <References>\r
+       </References>\r
+       <Files>\r
+               <Filter\r
+                       Name="Source Files"\r
+                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"\r
+                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"\r
+                       >\r
+                       <File\r
+                               RelativePath=".\create_hd.cpp"\r
+                               >\r
+                       </File>\r
+               </Filter>\r
+               <Filter\r
+                       Name="Header Files"\r
+                       Filter="h;hpp;hxx;hm;inl;inc;xsd"\r
+                       UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"\r
+                       >\r
+               </Filter>\r
+               <Filter\r
+                       Name="Resource Files"\r
+                       Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"\r
+                       UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"\r
+                       >\r
+               </Filter>\r
+       </Files>\r
+       <Globals>\r
+       </Globals>\r
+</VisualStudioProject>\r
index 0672814..9b9648c 100644 (file)
-// wav.cpp : Defines the entry point for the console application.
-//
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <tchar.h>
-
-#ifndef uint8_t
-typedef unsigned char uint8_t;
-#endif
-#ifndef uint16_t
-typedef unsigned short uint16_t;
-#endif
-#ifndef uint32_t
-typedef unsigned int uint32_t;
-#endif
-
-#ifndef int8_t
-typedef signed char int8_t;
-#endif
-#ifndef int16_t
-typedef signed short int16_t;
-#endif
-#ifndef int32_t
-typedef signed int int32_t;
-#endif
-
-#pragma pack(1)
-typedef struct {
-       char RIFF[4];
-       uint32_t file_len;
-       char WAVE[4];
-       char fmt[4];
-       uint32_t fmt_size;
-       uint16_t format_id;
-       uint16_t channels;
-       uint32_t sample_rate;
-       uint32_t data_speed;
-       uint16_t block_size;
-       uint16_t sample_bits;
-} wav_header_t;
-#pragma pack()
-
-#pragma pack(1)
-typedef struct {
-       char data[4];
-       uint32_t data_len;
-} wav_data_t;
-#pragma pack()
-
-int _tmain(int argc, _TCHAR* argv[])
-{
-       if(argc < 2) {
-               printf("wav_apss (wav file) [threshold]\n\n");
-               printf("Cleanup MZ-2500 tape file for APSS.\n");
-               printf("The wave file should be pcm format, 16bit and 2ch.\n");
-               return -1;
-       }
-       int threshold = 4096;
-       if(argc > 2) {
-               threshold = _ttoi(argv[2]);
-       }
-       
-       FILE *fp = _tfopen(argv[1],_T("rb"));
-       
-       // check wav header
-       wav_header_t header;
-       wav_data_t data;
-       
-       fread(&header, sizeof(header), 1, fp);
-       fseek(fp, header.fmt_size - 0x10, SEEK_CUR);
-       fread(&data, sizeof(data), 1, fp);
-       long sample_top = ftell(fp);
-       
-       if(header.format_id != 1) {
-               printf("The source wave file should be a pcm format.\n");
-               fclose(fp);
-               return -1;
-       }
-       if(header.channels != 2 || header.sample_bits != 16) {
-               printf("The source wave file should be 16bit and 2ch.\n");
-               fclose(fp);
-               return -1;
-       }
-       int samples = data.data_len / 4;
-       
-       // load samples
-       int16_t* buffer_l = (int16_t *)malloc(samples * sizeof(int16_t));
-       int16_t* buffer_r = (int16_t *)malloc(samples * sizeof(int16_t));
-       
-       typedef union {
-               int16_t s16;
-               struct {
-                       uint8_t l, h;
-               } b;
-       } sample_pair;
-       sample_pair sample;
-       
-       int count = 0, start, prev = 0;
-       
-       for(int i = 0; i < samples; i++) {
-               sample.b.l = fgetc(fp);
-               sample.b.h = fgetc(fp);
-               buffer_l[i] = sample.s16;
-               
-               sample.b.l = fgetc(fp);
-               sample.b.h = fgetc(fp);
-               buffer_r[i] = sample.s16;
-               
-               if(abs(buffer_l[i]) > threshold) {
-                       if(count == 0) {
-                               start = i;
-                       }
-                       count = 32 * header.sample_rate / 44100;
-               }
-               if(count > 0 && --count == 0) {
-                       int end = i;
-                       unsigned int width = end - start + 1;
-                       
-                       if(width > header.sample_rate * 250 / 1000) {
-                               int count_p = 0, count_m = 0;
-                               double volume = 0;
-                               for(int j = start; j <= end; j++) {
-                                       if(buffer_l[j] > threshold) {
-                                               count_p++;
-                                       } else if(buffer_l[j] < -threshold) {
-                                               count_m++;
-                                       }
-                                       volume += buffer_l[j];
-                               }
-                               if((double)count_p / (double)width > 0.2 && (double)count_m / (double)width > 0.2) {
-                                       int16_t volume_ave = (int16_t)(volume / (double)width + 0.5);
-                                       int sec = start / header.sample_rate;
-                                       printf("Start = %d:%d\tWidth = %d (msec)\n", sec / 60, sec % 60, (int)(1000 * width / header.sample_rate));
-                                       for(int j = prev; j < start; j++) {
-                                               buffer_l[j] = 0;
-                                       }
-                                       for(int j = start; j <= end; j++) {
-                                               buffer_l[j] = buffer_l[j] > volume_ave ? 16384 : -16384;
-                                               buffer_r[j] = 0;
-                                       }
-                                       prev = end + 1;
-                               }
-                       }
-               }
-       }
-       for(int j = prev; j < samples; j++) {
-               buffer_l[j] = 0;
-       }
-       
-       // output wav file
-       FILE *fo = _tfopen(_T("output.wav"), _T("wb"));
-       fseek(fp, 0, SEEK_SET);
-       for(long i = 0; i < sample_top; i++) {
-               fputc(fgetc(fp), fo);
-       }
-       for(int i = 0; i < samples; i++) {
-               sample.s16 = buffer_l[i];
-               fputc(sample.b.l, fo);
-               fputc(sample.b.h, fo);
-               
-               sample.s16 = buffer_r[i];
-               fputc(sample.b.l, fo);
-               fputc(sample.b.h, fo);
-       }
-       fclose(fo);
-       
-       free(buffer_l);
-       free(buffer_r);
-       
-       fclose(fp);
-       
-       return 0;
-}
-
+// wav.cpp : Defines the entry point for the console application.\r
+//\r
+\r
+#include <stdio.h>\r
+#include <stdlib.h>\r
+#include <tchar.h>\r
+\r
+#ifndef uint8_t\r
+typedef unsigned char uint8_t;\r
+#endif\r
+#ifndef uint16_t\r
+typedef unsigned short uint16_t;\r
+#endif\r
+#ifndef uint32_t\r
+typedef unsigned int uint32_t;\r
+#endif\r
+\r
+#ifndef int8_t\r
+typedef signed char int8_t;\r
+#endif\r
+#ifndef int16_t\r
+typedef signed short int16_t;\r
+#endif\r
+#ifndef int32_t\r
+typedef signed int int32_t;\r
+#endif\r
+\r
+#pragma pack(1)\r
+typedef struct {\r
+       char RIFF[4];\r
+       uint32_t file_len;\r
+       char WAVE[4];\r
+       char fmt[4];\r
+       uint32_t fmt_size;\r
+       uint16_t format_id;\r
+       uint16_t channels;\r
+       uint32_t sample_rate;\r
+       uint32_t data_speed;\r
+       uint16_t block_size;\r
+       uint16_t sample_bits;\r
+} wav_header_t;\r
+#pragma pack()\r
+\r
+#pragma pack(1)\r
+typedef struct {\r
+       char data[4];\r
+       uint32_t data_len;\r
+} wav_data_t;\r
+#pragma pack()\r
+\r
+int _tmain(int argc, _TCHAR* argv[])\r
+{\r
+       if(argc < 2) {\r
+               printf("wav_apss (wav file) [threshold]\n\n");\r
+               printf("Cleanup MZ-2500 tape file for APSS.\n");\r
+               printf("The wave file should be pcm format, 16bit and 2ch.\n");\r
+               return -1;\r
+       }\r
+       int threshold = 4096;\r
+       if(argc > 2) {\r
+               threshold = _ttoi(argv[2]);\r
+       }\r
+       \r
+       FILE *fp = _tfopen(argv[1],_T("rb"));\r
+       \r
+       // check wav header\r
+       wav_header_t header;\r
+       wav_data_t data;\r
+       \r
+       fread(&header, sizeof(header), 1, fp);\r
+       fseek(fp, header.fmt_size - 0x10, SEEK_CUR);\r
+       fread(&data, sizeof(data), 1, fp);\r
+       long sample_top = ftell(fp);\r
+       \r
+       if(header.format_id != 1) {\r
+               printf("The source wave file should be a pcm format.\n");\r
+               fclose(fp);\r
+               return -1;\r
+       }\r
+       if(header.channels != 2 || header.sample_bits != 16) {\r
+               printf("The source wave file should be 16bit and 2ch.\n");\r
+               fclose(fp);\r
+               return -1;\r
+       }\r
+       int samples = data.data_len / 4;\r
+       \r
+       // load samples\r
+       int16_t* buffer_l = (int16_t *)malloc(samples * sizeof(int16_t));\r
+       int16_t* buffer_r = (int16_t *)malloc(samples * sizeof(int16_t));\r
+       \r
+       typedef union {\r
+               int16_t s16;\r
+               struct {\r
+                       uint8_t l, h;\r
+               } b;\r
+       } sample_pair;\r
+       sample_pair sample;\r
+       \r
+       int count = 0, start, prev = 0;\r
+       \r
+       for(int i = 0; i < samples; i++) {\r
+               sample.b.l = fgetc(fp);\r
+               sample.b.h = fgetc(fp);\r
+               buffer_l[i] = sample.s16;\r
+               \r
+               sample.b.l = fgetc(fp);\r
+               sample.b.h = fgetc(fp);\r
+               buffer_r[i] = sample.s16;\r
+               \r
+               if(abs(buffer_l[i]) > threshold) {\r
+                       if(count == 0) {\r
+                               start = i;\r
+                       }\r
+                       count = 32 * header.sample_rate / 44100;\r
+               }\r
+               if(count > 0 && --count == 0) {\r
+                       int end = i;\r
+                       unsigned int width = end - start + 1;\r
+                       \r
+                       if(width > header.sample_rate * 250 / 1000) {\r
+                               int count_p = 0, count_m = 0;\r
+                               double volume = 0;\r
+                               for(int j = start; j <= end; j++) {\r
+                                       if(buffer_l[j] > threshold) {\r
+                                               count_p++;\r
+                                       } else if(buffer_l[j] < -threshold) {\r
+                                               count_m++;\r
+                                       }\r
+                                       volume += buffer_l[j];\r
+                               }\r
+                               if((double)count_p / (double)width > 0.2 && (double)count_m / (double)width > 0.2) {\r
+                                       int16_t volume_ave = (int16_t)(volume / (double)width + 0.5);\r
+                                       int sec = start / header.sample_rate;\r
+                                       printf("Start = %d:%d\tWidth = %d (msec)\n", sec / 60, sec % 60, (int)(1000 * width / header.sample_rate));\r
+                                       for(int j = prev; j < start; j++) {\r
+                                               buffer_l[j] = 0;\r
+                                       }\r
+                                       for(int j = start; j <= end; j++) {\r
+                                               buffer_l[j] = buffer_l[j] > volume_ave ? 16384 : -16384;\r
+                                               buffer_r[j] = 0;\r
+                                       }\r
+                                       prev = end + 1;\r
+                               }\r
+                       }\r
+               }\r
+       }\r
+       for(int j = prev; j < samples; j++) {\r
+               buffer_l[j] = 0;\r
+       }\r
+       \r
+       // output wav file\r
+       FILE *fo = _tfopen(_T("output.wav"), _T("wb"));\r
+       fseek(fp, 0, SEEK_SET);\r
+       for(long i = 0; i < sample_top; i++) {\r
+               fputc(fgetc(fp), fo);\r
+       }\r
+       for(int i = 0; i < samples; i++) {\r
+               sample.s16 = buffer_l[i];\r
+               fputc(sample.b.l, fo);\r
+               fputc(sample.b.h, fo);\r
+               \r
+               sample.s16 = buffer_r[i];\r
+               fputc(sample.b.l, fo);\r
+               fputc(sample.b.h, fo);\r
+       }\r
+       fclose(fo);\r
+       \r
+       free(buffer_l);\r
+       free(buffer_r);\r
+       \r
+       fclose(fp);\r
+       \r
+       return 0;\r
+}\r
+\r
index 284a164..c4fdbc1 100644 (file)
-<?xml version="1.0" encoding="shift_jis"?>
-<VisualStudioProject
-       ProjectType="Visual C++"
-       Version="9.00"
-       Name="wav_apss"
-       ProjectGUID="{699C2227-21CB-46DB-BD2B-C40011AED097}"
-       RootNamespace="wav_apss"
-       Keyword="Win32Proj"
-       TargetFrameworkVersion="196613"
-       >
-       <Platforms>
-               <Platform
-                       Name="Win32"
-               />
-       </Platforms>
-       <ToolFiles>
-       </ToolFiles>
-       <Configurations>
-               <Configuration
-                       Name="Debug|Win32"
-                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
-                       IntermediateDirectory="$(ConfigurationName)"
-                       ConfigurationType="1"
-                       CharacterSet="1"
-                       >
-                       <Tool
-                               Name="VCPreBuildEventTool"
-                       />
-                       <Tool
-                               Name="VCCustomBuildTool"
-                       />
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCMIDLTool"
-                       />
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="0"
-                               PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
-                               MinimalRebuild="true"
-                               BasicRuntimeChecks="3"
-                               RuntimeLibrary="3"
-                               UsePrecompiledHeader="0"
-                               WarningLevel="3"
-                               DebugInformationFormat="4"
-                       />
-                       <Tool
-                               Name="VCManagedResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCPreLinkEventTool"
-                       />
-                       <Tool
-                               Name="VCLinkerTool"
-                               LinkIncremental="2"
-                               GenerateDebugInformation="true"
-                               SubSystem="1"
-                               TargetMachine="1"
-                       />
-                       <Tool
-                               Name="VCALinkTool"
-                       />
-                       <Tool
-                               Name="VCManifestTool"
-                       />
-                       <Tool
-                               Name="VCXDCMakeTool"
-                       />
-                       <Tool
-                               Name="VCBscMakeTool"
-                       />
-                       <Tool
-                               Name="VCFxCopTool"
-                       />
-                       <Tool
-                               Name="VCAppVerifierTool"
-                       />
-                       <Tool
-                               Name="VCPostBuildEventTool"
-                       />
-               </Configuration>
-               <Configuration
-                       Name="Release|Win32"
-                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
-                       IntermediateDirectory="$(ConfigurationName)"
-                       ConfigurationType="1"
-                       CharacterSet="1"
-                       WholeProgramOptimization="1"
-                       >
-                       <Tool
-                               Name="VCPreBuildEventTool"
-                       />
-                       <Tool
-                               Name="VCCustomBuildTool"
-                       />
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCMIDLTool"
-                       />
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="2"
-                               EnableIntrinsicFunctions="true"
-                               PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
-                               RuntimeLibrary="2"
-                               EnableFunctionLevelLinking="true"
-                               UsePrecompiledHeader="0"
-                               WarningLevel="3"
-                               DebugInformationFormat="3"
-                       />
-                       <Tool
-                               Name="VCManagedResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCPreLinkEventTool"
-                       />
-                       <Tool
-                               Name="VCLinkerTool"
-                               LinkIncremental="1"
-                               GenerateDebugInformation="true"
-                               SubSystem="1"
-                               OptimizeReferences="2"
-                               EnableCOMDATFolding="2"
-                               TargetMachine="1"
-                       />
-                       <Tool
-                               Name="VCALinkTool"
-                       />
-                       <Tool
-                               Name="VCManifestTool"
-                       />
-                       <Tool
-                               Name="VCXDCMakeTool"
-                       />
-                       <Tool
-                               Name="VCBscMakeTool"
-                       />
-                       <Tool
-                               Name="VCFxCopTool"
-                       />
-                       <Tool
-                               Name="VCAppVerifierTool"
-                       />
-                       <Tool
-                               Name="VCPostBuildEventTool"
-                       />
-               </Configuration>
-       </Configurations>
-       <References>
-       </References>
-       <Files>
-               <Filter
-                       Name="Source Files"
-                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
-                       >
-                       <File
-                               RelativePath=".\wav_apss.cpp"
-                               >
-                       </File>
-               </Filter>
-       </Files>
-       <Globals>
-       </Globals>
-</VisualStudioProject>
+<?xml version="1.0" encoding="shift_jis"?>\r
+<VisualStudioProject\r
+       ProjectType="Visual C++"\r
+       Version="9.00"\r
+       Name="wav_apss"\r
+       ProjectGUID="{699C2227-21CB-46DB-BD2B-C40011AED097}"\r
+       RootNamespace="wav_apss"\r
+       Keyword="Win32Proj"\r
+       TargetFrameworkVersion="196613"\r
+       >\r
+       <Platforms>\r
+               <Platform\r
+                       Name="Win32"\r
+               />\r
+       </Platforms>\r
+       <ToolFiles>\r
+       </ToolFiles>\r
+       <Configurations>\r
+               <Configuration\r
+                       Name="Debug|Win32"\r
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="1"\r
+                       CharacterSet="1"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="0"\r
+                               PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"\r
+                               MinimalRebuild="true"\r
+                               BasicRuntimeChecks="3"\r
+                               RuntimeLibrary="3"\r
+                               UsePrecompiledHeader="0"\r
+                               WarningLevel="3"\r
+                               DebugInformationFormat="4"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               LinkIncremental="2"\r
+                               GenerateDebugInformation="true"\r
+                               SubSystem="1"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+               <Configuration\r
+                       Name="Release|Win32"\r
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="1"\r
+                       CharacterSet="1"\r
+                       WholeProgramOptimization="1"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="2"\r
+                               EnableIntrinsicFunctions="true"\r
+                               PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"\r
+                               RuntimeLibrary="2"\r
+                               EnableFunctionLevelLinking="true"\r
+                               UsePrecompiledHeader="0"\r
+                               WarningLevel="3"\r
+                               DebugInformationFormat="3"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               LinkIncremental="1"\r
+                               GenerateDebugInformation="true"\r
+                               SubSystem="1"\r
+                               OptimizeReferences="2"\r
+                               EnableCOMDATFolding="2"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+       </Configurations>\r
+       <References>\r
+       </References>\r
+       <Files>\r
+               <Filter\r
+                       Name="Source Files"\r
+                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"\r
+                       >\r
+                       <File\r
+                               RelativePath=".\wav_apss.cpp"\r
+                               >\r
+                       </File>\r
+               </Filter>\r
+       </Files>\r
+       <Globals>\r
+       </Globals>\r
+</VisualStudioProject>\r
index 49be388..16c2725 100644 (file)
-
-#include <windows.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-void main()
-{
-       // create dib section (32x32, 16bpp)
-       LPBYTE lpBuf = (LPBYTE)GlobalAlloc(GPTR, sizeof(BITMAPINFO));
-       LPBITMAPINFO lpDib = (LPBITMAPINFO)lpBuf;
-       lpDib->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
-       lpDib->bmiHeader.biWidth = 32;
-       lpDib->bmiHeader.biHeight = 32;
-       lpDib->bmiHeader.biPlanes = 1;
-       lpDib->bmiHeader.biBitCount = 16;
-       lpDib->bmiHeader.biCompression = BI_RGB;
-       lpDib->bmiHeader.biSizeImage = 0;
-       lpDib->bmiHeader.biXPelsPerMeter = 0;
-       lpDib->bmiHeader.biYPelsPerMeter = 0;
-       lpDib->bmiHeader.biClrUsed = 0;
-       lpDib->bmiHeader.biClrImportant = 0;
-       HDC hdc = CreateDC("DISPLAY", NULL, NULL, NULL);
-       LPWORD lpBmp;
-       HBITMAP hBmp = CreateDIBSection(hdc, lpDib, DIB_RGB_COLORS, (PVOID*)&lpBmp, NULL, 0);
-       HDC hdcDib = CreateCompatibleDC(hdc);
-       SelectObject(hdcDib, hBmp);
-       
-       // create font (ms gothic, 16pt)
-       LOGFONT logfont;
-       logfont.lfEscapement = 0;
-       logfont.lfOrientation = 0;
-       logfont.lfWeight = FW_NORMAL;
-       logfont.lfItalic = FALSE;
-       logfont.lfUnderline = FALSE;
-       logfont.lfStrikeOut = FALSE;
-       logfont.lfCharSet = SHIFTJIS_CHARSET;
-       logfont.lfOutPrecision = OUT_TT_PRECIS;
-       logfont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
-       logfont.lfQuality = DEFAULT_QUALITY; 
-       logfont.lfPitchAndFamily = FIXED_PITCH | FF_DONTCARE;
-       strcpy(logfont.lfFaceName, "\82l\82\83S\83V\83b\83N");
-//     strcpy(logfont.lfFaceName, "\82l\82\96¾\92©");
-       logfont.lfHeight = 16;
-       logfont.lfWidth = 8;
-       HFONT hFont = CreateFontIndirect(&logfont);
-       SelectObject(hdcDib, hFont);
-       SetBkMode(hdcDib, TRANSPARENT);
-       SetTextColor(hdcDib, RGB(255, 255, 255));
-       
-       // convert font
-       FILE* fs = fopen("kanji.txt", "rb");
-       if(fs == NULL) {
-               printf("kanji.txt not found.\n");
-               return;
-       }
-       unsigned char lo[0x10000], hi[0x10000];
-       int c1, ptr = 0;
-       
-       while((c1 = fgetc(fs)) != EOF) {
-               memset(lpBmp, 0, 32 * 32 * 2);
-               if(c1 == 0x0d || c1 == 0x0a) {
-                       fgetc(fs);
-                       continue;
-               } else if((0x81 <= c1 && c1 <= 0x9f) || 0xe0 <= c1) {
-                       // kanji
-                       char string[3];
-                       string[0] = c1;
-                       string[1] = fgetc(fs);
-                       string[2] = '\0';
-                       ExtTextOut(hdcDib, 0, 0, NULL, NULL, string, 2, NULL);
-               } else {
-                       // 1st
-                       char string[2];
-                       string[0] = c1;
-                       string[1] = '\0';
-                       ExtTextOut(hdcDib, 0, 0, NULL, NULL, string, 1, NULL);
-                       
-                       // 2nd
-                       string[0] = fgetc(fs);
-                       ExtTextOut(hdcDib, 8, 0, NULL, NULL, string, 1, NULL);
-               }
-               for(int y = 0; y < 16; y++) {
-                       if(ptr >= 0x10000) {
-                               continue;
-                       }
-                       LPWORD pat = &lpBmp[32 * (31 - y)];
-                       lo[ptr]  = pat[ 0] ? 0x80 : 0;
-                       lo[ptr] |= pat[ 1] ? 0x40 : 0;
-                       lo[ptr] |= pat[ 2] ? 0x20 : 0;
-                       lo[ptr] |= pat[ 3] ? 0x10 : 0;
-                       lo[ptr] |= pat[ 4] ? 0x08 : 0;
-                       lo[ptr] |= pat[ 5] ? 0x04 : 0;
-                       lo[ptr] |= pat[ 6] ? 0x02 : 0;
-                       lo[ptr] |= pat[ 7] ? 0x01 : 0;
-                       hi[ptr]  = pat[ 8] ? 0x80 : 0;
-                       hi[ptr] |= pat[ 9] ? 0x40 : 0;
-                       hi[ptr] |= pat[10] ? 0x20 : 0;
-                       hi[ptr] |= pat[11] ? 0x10 : 0;
-                       hi[ptr] |= pat[12] ? 0x08 : 0;
-                       hi[ptr] |= pat[13] ? 0x04 : 0;
-                       hi[ptr] |= pat[14] ? 0x02 : 0;
-                       hi[ptr] |= pat[15] ? 0x01 : 0;
-                       ptr++;
-               }
-       }
-       fclose(fs);
-       
-       FILE* fd = fopen("KANJI.ROM", "wb");
-       fwrite(lo + 0x0000, 0x8000, 1, fd);
-       fwrite(hi + 0x0000, 0x8000, 1, fd);
-       fwrite(lo + 0x8000, 0x8000, 1, fd);
-       fwrite(hi + 0x8000, 0x8000, 1, fd);
-       fclose(fd);
-       
-       // release
-       DeleteObject(hFont);
-       DeleteDC(hdcDib);
-       DeleteObject(hBmp);
-       GlobalFree(lpBuf);
-}
-
+\r
+#include <windows.h>\r
+#include <stdio.h>\r
+#include <stdlib.h>\r
+\r
+void main()\r
+{\r
+       // create dib section (32x32, 16bpp)\r
+       LPBYTE lpBuf = (LPBYTE)GlobalAlloc(GPTR, sizeof(BITMAPINFO));\r
+       LPBITMAPINFO lpDib = (LPBITMAPINFO)lpBuf;\r
+       lpDib->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);\r
+       lpDib->bmiHeader.biWidth = 32;\r
+       lpDib->bmiHeader.biHeight = 32;\r
+       lpDib->bmiHeader.biPlanes = 1;\r
+       lpDib->bmiHeader.biBitCount = 16;\r
+       lpDib->bmiHeader.biCompression = BI_RGB;\r
+       lpDib->bmiHeader.biSizeImage = 0;\r
+       lpDib->bmiHeader.biXPelsPerMeter = 0;\r
+       lpDib->bmiHeader.biYPelsPerMeter = 0;\r
+       lpDib->bmiHeader.biClrUsed = 0;\r
+       lpDib->bmiHeader.biClrImportant = 0;\r
+       HDC hdc = CreateDC("DISPLAY", NULL, NULL, NULL);\r
+       LPWORD lpBmp;\r
+       HBITMAP hBmp = CreateDIBSection(hdc, lpDib, DIB_RGB_COLORS, (PVOID*)&lpBmp, NULL, 0);\r
+       HDC hdcDib = CreateCompatibleDC(hdc);\r
+       SelectObject(hdcDib, hBmp);\r
+       \r
+       // create font (ms gothic, 16pt)\r
+       LOGFONT logfont;\r
+       logfont.lfEscapement = 0;\r
+       logfont.lfOrientation = 0;\r
+       logfont.lfWeight = FW_NORMAL;\r
+       logfont.lfItalic = FALSE;\r
+       logfont.lfUnderline = FALSE;\r
+       logfont.lfStrikeOut = FALSE;\r
+       logfont.lfCharSet = SHIFTJIS_CHARSET;\r
+       logfont.lfOutPrecision = OUT_TT_PRECIS;\r
+       logfont.lfClipPrecision = CLIP_DEFAULT_PRECIS;\r
+       logfont.lfQuality = DEFAULT_QUALITY; \r
+       logfont.lfPitchAndFamily = FIXED_PITCH | FF_DONTCARE;\r
+       strcpy(logfont.lfFaceName, "\82l\82\83S\83V\83b\83N");\r
+//     strcpy(logfont.lfFaceName, "\82l\82\96¾\92©");\r
+       logfont.lfHeight = 16;\r
+       logfont.lfWidth = 8;\r
+       HFONT hFont = CreateFontIndirect(&logfont);\r
+       SelectObject(hdcDib, hFont);\r
+       SetBkMode(hdcDib, TRANSPARENT);\r
+       SetTextColor(hdcDib, RGB(255, 255, 255));\r
+       \r
+       // convert font\r
+       FILE* fs = fopen("kanji.txt", "rb");\r
+       if(fs == NULL) {\r
+               printf("kanji.txt not found.\n");\r
+               return;\r
+       }\r
+       unsigned char lo[0x10000], hi[0x10000];\r
+       int c1, ptr = 0;\r
+       \r
+       while((c1 = fgetc(fs)) != EOF) {\r
+               memset(lpBmp, 0, 32 * 32 * 2);\r
+               if(c1 == 0x0d || c1 == 0x0a) {\r
+                       fgetc(fs);\r
+                       continue;\r
+               } else if((0x81 <= c1 && c1 <= 0x9f) || 0xe0 <= c1) {\r
+                       // kanji\r
+                       char string[3];\r
+                       string[0] = c1;\r
+                       string[1] = fgetc(fs);\r
+                       string[2] = '\0';\r
+                       ExtTextOut(hdcDib, 0, 0, NULL, NULL, string, 2, NULL);\r
+               } else {\r
+                       // 1st\r
+                       char string[2];\r
+                       string[0] = c1;\r
+                       string[1] = '\0';\r
+                       ExtTextOut(hdcDib, 0, 0, NULL, NULL, string, 1, NULL);\r
+                       \r
+                       // 2nd\r
+                       string[0] = fgetc(fs);\r
+                       ExtTextOut(hdcDib, 8, 0, NULL, NULL, string, 1, NULL);\r
+               }\r
+               for(int y = 0; y < 16; y++) {\r
+                       if(ptr >= 0x10000) {\r
+                               continue;\r
+                       }\r
+                       LPWORD pat = &lpBmp[32 * (31 - y)];\r
+                       lo[ptr]  = pat[ 0] ? 0x80 : 0;\r
+                       lo[ptr] |= pat[ 1] ? 0x40 : 0;\r
+                       lo[ptr] |= pat[ 2] ? 0x20 : 0;\r
+                       lo[ptr] |= pat[ 3] ? 0x10 : 0;\r
+                       lo[ptr] |= pat[ 4] ? 0x08 : 0;\r
+                       lo[ptr] |= pat[ 5] ? 0x04 : 0;\r
+                       lo[ptr] |= pat[ 6] ? 0x02 : 0;\r
+                       lo[ptr] |= pat[ 7] ? 0x01 : 0;\r
+                       hi[ptr]  = pat[ 8] ? 0x80 : 0;\r
+                       hi[ptr] |= pat[ 9] ? 0x40 : 0;\r
+                       hi[ptr] |= pat[10] ? 0x20 : 0;\r
+                       hi[ptr] |= pat[11] ? 0x10 : 0;\r
+                       hi[ptr] |= pat[12] ? 0x08 : 0;\r
+                       hi[ptr] |= pat[13] ? 0x04 : 0;\r
+                       hi[ptr] |= pat[14] ? 0x02 : 0;\r
+                       hi[ptr] |= pat[15] ? 0x01 : 0;\r
+                       ptr++;\r
+               }\r
+       }\r
+       fclose(fs);\r
+       \r
+       FILE* fd = fopen("KANJI.ROM", "wb");\r
+       fwrite(lo + 0x0000, 0x8000, 1, fd);\r
+       fwrite(hi + 0x0000, 0x8000, 1, fd);\r
+       fwrite(lo + 0x8000, 0x8000, 1, fd);\r
+       fwrite(hi + 0x8000, 0x8000, 1, fd);\r
+       fclose(fd);\r
+       \r
+       // release\r
+       DeleteObject(hFont);\r
+       DeleteDC(hdcDib);\r
+       DeleteObject(hBmp);\r
+       GlobalFree(lpBuf);\r
+}\r
+\r
index e5f9849..ab1fecc 100644 (file)
-<?xml version="1.0" encoding="shift_jis"?>
-<VisualStudioProject
-       ProjectType="Visual C++"
-       Version="9.00"
-       Name="mkfont"
-       ProjectGUID="{82AEFE2D-AFA3-4954-B32D-06EC53EBA06D}"
-       RootNamespace="mkfont"
-       Keyword="Win32Proj"
-       TargetFrameworkVersion="196613"
-       >
-       <Platforms>
-               <Platform
-                       Name="Win32"
-               />
-       </Platforms>
-       <ToolFiles>
-       </ToolFiles>
-       <Configurations>
-               <Configuration
-                       Name="Debug|Win32"
-                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
-                       IntermediateDirectory="$(ConfigurationName)"
-                       ConfigurationType="1"
-                       CharacterSet="1"
-                       >
-                       <Tool
-                               Name="VCPreBuildEventTool"
-                       />
-                       <Tool
-                               Name="VCCustomBuildTool"
-                       />
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCMIDLTool"
-                       />
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="0"
-                               PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"
-                               MinimalRebuild="true"
-                               BasicRuntimeChecks="3"
-                               RuntimeLibrary="3"
-                               UsePrecompiledHeader="0"
-                               WarningLevel="3"
-                               DebugInformationFormat="4"
-                       />
-                       <Tool
-                               Name="VCManagedResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCPreLinkEventTool"
-                       />
-                       <Tool
-                               Name="VCLinkerTool"
-                               LinkIncremental="2"
-                               GenerateDebugInformation="true"
-                               SubSystem="1"
-                               TargetMachine="1"
-                       />
-                       <Tool
-                               Name="VCALinkTool"
-                       />
-                       <Tool
-                               Name="VCManifestTool"
-                       />
-                       <Tool
-                               Name="VCXDCMakeTool"
-                       />
-                       <Tool
-                               Name="VCBscMakeTool"
-                       />
-                       <Tool
-                               Name="VCFxCopTool"
-                       />
-                       <Tool
-                               Name="VCAppVerifierTool"
-                       />
-                       <Tool
-                               Name="VCPostBuildEventTool"
-                       />
-               </Configuration>
-               <Configuration
-                       Name="Release|Win32"
-                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"
-                       IntermediateDirectory="$(ConfigurationName)"
-                       ConfigurationType="1"
-                       CharacterSet="2"
-                       WholeProgramOptimization="1"
-                       >
-                       <Tool
-                               Name="VCPreBuildEventTool"
-                       />
-                       <Tool
-                               Name="VCCustomBuildTool"
-                       />
-                       <Tool
-                               Name="VCXMLDataGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCWebServiceProxyGeneratorTool"
-                       />
-                       <Tool
-                               Name="VCMIDLTool"
-                       />
-                       <Tool
-                               Name="VCCLCompilerTool"
-                               Optimization="2"
-                               EnableIntrinsicFunctions="true"
-                               PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
-                               RuntimeLibrary="2"
-                               EnableFunctionLevelLinking="true"
-                               TreatWChar_tAsBuiltInType="true"
-                               UsePrecompiledHeader="0"
-                               WarningLevel="3"
-                               DebugInformationFormat="3"
-                       />
-                       <Tool
-                               Name="VCManagedResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCResourceCompilerTool"
-                       />
-                       <Tool
-                               Name="VCPreLinkEventTool"
-                       />
-                       <Tool
-                               Name="VCLinkerTool"
-                               LinkIncremental="1"
-                               GenerateDebugInformation="true"
-                               SubSystem="1"
-                               OptimizeReferences="2"
-                               EnableCOMDATFolding="2"
-                               TargetMachine="1"
-                       />
-                       <Tool
-                               Name="VCALinkTool"
-                       />
-                       <Tool
-                               Name="VCManifestTool"
-                       />
-                       <Tool
-                               Name="VCXDCMakeTool"
-                       />
-                       <Tool
-                               Name="VCBscMakeTool"
-                       />
-                       <Tool
-                               Name="VCFxCopTool"
-                       />
-                       <Tool
-                               Name="VCAppVerifierTool"
-                       />
-                       <Tool
-                               Name="VCPostBuildEventTool"
-                       />
-               </Configuration>
-       </Configurations>
-       <References>
-       </References>
-       <Files>
-               <Filter
-                       Name="Source Files"
-                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
-                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
-                       >
-                       <File
-                               RelativePath=".\mkfont.cpp"
-                               >
-                       </File>
-               </Filter>
-               <Filter
-                       Name="Header Files"
-                       Filter="h;hpp;hxx;hm;inl;inc;xsd"
-                       UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
-                       >
-               </Filter>
-               <Filter
-                       Name="Resource Files"
-                       Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"
-                       UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"
-                       >
-               </Filter>
-       </Files>
-       <Globals>
-       </Globals>
-</VisualStudioProject>
+<?xml version="1.0" encoding="shift_jis"?>\r
+<VisualStudioProject\r
+       ProjectType="Visual C++"\r
+       Version="9.00"\r
+       Name="mkfont"\r
+       ProjectGUID="{82AEFE2D-AFA3-4954-B32D-06EC53EBA06D}"\r
+       RootNamespace="mkfont"\r
+       Keyword="Win32Proj"\r
+       TargetFrameworkVersion="196613"\r
+       >\r
+       <Platforms>\r
+               <Platform\r
+                       Name="Win32"\r
+               />\r
+       </Platforms>\r
+       <ToolFiles>\r
+       </ToolFiles>\r
+       <Configurations>\r
+               <Configuration\r
+                       Name="Debug|Win32"\r
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="1"\r
+                       CharacterSet="1"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="0"\r
+                               PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE"\r
+                               MinimalRebuild="true"\r
+                               BasicRuntimeChecks="3"\r
+                               RuntimeLibrary="3"\r
+                               UsePrecompiledHeader="0"\r
+                               WarningLevel="3"\r
+                               DebugInformationFormat="4"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               LinkIncremental="2"\r
+                               GenerateDebugInformation="true"\r
+                               SubSystem="1"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+               <Configuration\r
+                       Name="Release|Win32"\r
+                       OutputDirectory="$(SolutionDir)$(ConfigurationName)"\r
+                       IntermediateDirectory="$(ConfigurationName)"\r
+                       ConfigurationType="1"\r
+                       CharacterSet="2"\r
+                       WholeProgramOptimization="1"\r
+                       >\r
+                       <Tool\r
+                               Name="VCPreBuildEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCustomBuildTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXMLDataGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCWebServiceProxyGeneratorTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCMIDLTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCCLCompilerTool"\r
+                               Optimization="2"\r
+                               EnableIntrinsicFunctions="true"\r
+                               PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"\r
+                               RuntimeLibrary="2"\r
+                               EnableFunctionLevelLinking="true"\r
+                               TreatWChar_tAsBuiltInType="true"\r
+                               UsePrecompiledHeader="0"\r
+                               WarningLevel="3"\r
+                               DebugInformationFormat="3"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManagedResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCResourceCompilerTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPreLinkEventTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCLinkerTool"\r
+                               LinkIncremental="1"\r
+                               GenerateDebugInformation="true"\r
+                               SubSystem="1"\r
+                               OptimizeReferences="2"\r
+                               EnableCOMDATFolding="2"\r
+                               TargetMachine="1"\r
+                       />\r
+                       <Tool\r
+                               Name="VCALinkTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCManifestTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCXDCMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCBscMakeTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCFxCopTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCAppVerifierTool"\r
+                       />\r
+                       <Tool\r
+                               Name="VCPostBuildEventTool"\r
+                       />\r
+               </Configuration>\r
+       </Configurations>\r
+       <References>\r
+       </References>\r
+       <Files>\r
+               <Filter\r
+                       Name="Source Files"\r
+                       Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"\r
+                       UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"\r
+                       >\r
+                       <File\r
+                               RelativePath=".\mkfont.cpp"\r
+                               >\r
+                       </File>\r
+               </Filter>\r
+               <Filter\r
+                       Name="Header Files"\r
+                       Filter="h;hpp;hxx;hm;inl;inc;xsd"\r
+                       UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"\r
+                       >\r
+               </Filter>\r
+               <Filter\r
+                       Name="Resource Files"\r
+                       Filter="rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav"\r
+                       UniqueIdentifier="{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}"\r
+                       >\r
+               </Filter>\r
+       </Files>\r
+       <Globals>\r
+       </Globals>\r
+</VisualStudioProject>\r
index 9157e4c..0c370a3 100644 (file)
-<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _
-Partial Class Form1
-       Inherits System.Windows.Forms.Form
-
-       'Form overrides dispose to clean up the component list.
-       <System.Diagnostics.DebuggerNonUserCode()> _
-       Protected Overrides Sub Dispose(ByVal disposing As Boolean)
-               Try
-                       If disposing AndAlso components IsNot Nothing Then
-                               components.Dispose()
-                       End If
-               Finally
-                       MyBase.Dispose(disposing)
-               End Try
-       End Sub
-
-       'Required by the Windows Form Designer
-       Private components As System.ComponentModel.IContainer
-
-       'NOTE: The following procedure is required by the Windows Form Designer
-       'It can be modified using the Windows Form Designer.  
-       'Do not modify it using the code editor.
-       <System.Diagnostics.DebuggerStepThrough()> _
-       Private Sub InitializeComponent()
-               Me.Button78 = New System.Windows.Forms.Button
-               Me.Button77 = New System.Windows.Forms.Button
-               Me.Button76 = New System.Windows.Forms.Button
-               Me.Button75 = New System.Windows.Forms.Button
-               Me.Button74 = New System.Windows.Forms.Button
-               Me.Button73 = New System.Windows.Forms.Button
-               Me.Button72 = New System.Windows.Forms.Button
-               Me.Button71 = New System.Windows.Forms.Button
-               Me.Button70 = New System.Windows.Forms.Button
-               Me.Button69 = New System.Windows.Forms.Button
-               Me.Button68 = New System.Windows.Forms.Button
-               Me.Button67 = New System.Windows.Forms.Button
-               Me.Button66 = New System.Windows.Forms.Button
-               Me.Button65 = New System.Windows.Forms.Button
-               Me.Button64 = New System.Windows.Forms.Button
-               Me.Button63 = New System.Windows.Forms.Button
-               Me.Button62 = New System.Windows.Forms.Button
-               Me.Button61 = New System.Windows.Forms.Button
-               Me.Button60 = New System.Windows.Forms.Button
-               Me.Button59 = New System.Windows.Forms.Button
-               Me.Button58 = New System.Windows.Forms.Button
-               Me.Button57 = New System.Windows.Forms.Button
-               Me.Button56 = New System.Windows.Forms.Button
-               Me.Button55 = New System.Windows.Forms.Button
-               Me.Button54 = New System.Windows.Forms.Button
-               Me.Button53 = New System.Windows.Forms.CheckBox
-               Me.Button52 = New System.Windows.Forms.Button
-               Me.Button51 = New System.Windows.Forms.Button
-               Me.Button50 = New System.Windows.Forms.Button
-               Me.Button49 = New System.Windows.Forms.Button
-               Me.Button48 = New System.Windows.Forms.Button
-               Me.Button47 = New System.Windows.Forms.Button
-               Me.Button46 = New System.Windows.Forms.Button
-               Me.Button45 = New System.Windows.Forms.CheckBox
-               Me.Button44 = New System.Windows.Forms.Button
-               Me.Button43 = New System.Windows.Forms.Button
-               Me.Button42 = New System.Windows.Forms.Button
-               Me.Button41 = New System.Windows.Forms.Button
-               Me.Button40 = New System.Windows.Forms.Button
-               Me.Button39 = New System.Windows.Forms.Button
-               Me.Button38 = New System.Windows.Forms.Button
-               Me.Button37 = New System.Windows.Forms.Button
-               Me.Button36 = New System.Windows.Forms.Button
-               Me.Button35 = New System.Windows.Forms.Button
-               Me.Button34 = New System.Windows.Forms.Button
-               Me.Button33 = New System.Windows.Forms.Button
-               Me.Button32 = New System.Windows.Forms.Button
-               Me.Button31 = New System.Windows.Forms.Button
-               Me.Button30 = New System.Windows.Forms.Button
-               Me.Button29 = New System.Windows.Forms.Button
-               Me.Button28 = New System.Windows.Forms.Button
-               Me.Button27 = New System.Windows.Forms.Button
-               Me.Button26 = New System.Windows.Forms.Button
-               Me.Button25 = New System.Windows.Forms.Button
-               Me.Button24 = New System.Windows.Forms.Button
-               Me.Button23 = New System.Windows.Forms.Button
-               Me.Button22 = New System.Windows.Forms.Button
-               Me.Button21 = New System.Windows.Forms.Button
-               Me.Button20 = New System.Windows.Forms.Button
-               Me.Button19 = New System.Windows.Forms.Button
-               Me.Button18 = New System.Windows.Forms.Button
-               Me.Button17 = New System.Windows.Forms.Button
-               Me.Button16 = New System.Windows.Forms.Button
-               Me.Button15 = New System.Windows.Forms.Button
-               Me.Button14 = New System.Windows.Forms.Button
-               Me.Button13 = New System.Windows.Forms.Button
-               Me.Button12 = New System.Windows.Forms.Button
-               Me.Button11 = New System.Windows.Forms.Button
-               Me.Button10 = New System.Windows.Forms.Button
-               Me.Button9 = New System.Windows.Forms.Button
-               Me.Button8 = New System.Windows.Forms.Button
-               Me.Button7 = New System.Windows.Forms.Button
-               Me.Button6 = New System.Windows.Forms.Button
-               Me.Button5 = New System.Windows.Forms.Button
-               Me.Button4 = New System.Windows.Forms.Button
-               Me.Button3 = New System.Windows.Forms.Button
-               Me.Button2 = New System.Windows.Forms.Button
-               Me.Button1 = New System.Windows.Forms.Button
-               Me.SuspendLayout()
-               '
-               'Button78
-               '
-               Me.Button78.Image = Global.mz80k_kbd.My.Resources.Resources.YEN
-               Me.Button78.Location = New System.Drawing.Point(760, 202)
-               Me.Button78.Name = "Button78"
-               Me.Button78.Size = New System.Drawing.Size(48, 48)
-               Me.Button78.TabIndex = 77
-               Me.Button78.UseVisualStyleBackColor = True
-               '
-               'Button77
-               '
-               Me.Button77.Image = Global.mz80k_kbd.My.Resources.Resources.SEI
-               Me.Button77.Location = New System.Drawing.Point(760, 152)
-               Me.Button77.Name = "Button77"
-               Me.Button77.Size = New System.Drawing.Size(48, 48)
-               Me.Button77.TabIndex = 76
-               Me.Button77.UseVisualStyleBackColor = True
-               '
-               'Button76
-               '
-               Me.Button76.Image = Global.mz80k_kbd.My.Resources.Resources.KIN
-               Me.Button76.Location = New System.Drawing.Point(760, 102)
-               Me.Button76.Name = "Button76"
-               Me.Button76.Size = New System.Drawing.Size(48, 48)
-               Me.Button76.TabIndex = 75
-               Me.Button76.UseVisualStyleBackColor = True
-               '
-               'Button75
-               '
-               Me.Button75.Image = Global.mz80k_kbd.My.Resources.Resources.SUI
-               Me.Button75.Location = New System.Drawing.Point(760, 52)
-               Me.Button75.Name = "Button75"
-               Me.Button75.Size = New System.Drawing.Size(48, 48)
-               Me.Button75.TabIndex = 74
-               Me.Button75.UseVisualStyleBackColor = True
-               '
-               'Button74
-               '
-               Me.Button74.Image = Global.mz80k_kbd.My.Resources.Resources.GETSU
-               Me.Button74.Location = New System.Drawing.Point(760, 2)
-               Me.Button74.Name = "Button74"
-               Me.Button74.Size = New System.Drawing.Size(48, 48)
-               Me.Button74.TabIndex = 73
-               Me.Button74.UseVisualStyleBackColor = True
-               '
-               'Button73
-               '
-               Me.Button73.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH54
-               Me.Button73.Location = New System.Drawing.Point(706, 202)
-               Me.Button73.Name = "Button73"
-               Me.Button73.Size = New System.Drawing.Size(48, 48)
-               Me.Button73.TabIndex = 72
-               Me.Button73.UseVisualStyleBackColor = True
-               '
-               'Button72
-               '
-               Me.Button72.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH53
-               Me.Button72.Location = New System.Drawing.Point(656, 202)
-               Me.Button72.Name = "Button72"
-               Me.Button72.Size = New System.Drawing.Size(48, 48)
-               Me.Button72.TabIndex = 71
-               Me.Button72.UseVisualStyleBackColor = True
-               '
-               'Button71
-               '
-               Me.Button71.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH52
-               Me.Button71.Location = New System.Drawing.Point(606, 202)
-               Me.Button71.Name = "Button71"
-               Me.Button71.Size = New System.Drawing.Size(48, 48)
-               Me.Button71.TabIndex = 70
-               Me.Button71.UseVisualStyleBackColor = True
-               '
-               'Button70
-               '
-               Me.Button70.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH51
-               Me.Button70.Location = New System.Drawing.Point(556, 202)
-               Me.Button70.Name = "Button70"
-               Me.Button70.Size = New System.Drawing.Size(48, 48)
-               Me.Button70.TabIndex = 69
-               Me.Button70.UseVisualStyleBackColor = True
-               '
-               'Button69
-               '
-               Me.Button69.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH44
-               Me.Button69.Location = New System.Drawing.Point(706, 152)
-               Me.Button69.Name = "Button69"
-               Me.Button69.Size = New System.Drawing.Size(48, 48)
-               Me.Button69.TabIndex = 68
-               Me.Button69.UseVisualStyleBackColor = True
-               '
-               'Button68
-               '
-               Me.Button68.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH43
-               Me.Button68.Location = New System.Drawing.Point(656, 152)
-               Me.Button68.Name = "Button68"
-               Me.Button68.Size = New System.Drawing.Size(48, 48)
-               Me.Button68.TabIndex = 67
-               Me.Button68.UseVisualStyleBackColor = True
-               '
-               'Button67
-               '
-               Me.Button67.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH42
-               Me.Button67.Location = New System.Drawing.Point(606, 152)
-               Me.Button67.Name = "Button67"
-               Me.Button67.Size = New System.Drawing.Size(48, 48)
-               Me.Button67.TabIndex = 66
-               Me.Button67.UseVisualStyleBackColor = True
-               '
-               'Button66
-               '
-               Me.Button66.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH41
-               Me.Button66.Location = New System.Drawing.Point(556, 152)
-               Me.Button66.Name = "Button66"
-               Me.Button66.Size = New System.Drawing.Size(48, 48)
-               Me.Button66.TabIndex = 65
-               Me.Button66.UseVisualStyleBackColor = True
-               '
-               'Button65
-               '
-               Me.Button65.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH34
-               Me.Button65.Location = New System.Drawing.Point(706, 102)
-               Me.Button65.Name = "Button65"
-               Me.Button65.Size = New System.Drawing.Size(48, 48)
-               Me.Button65.TabIndex = 64
-               Me.Button65.UseVisualStyleBackColor = True
-               '
-               'Button64
-               '
-               Me.Button64.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH33
-               Me.Button64.Location = New System.Drawing.Point(656, 102)
-               Me.Button64.Name = "Button64"
-               Me.Button64.Size = New System.Drawing.Size(48, 48)
-               Me.Button64.TabIndex = 63
-               Me.Button64.UseVisualStyleBackColor = True
-               '
-               'Button63
-               '
-               Me.Button63.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH32
-               Me.Button63.Location = New System.Drawing.Point(606, 102)
-               Me.Button63.Name = "Button63"
-               Me.Button63.Size = New System.Drawing.Size(48, 48)
-               Me.Button63.TabIndex = 62
-               Me.Button63.UseVisualStyleBackColor = True
-               '
-               'Button62
-               '
-               Me.Button62.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH31
-               Me.Button62.Location = New System.Drawing.Point(556, 102)
-               Me.Button62.Name = "Button62"
-               Me.Button62.Size = New System.Drawing.Size(48, 48)
-               Me.Button62.TabIndex = 61
-               Me.Button62.UseVisualStyleBackColor = True
-               '
-               'Button61
-               '
-               Me.Button61.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH24
-               Me.Button61.Location = New System.Drawing.Point(706, 52)
-               Me.Button61.Name = "Button61"
-               Me.Button61.Size = New System.Drawing.Size(48, 48)
-               Me.Button61.TabIndex = 60
-               Me.Button61.UseVisualStyleBackColor = True
-               '
-               'Button60
-               '
-               Me.Button60.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH23
-               Me.Button60.Location = New System.Drawing.Point(656, 52)
-               Me.Button60.Name = "Button60"
-               Me.Button60.Size = New System.Drawing.Size(48, 48)
-               Me.Button60.TabIndex = 59
-               Me.Button60.UseVisualStyleBackColor = True
-               '
-               'Button59
-               '
-               Me.Button59.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH22
-               Me.Button59.Location = New System.Drawing.Point(606, 52)
-               Me.Button59.Name = "Button59"
-               Me.Button59.Size = New System.Drawing.Size(48, 48)
-               Me.Button59.TabIndex = 58
-               Me.Button59.UseVisualStyleBackColor = True
-               '
-               'Button58
-               '
-               Me.Button58.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH21
-               Me.Button58.Location = New System.Drawing.Point(556, 52)
-               Me.Button58.Name = "Button58"
-               Me.Button58.Size = New System.Drawing.Size(48, 48)
-               Me.Button58.TabIndex = 57
-               Me.Button58.UseVisualStyleBackColor = True
-               '
-               'Button57
-               '
-               Me.Button57.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH14
-               Me.Button57.Location = New System.Drawing.Point(706, 2)
-               Me.Button57.Name = "Button57"
-               Me.Button57.Size = New System.Drawing.Size(48, 48)
-               Me.Button57.TabIndex = 56
-               Me.Button57.UseVisualStyleBackColor = True
-               '
-               'Button56
-               '
-               Me.Button56.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH13
-               Me.Button56.Location = New System.Drawing.Point(656, 2)
-               Me.Button56.Name = "Button56"
-               Me.Button56.Size = New System.Drawing.Size(48, 48)
-               Me.Button56.TabIndex = 55
-               Me.Button56.UseVisualStyleBackColor = True
-               '
-               'Button55
-               '
-               Me.Button55.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH12
-               Me.Button55.Location = New System.Drawing.Point(606, 2)
-               Me.Button55.Name = "Button55"
-               Me.Button55.Size = New System.Drawing.Size(48, 48)
-               Me.Button55.TabIndex = 54
-               Me.Button55.UseVisualStyleBackColor = True
-               '
-               'Button54
-               '
-               Me.Button54.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH11
-               Me.Button54.Location = New System.Drawing.Point(556, 2)
-               Me.Button54.Name = "Button54"
-               Me.Button54.Size = New System.Drawing.Size(48, 48)
-               Me.Button54.TabIndex = 53
-               Me.Button54.UseVisualStyleBackColor = True
-               '
-               'Button53
-               '
-               Me.Button53.Appearance = System.Windows.Forms.Appearance.Button
-               Me.Button53.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT
-               Me.Button53.Location = New System.Drawing.Point(502, 202)
-               Me.Button53.Name = "Button53"
-               Me.Button53.Size = New System.Drawing.Size(48, 48)
-               Me.Button53.TabIndex = 52
-               Me.Button53.UseVisualStyleBackColor = True
-               '
-               'Button52
-               '
-               Me.Button52.Image = Global.mz80k_kbd.My.Resources.Resources.CR
-               Me.Button52.Location = New System.Drawing.Point(402, 202)
-               Me.Button52.Name = "Button52"
-               Me.Button52.Size = New System.Drawing.Size(98, 48)
-               Me.Button52.TabIndex = 51
-               Me.Button52.UseVisualStyleBackColor = True
-               '
-               'Button51
-               '
-               Me.Button51.Image = Global.mz80k_kbd.My.Resources.Resources.BREAK
-               Me.Button51.Location = New System.Drawing.Point(352, 202)
-               Me.Button51.Name = "Button51"
-               Me.Button51.Size = New System.Drawing.Size(48, 48)
-               Me.Button51.TabIndex = 50
-               Me.Button51.UseVisualStyleBackColor = True
-               '
-               'Button50
-               '
-               Me.Button50.Image = Global.mz80k_kbd.My.Resources.Resources.RIGHT
-               Me.Button50.Location = New System.Drawing.Point(302, 202)
-               Me.Button50.Name = "Button50"
-               Me.Button50.Size = New System.Drawing.Size(48, 48)
-               Me.Button50.TabIndex = 49
-               Me.Button50.UseVisualStyleBackColor = True
-               '
-               'Button49
-               '
-               Me.Button49.Image = Global.mz80k_kbd.My.Resources.Resources.DOWN
-               Me.Button49.Location = New System.Drawing.Point(252, 202)
-               Me.Button49.Name = "Button49"
-               Me.Button49.Size = New System.Drawing.Size(48, 48)
-               Me.Button49.TabIndex = 48
-               Me.Button49.UseVisualStyleBackColor = True
-               '
-               'Button48
-               '
-               Me.Button48.Image = Global.mz80k_kbd.My.Resources.Resources.SPACE
-               Me.Button48.Location = New System.Drawing.Point(152, 202)
-               Me.Button48.Name = "Button48"
-               Me.Button48.Size = New System.Drawing.Size(98, 48)
-               Me.Button48.TabIndex = 47
-               Me.Button48.UseVisualStyleBackColor = True
-               '
-               'Button47
-               '
-               Me.Button47.Image = Global.mz80k_kbd.My.Resources.Resources.DELETE
-               Me.Button47.Location = New System.Drawing.Point(102, 202)
-               Me.Button47.Name = "Button47"
-               Me.Button47.Size = New System.Drawing.Size(48, 48)
-               Me.Button47.TabIndex = 46
-               Me.Button47.UseVisualStyleBackColor = True
-               '
-               'Button46
-               '
-               Me.Button46.Image = Global.mz80k_kbd.My.Resources.Resources.HOME
-               Me.Button46.Location = New System.Drawing.Point(52, 202)
-               Me.Button46.Name = "Button46"
-               Me.Button46.Size = New System.Drawing.Size(48, 48)
-               Me.Button46.TabIndex = 45
-               Me.Button46.UseVisualStyleBackColor = True
-               '
-               'Button45
-               '
-               Me.Button45.Appearance = System.Windows.Forms.Appearance.Button
-               Me.Button45.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT
-               Me.Button45.Location = New System.Drawing.Point(2, 202)
-               Me.Button45.Name = "Button45"
-               Me.Button45.Size = New System.Drawing.Size(48, 48)
-               Me.Button45.TabIndex = 44
-               Me.Button45.UseVisualStyleBackColor = True
-               '
-               'Button44
-               '
-               Me.Button44.Image = Global.mz80k_kbd.My.Resources.Resources.KANA
-               Me.Button44.Location = New System.Drawing.Point(502, 152)
-               Me.Button44.Name = "Button44"
-               Me.Button44.Size = New System.Drawing.Size(48, 48)
-               Me.Button44.TabIndex = 43
-               Me.Button44.UseVisualStyleBackColor = True
-               '
-               'Button43
-               '
-               Me.Button43.Image = Global.mz80k_kbd.My.Resources.Resources.SLASH
-               Me.Button43.Location = New System.Drawing.Point(452, 152)
-               Me.Button43.Name = "Button43"
-               Me.Button43.Size = New System.Drawing.Size(48, 48)
-               Me.Button43.TabIndex = 42
-               Me.Button43.UseVisualStyleBackColor = True
-               '
-               'Button42
-               '
-               Me.Button42.Image = Global.mz80k_kbd.My.Resources.Resources.PERIOD
-               Me.Button42.Location = New System.Drawing.Point(402, 152)
-               Me.Button42.Name = "Button42"
-               Me.Button42.Size = New System.Drawing.Size(48, 48)
-               Me.Button42.TabIndex = 41
-               Me.Button42.UseVisualStyleBackColor = True
-               '
-               'Button41
-               '
-               Me.Button41.Image = Global.mz80k_kbd.My.Resources.Resources.COMMA
-               Me.Button41.Location = New System.Drawing.Point(352, 152)
-               Me.Button41.Name = "Button41"
-               Me.Button41.Size = New System.Drawing.Size(48, 48)
-               Me.Button41.TabIndex = 40
-               Me.Button41.UseVisualStyleBackColor = True
-               '
-               'Button40
-               '
-               Me.Button40.Image = Global.mz80k_kbd.My.Resources.Resources.M
-               Me.Button40.Location = New System.Drawing.Point(302, 152)
-               Me.Button40.Name = "Button40"
-               Me.Button40.Size = New System.Drawing.Size(48, 48)
-               Me.Button40.TabIndex = 39
-               Me.Button40.UseVisualStyleBackColor = True
-               '
-               'Button39
-               '
-               Me.Button39.Image = Global.mz80k_kbd.My.Resources.Resources.N
-               Me.Button39.Location = New System.Drawing.Point(252, 152)
-               Me.Button39.Name = "Button39"
-               Me.Button39.Size = New System.Drawing.Size(48, 48)
-               Me.Button39.TabIndex = 38
-               Me.Button39.UseVisualStyleBackColor = True
-               '
-               'Button38
-               '
-               Me.Button38.Image = Global.mz80k_kbd.My.Resources.Resources.B
-               Me.Button38.Location = New System.Drawing.Point(202, 152)
-               Me.Button38.Name = "Button38"
-               Me.Button38.Size = New System.Drawing.Size(48, 48)
-               Me.Button38.TabIndex = 37
-               Me.Button38.UseVisualStyleBackColor = True
-               '
-               'Button37
-               '
-               Me.Button37.Image = Global.mz80k_kbd.My.Resources.Resources.V
-               Me.Button37.Location = New System.Drawing.Point(152, 152)
-               Me.Button37.Name = "Button37"
-               Me.Button37.Size = New System.Drawing.Size(48, 48)
-               Me.Button37.TabIndex = 36
-               Me.Button37.UseVisualStyleBackColor = True
-               '
-               'Button36
-               '
-               Me.Button36.Image = Global.mz80k_kbd.My.Resources.Resources.C
-               Me.Button36.Location = New System.Drawing.Point(102, 152)
-               Me.Button36.Name = "Button36"
-               Me.Button36.Size = New System.Drawing.Size(48, 48)
-               Me.Button36.TabIndex = 35
-               Me.Button36.UseVisualStyleBackColor = True
-               '
-               'Button35
-               '
-               Me.Button35.Image = Global.mz80k_kbd.My.Resources.Resources.X
-               Me.Button35.Location = New System.Drawing.Point(52, 152)
-               Me.Button35.Name = "Button35"
-               Me.Button35.Size = New System.Drawing.Size(48, 48)
-               Me.Button35.TabIndex = 34
-               Me.Button35.UseVisualStyleBackColor = True
-               '
-               'Button34
-               '
-               Me.Button34.Image = Global.mz80k_kbd.My.Resources.Resources.Z
-               Me.Button34.Location = New System.Drawing.Point(2, 152)
-               Me.Button34.Name = "Button34"
-               Me.Button34.Size = New System.Drawing.Size(48, 48)
-               Me.Button34.TabIndex = 33
-               Me.Button34.UseVisualStyleBackColor = True
-               '
-               'Button33
-               '
-               Me.Button33.Image = Global.mz80k_kbd.My.Resources.Resources.PLUS
-               Me.Button33.Location = New System.Drawing.Point(502, 102)
-               Me.Button33.Name = "Button33"
-               Me.Button33.Size = New System.Drawing.Size(48, 48)
-               Me.Button33.TabIndex = 32
-               Me.Button33.UseVisualStyleBackColor = True
-               '
-               'Button32
-               '
-               Me.Button32.Image = Global.mz80k_kbd.My.Resources.Resources.SEMICOLON
-               Me.Button32.Location = New System.Drawing.Point(452, 102)
-               Me.Button32.Name = "Button32"
-               Me.Button32.Size = New System.Drawing.Size(48, 48)
-               Me.Button32.TabIndex = 31
-               Me.Button32.UseVisualStyleBackColor = True
-               '
-               'Button31
-               '
-               Me.Button31.Image = Global.mz80k_kbd.My.Resources.Resources.L
-               Me.Button31.Location = New System.Drawing.Point(402, 102)
-               Me.Button31.Name = "Button31"
-               Me.Button31.Size = New System.Drawing.Size(48, 48)
-               Me.Button31.TabIndex = 30
-               Me.Button31.UseVisualStyleBackColor = True
-               '
-               'Button30
-               '
-               Me.Button30.Image = Global.mz80k_kbd.My.Resources.Resources.K
-               Me.Button30.Location = New System.Drawing.Point(352, 102)
-               Me.Button30.Name = "Button30"
-               Me.Button30.Size = New System.Drawing.Size(48, 48)
-               Me.Button30.TabIndex = 29
-               Me.Button30.UseVisualStyleBackColor = True
-               '
-               'Button29
-               '
-               Me.Button29.Image = Global.mz80k_kbd.My.Resources.Resources.J
-               Me.Button29.Location = New System.Drawing.Point(302, 102)
-               Me.Button29.Name = "Button29"
-               Me.Button29.Size = New System.Drawing.Size(48, 48)
-               Me.Button29.TabIndex = 28
-               Me.Button29.UseVisualStyleBackColor = True
-               '
-               'Button28
-               '
-               Me.Button28.Image = Global.mz80k_kbd.My.Resources.Resources.H
-               Me.Button28.Location = New System.Drawing.Point(252, 102)
-               Me.Button28.Name = "Button28"
-               Me.Button28.Size = New System.Drawing.Size(48, 48)
-               Me.Button28.TabIndex = 27
-               Me.Button28.UseVisualStyleBackColor = True
-               '
-               'Button27
-               '
-               Me.Button27.Image = Global.mz80k_kbd.My.Resources.Resources.G
-               Me.Button27.Location = New System.Drawing.Point(202, 102)
-               Me.Button27.Name = "Button27"
-               Me.Button27.Size = New System.Drawing.Size(48, 48)
-               Me.Button27.TabIndex = 26
-               Me.Button27.UseVisualStyleBackColor = True
-               '
-               'Button26
-               '
-               Me.Button26.Image = Global.mz80k_kbd.My.Resources.Resources.F
-               Me.Button26.Location = New System.Drawing.Point(152, 102)
-               Me.Button26.Name = "Button26"
-               Me.Button26.Size = New System.Drawing.Size(48, 48)
-               Me.Button26.TabIndex = 25
-               Me.Button26.UseVisualStyleBackColor = True
-               '
-               'Button25
-               '
-               Me.Button25.Image = Global.mz80k_kbd.My.Resources.Resources.D
-               Me.Button25.Location = New System.Drawing.Point(102, 102)
-               Me.Button25.Name = "Button25"
-               Me.Button25.Size = New System.Drawing.Size(48, 48)
-               Me.Button25.TabIndex = 24
-               Me.Button25.UseVisualStyleBackColor = True
-               '
-               'Button24
-               '
-               Me.Button24.Image = Global.mz80k_kbd.My.Resources.Resources.S
-               Me.Button24.Location = New System.Drawing.Point(52, 102)
-               Me.Button24.Name = "Button24"
-               Me.Button24.Size = New System.Drawing.Size(48, 48)
-               Me.Button24.TabIndex = 23
-               Me.Button24.UseVisualStyleBackColor = True
-               '
-               'Button23
-               '
-               Me.Button23.Image = Global.mz80k_kbd.My.Resources.Resources.A
-               Me.Button23.Location = New System.Drawing.Point(2, 102)
-               Me.Button23.Name = "Button23"
-               Me.Button23.Size = New System.Drawing.Size(48, 48)
-               Me.Button23.TabIndex = 22
-               Me.Button23.UseVisualStyleBackColor = True
-               '
-               'Button22
-               '
-               Me.Button22.Image = Global.mz80k_kbd.My.Resources.Resources.EQUAL
-               Me.Button22.Location = New System.Drawing.Point(502, 52)
-               Me.Button22.Name = "Button22"
-               Me.Button22.Size = New System.Drawing.Size(48, 48)
-               Me.Button22.TabIndex = 21
-               Me.Button22.UseVisualStyleBackColor = True
-               '
-               'Button21
-               '
-               Me.Button21.Image = Global.mz80k_kbd.My.Resources.Resources.P
-               Me.Button21.Location = New System.Drawing.Point(452, 52)
-               Me.Button21.Name = "Button21"
-               Me.Button21.Size = New System.Drawing.Size(48, 48)
-               Me.Button21.TabIndex = 20
-               Me.Button21.UseVisualStyleBackColor = True
-               '
-               'Button20
-               '
-               Me.Button20.Image = Global.mz80k_kbd.My.Resources.Resources.O
-               Me.Button20.Location = New System.Drawing.Point(402, 52)
-               Me.Button20.Name = "Button20"
-               Me.Button20.Size = New System.Drawing.Size(48, 48)
-               Me.Button20.TabIndex = 19
-               Me.Button20.UseVisualStyleBackColor = True
-               '
-               'Button19
-               '
-               Me.Button19.Image = Global.mz80k_kbd.My.Resources.Resources.I
-               Me.Button19.Location = New System.Drawing.Point(352, 52)
-               Me.Button19.Name = "Button19"
-               Me.Button19.Size = New System.Drawing.Size(48, 48)
-               Me.Button19.TabIndex = 18
-               Me.Button19.UseVisualStyleBackColor = True
-               '
-               'Button18
-               '
-               Me.Button18.Image = Global.mz80k_kbd.My.Resources.Resources.U
-               Me.Button18.Location = New System.Drawing.Point(302, 52)
-               Me.Button18.Name = "Button18"
-               Me.Button18.Size = New System.Drawing.Size(48, 48)
-               Me.Button18.TabIndex = 17
-               Me.Button18.UseVisualStyleBackColor = True
-               '
-               'Button17
-               '
-               Me.Button17.Image = Global.mz80k_kbd.My.Resources.Resources.Y
-               Me.Button17.Location = New System.Drawing.Point(252, 52)
-               Me.Button17.Name = "Button17"
-               Me.Button17.Size = New System.Drawing.Size(48, 48)
-               Me.Button17.TabIndex = 16
-               Me.Button17.UseVisualStyleBackColor = True
-               '
-               'Button16
-               '
-               Me.Button16.Image = Global.mz80k_kbd.My.Resources.Resources.T
-               Me.Button16.Location = New System.Drawing.Point(202, 52)
-               Me.Button16.Name = "Button16"
-               Me.Button16.Size = New System.Drawing.Size(48, 48)
-               Me.Button16.TabIndex = 15
-               Me.Button16.UseVisualStyleBackColor = True
-               '
-               'Button15
-               '
-               Me.Button15.Image = Global.mz80k_kbd.My.Resources.Resources.R
-               Me.Button15.Location = New System.Drawing.Point(152, 52)
-               Me.Button15.Name = "Button15"
-               Me.Button15.Size = New System.Drawing.Size(48, 48)
-               Me.Button15.TabIndex = 14
-               Me.Button15.UseVisualStyleBackColor = True
-               '
-               'Button14
-               '
-               Me.Button14.Image = Global.mz80k_kbd.My.Resources.Resources.E
-               Me.Button14.Location = New System.Drawing.Point(102, 52)
-               Me.Button14.Name = "Button14"
-               Me.Button14.Size = New System.Drawing.Size(48, 48)
-               Me.Button14.TabIndex = 13
-               Me.Button14.UseVisualStyleBackColor = True
-               '
-               'Button13
-               '
-               Me.Button13.Image = Global.mz80k_kbd.My.Resources.Resources.W
-               Me.Button13.Location = New System.Drawing.Point(52, 52)
-               Me.Button13.Name = "Button13"
-               Me.Button13.Size = New System.Drawing.Size(48, 48)
-               Me.Button13.TabIndex = 12
-               Me.Button13.UseVisualStyleBackColor = True
-               '
-               'Button12
-               '
-               Me.Button12.Image = Global.mz80k_kbd.My.Resources.Resources.Q
-               Me.Button12.Location = New System.Drawing.Point(2, 52)
-               Me.Button12.Name = "Button12"
-               Me.Button12.Size = New System.Drawing.Size(48, 48)
-               Me.Button12.TabIndex = 11
-               Me.Button12.UseVisualStyleBackColor = True
-               '
-               'Button11
-               '
-               Me.Button11.Image = Global.mz80k_kbd.My.Resources.Resources.MINUS
-               Me.Button11.Location = New System.Drawing.Point(502, 2)
-               Me.Button11.Name = "Button11"
-               Me.Button11.Size = New System.Drawing.Size(48, 48)
-               Me.Button11.TabIndex = 10
-               Me.Button11.UseVisualStyleBackColor = True
-               '
-               'Button10
-               '
-               Me.Button10.Image = Global.mz80k_kbd.My.Resources.Resources._0
-               Me.Button10.Location = New System.Drawing.Point(452, 2)
-               Me.Button10.Name = "Button10"
-               Me.Button10.Size = New System.Drawing.Size(48, 48)
-               Me.Button10.TabIndex = 9
-               Me.Button10.UseVisualStyleBackColor = True
-               '
-               'Button9
-               '
-               Me.Button9.Image = Global.mz80k_kbd.My.Resources.Resources._9
-               Me.Button9.Location = New System.Drawing.Point(402, 2)
-               Me.Button9.Name = "Button9"
-               Me.Button9.Size = New System.Drawing.Size(48, 48)
-               Me.Button9.TabIndex = 8
-               Me.Button9.UseVisualStyleBackColor = True
-               '
-               'Button8
-               '
-               Me.Button8.Image = Global.mz80k_kbd.My.Resources.Resources._8
-               Me.Button8.Location = New System.Drawing.Point(352, 2)
-               Me.Button8.Name = "Button8"
-               Me.Button8.Size = New System.Drawing.Size(48, 48)
-               Me.Button8.TabIndex = 7
-               Me.Button8.UseVisualStyleBackColor = True
-               '
-               'Button7
-               '
-               Me.Button7.Image = Global.mz80k_kbd.My.Resources.Resources._7
-               Me.Button7.Location = New System.Drawing.Point(302, 2)
-               Me.Button7.Name = "Button7"
-               Me.Button7.Size = New System.Drawing.Size(48, 48)
-               Me.Button7.TabIndex = 6
-               Me.Button7.UseVisualStyleBackColor = True
-               '
-               'Button6
-               '
-               Me.Button6.Image = Global.mz80k_kbd.My.Resources.Resources._6
-               Me.Button6.Location = New System.Drawing.Point(252, 2)
-               Me.Button6.Name = "Button6"
-               Me.Button6.Size = New System.Drawing.Size(48, 48)
-               Me.Button6.TabIndex = 5
-               Me.Button6.UseVisualStyleBackColor = True
-               '
-               'Button5
-               '
-               Me.Button5.Image = Global.mz80k_kbd.My.Resources.Resources._5
-               Me.Button5.Location = New System.Drawing.Point(202, 2)
-               Me.Button5.Name = "Button5"
-               Me.Button5.Size = New System.Drawing.Size(48, 48)
-               Me.Button5.TabIndex = 4
-               Me.Button5.UseVisualStyleBackColor = True
-               '
-               'Button4
-               '
-               Me.Button4.Image = Global.mz80k_kbd.My.Resources.Resources._4
-               Me.Button4.Location = New System.Drawing.Point(152, 2)
-               Me.Button4.Name = "Button4"
-               Me.Button4.Size = New System.Drawing.Size(48, 48)
-               Me.Button4.TabIndex = 3
-               Me.Button4.UseVisualStyleBackColor = True
-               '
-               'Button3
-               '
-               Me.Button3.Image = Global.mz80k_kbd.My.Resources.Resources._3
-               Me.Button3.Location = New System.Drawing.Point(102, 2)
-               Me.Button3.Name = "Button3"
-               Me.Button3.Size = New System.Drawing.Size(48, 48)
-               Me.Button3.TabIndex = 2
-               Me.Button3.UseVisualStyleBackColor = True
-               '
-               'Button2
-               '
-               Me.Button2.Image = Global.mz80k_kbd.My.Resources.Resources._2
-               Me.Button2.Location = New System.Drawing.Point(52, 2)
-               Me.Button2.Name = "Button2"
-               Me.Button2.Size = New System.Drawing.Size(48, 48)
-               Me.Button2.TabIndex = 1
-               Me.Button2.UseVisualStyleBackColor = True
-               '
-               'Button1
-               '
-               Me.Button1.Image = Global.mz80k_kbd.My.Resources.Resources._1
-               Me.Button1.Location = New System.Drawing.Point(2, 2)
-               Me.Button1.Name = "Button1"
-               Me.Button1.Size = New System.Drawing.Size(48, 48)
-               Me.Button1.TabIndex = 0
-               Me.Button1.UseVisualStyleBackColor = True
-               '
-               'Form1
-               '
-               Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!)
-               Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
-               Me.ClientSize = New System.Drawing.Size(809, 251)
-               Me.Controls.Add(Me.Button78)
-               Me.Controls.Add(Me.Button77)
-               Me.Controls.Add(Me.Button76)
-               Me.Controls.Add(Me.Button75)
-               Me.Controls.Add(Me.Button74)
-               Me.Controls.Add(Me.Button73)
-               Me.Controls.Add(Me.Button72)
-               Me.Controls.Add(Me.Button71)
-               Me.Controls.Add(Me.Button70)
-               Me.Controls.Add(Me.Button69)
-               Me.Controls.Add(Me.Button68)
-               Me.Controls.Add(Me.Button67)
-               Me.Controls.Add(Me.Button66)
-               Me.Controls.Add(Me.Button65)
-               Me.Controls.Add(Me.Button64)
-               Me.Controls.Add(Me.Button63)
-               Me.Controls.Add(Me.Button62)
-               Me.Controls.Add(Me.Button61)
-               Me.Controls.Add(Me.Button60)
-               Me.Controls.Add(Me.Button59)
-               Me.Controls.Add(Me.Button58)
-               Me.Controls.Add(Me.Button57)
-               Me.Controls.Add(Me.Button56)
-               Me.Controls.Add(Me.Button55)
-               Me.Controls.Add(Me.Button54)
-               Me.Controls.Add(Me.Button53)
-               Me.Controls.Add(Me.Button52)
-               Me.Controls.Add(Me.Button51)
-               Me.Controls.Add(Me.Button50)
-               Me.Controls.Add(Me.Button49)
-               Me.Controls.Add(Me.Button48)
-               Me.Controls.Add(Me.Button47)
-               Me.Controls.Add(Me.Button46)
-               Me.Controls.Add(Me.Button45)
-               Me.Controls.Add(Me.Button44)
-               Me.Controls.Add(Me.Button43)
-               Me.Controls.Add(Me.Button42)
-               Me.Controls.Add(Me.Button41)
-               Me.Controls.Add(Me.Button40)
-               Me.Controls.Add(Me.Button39)
-               Me.Controls.Add(Me.Button38)
-               Me.Controls.Add(Me.Button37)
-               Me.Controls.Add(Me.Button36)
-               Me.Controls.Add(Me.Button35)
-               Me.Controls.Add(Me.Button34)
-               Me.Controls.Add(Me.Button33)
-               Me.Controls.Add(Me.Button32)
-               Me.Controls.Add(Me.Button31)
-               Me.Controls.Add(Me.Button30)
-               Me.Controls.Add(Me.Button29)
-               Me.Controls.Add(Me.Button28)
-               Me.Controls.Add(Me.Button27)
-               Me.Controls.Add(Me.Button26)
-               Me.Controls.Add(Me.Button25)
-               Me.Controls.Add(Me.Button24)
-               Me.Controls.Add(Me.Button23)
-               Me.Controls.Add(Me.Button22)
-               Me.Controls.Add(Me.Button21)
-               Me.Controls.Add(Me.Button20)
-               Me.Controls.Add(Me.Button19)
-               Me.Controls.Add(Me.Button18)
-               Me.Controls.Add(Me.Button17)
-               Me.Controls.Add(Me.Button16)
-               Me.Controls.Add(Me.Button15)
-               Me.Controls.Add(Me.Button14)
-               Me.Controls.Add(Me.Button13)
-               Me.Controls.Add(Me.Button12)
-               Me.Controls.Add(Me.Button11)
-               Me.Controls.Add(Me.Button10)
-               Me.Controls.Add(Me.Button9)
-               Me.Controls.Add(Me.Button8)
-               Me.Controls.Add(Me.Button7)
-               Me.Controls.Add(Me.Button6)
-               Me.Controls.Add(Me.Button5)
-               Me.Controls.Add(Me.Button4)
-               Me.Controls.Add(Me.Button3)
-               Me.Controls.Add(Me.Button2)
-               Me.Controls.Add(Me.Button1)
-               Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle
-               Me.KeyPreview = True
-               Me.MaximizeBox = False
-               Me.MinimizeBox = False
-               Me.Name = "Form1"
-               Me.Text = "MZ-80K Software Keyboard"
-               Me.ResumeLayout(False)
-
-       End Sub
-       Friend WithEvents Button1 As System.Windows.Forms.Button
-       Friend WithEvents Button2 As System.Windows.Forms.Button
-       Friend WithEvents Button3 As System.Windows.Forms.Button
-       Friend WithEvents Button4 As System.Windows.Forms.Button
-       Friend WithEvents Button5 As System.Windows.Forms.Button
-       Friend WithEvents Button6 As System.Windows.Forms.Button
-       Friend WithEvents Button7 As System.Windows.Forms.Button
-       Friend WithEvents Button8 As System.Windows.Forms.Button
-       Friend WithEvents Button9 As System.Windows.Forms.Button
-       Friend WithEvents Button10 As System.Windows.Forms.Button
-       Friend WithEvents Button11 As System.Windows.Forms.Button
-       Friend WithEvents Button12 As System.Windows.Forms.Button
-       Friend WithEvents Button13 As System.Windows.Forms.Button
-       Friend WithEvents Button14 As System.Windows.Forms.Button
-       Friend WithEvents Button15 As System.Windows.Forms.Button
-       Friend WithEvents Button16 As System.Windows.Forms.Button
-       Friend WithEvents Button17 As System.Windows.Forms.Button
-       Friend WithEvents Button18 As System.Windows.Forms.Button
-       Friend WithEvents Button19 As System.Windows.Forms.Button
-       Friend WithEvents Button20 As System.Windows.Forms.Button
-       Friend WithEvents Button21 As System.Windows.Forms.Button
-       Friend WithEvents Button22 As System.Windows.Forms.Button
-       Friend WithEvents Button23 As System.Windows.Forms.Button
-       Friend WithEvents Button24 As System.Windows.Forms.Button
-       Friend WithEvents Button25 As System.Windows.Forms.Button
-       Friend WithEvents Button26 As System.Windows.Forms.Button
-       Friend WithEvents Button27 As System.Windows.Forms.Button
-       Friend WithEvents Button28 As System.Windows.Forms.Button
-       Friend WithEvents Button29 As System.Windows.Forms.Button
-       Friend WithEvents Button30 As System.Windows.Forms.Button
-       Friend WithEvents Button31 As System.Windows.Forms.Button
-       Friend WithEvents Button32 As System.Windows.Forms.Button
-       Friend WithEvents Button33 As System.Windows.Forms.Button
-       Friend WithEvents Button34 As System.Windows.Forms.Button
-       Friend WithEvents Button35 As System.Windows.Forms.Button
-       Friend WithEvents Button36 As System.Windows.Forms.Button
-       Friend WithEvents Button37 As System.Windows.Forms.Button
-       Friend WithEvents Button38 As System.Windows.Forms.Button
-       Friend WithEvents Button39 As System.Windows.Forms.Button
-       Friend WithEvents Button40 As System.Windows.Forms.Button
-       Friend WithEvents Button41 As System.Windows.Forms.Button
-       Friend WithEvents Button42 As System.Windows.Forms.Button
-       Friend WithEvents Button43 As System.Windows.Forms.Button
-       Friend WithEvents Button44 As System.Windows.Forms.Button
-       Friend WithEvents Button45 As System.Windows.Forms.CheckBox
-       Friend WithEvents Button46 As System.Windows.Forms.Button
-       Friend WithEvents Button47 As System.Windows.Forms.Button
-       Friend WithEvents Button48 As System.Windows.Forms.Button
-       Friend WithEvents Button49 As System.Windows.Forms.Button
-       Friend WithEvents Button50 As System.Windows.Forms.Button
-       Friend WithEvents Button51 As System.Windows.Forms.Button
-       Friend WithEvents Button52 As System.Windows.Forms.Button
-       Friend WithEvents Button53 As System.Windows.Forms.CheckBox
-       Friend WithEvents Button54 As System.Windows.Forms.Button
-       Friend WithEvents Button55 As System.Windows.Forms.Button
-       Friend WithEvents Button56 As System.Windows.Forms.Button
-       Friend WithEvents Button57 As System.Windows.Forms.Button
-       Friend WithEvents Button58 As System.Windows.Forms.Button
-       Friend WithEvents Button59 As System.Windows.Forms.Button
-       Friend WithEvents Button60 As System.Windows.Forms.Button
-       Friend WithEvents Button61 As System.Windows.Forms.Button
-       Friend WithEvents Button62 As System.Windows.Forms.Button
-       Friend WithEvents Button63 As System.Windows.Forms.Button
-       Friend WithEvents Button64 As System.Windows.Forms.Button
-       Friend WithEvents Button65 As System.Windows.Forms.Button
-       Friend WithEvents Button66 As System.Windows.Forms.Button
-       Friend WithEvents Button67 As System.Windows.Forms.Button
-       Friend WithEvents Button68 As System.Windows.Forms.Button
-       Friend WithEvents Button69 As System.Windows.Forms.Button
-       Friend WithEvents Button70 As System.Windows.Forms.Button
-       Friend WithEvents Button71 As System.Windows.Forms.Button
-       Friend WithEvents Button72 As System.Windows.Forms.Button
-       Friend WithEvents Button73 As System.Windows.Forms.Button
-       Friend WithEvents Button74 As System.Windows.Forms.Button
-       Friend WithEvents Button75 As System.Windows.Forms.Button
-       Friend WithEvents Button76 As System.Windows.Forms.Button
-       Friend WithEvents Button77 As System.Windows.Forms.Button
-       Friend WithEvents Button78 As System.Windows.Forms.Button
-
-End Class
+<Global.Microsoft.VisualBasic.CompilerServices.DesignerGenerated()> _\r
+Partial Class Form1\r
+       Inherits System.Windows.Forms.Form\r
+\r
+       'Form overrides dispose to clean up the component list.\r
+       <System.Diagnostics.DebuggerNonUserCode()> _\r
+       Protected Overrides Sub Dispose(ByVal disposing As Boolean)\r
+               Try\r
+                       If disposing AndAlso components IsNot Nothing Then\r
+                               components.Dispose()\r
+                       End If\r
+               Finally\r
+                       MyBase.Dispose(disposing)\r
+               End Try\r
+       End Sub\r
+\r
+       'Required by the Windows Form Designer\r
+       Private components As System.ComponentModel.IContainer\r
+\r
+       'NOTE: The following procedure is required by the Windows Form Designer\r
+       'It can be modified using the Windows Form Designer.  \r
+       'Do not modify it using the code editor.\r
+       <System.Diagnostics.DebuggerStepThrough()> _\r
+       Private Sub InitializeComponent()\r
+               Me.Button78 = New System.Windows.Forms.Button\r
+               Me.Button77 = New System.Windows.Forms.Button\r
+               Me.Button76 = New System.Windows.Forms.Button\r
+               Me.Button75 = New System.Windows.Forms.Button\r
+               Me.Button74 = New System.Windows.Forms.Button\r
+               Me.Button73 = New System.Windows.Forms.Button\r
+               Me.Button72 = New System.Windows.Forms.Button\r
+               Me.Button71 = New System.Windows.Forms.Button\r
+               Me.Button70 = New System.Windows.Forms.Button\r
+               Me.Button69 = New System.Windows.Forms.Button\r
+               Me.Button68 = New System.Windows.Forms.Button\r
+               Me.Button67 = New System.Windows.Forms.Button\r
+               Me.Button66 = New System.Windows.Forms.Button\r
+               Me.Button65 = New System.Windows.Forms.Button\r
+               Me.Button64 = New System.Windows.Forms.Button\r
+               Me.Button63 = New System.Windows.Forms.Button\r
+               Me.Button62 = New System.Windows.Forms.Button\r
+               Me.Button61 = New System.Windows.Forms.Button\r
+               Me.Button60 = New System.Windows.Forms.Button\r
+               Me.Button59 = New System.Windows.Forms.Button\r
+               Me.Button58 = New System.Windows.Forms.Button\r
+               Me.Button57 = New System.Windows.Forms.Button\r
+               Me.Button56 = New System.Windows.Forms.Button\r
+               Me.Button55 = New System.Windows.Forms.Button\r
+               Me.Button54 = New System.Windows.Forms.Button\r
+               Me.Button53 = New System.Windows.Forms.CheckBox\r
+               Me.Button52 = New System.Windows.Forms.Button\r
+               Me.Button51 = New System.Windows.Forms.Button\r
+               Me.Button50 = New System.Windows.Forms.Button\r
+               Me.Button49 = New System.Windows.Forms.Button\r
+               Me.Button48 = New System.Windows.Forms.Button\r
+               Me.Button47 = New System.Windows.Forms.Button\r
+               Me.Button46 = New System.Windows.Forms.Button\r
+               Me.Button45 = New System.Windows.Forms.CheckBox\r
+               Me.Button44 = New System.Windows.Forms.Button\r
+               Me.Button43 = New System.Windows.Forms.Button\r
+               Me.Button42 = New System.Windows.Forms.Button\r
+               Me.Button41 = New System.Windows.Forms.Button\r
+               Me.Button40 = New System.Windows.Forms.Button\r
+               Me.Button39 = New System.Windows.Forms.Button\r
+               Me.Button38 = New System.Windows.Forms.Button\r
+               Me.Button37 = New System.Windows.Forms.Button\r
+               Me.Button36 = New System.Windows.Forms.Button\r
+               Me.Button35 = New System.Windows.Forms.Button\r
+               Me.Button34 = New System.Windows.Forms.Button\r
+               Me.Button33 = New System.Windows.Forms.Button\r
+               Me.Button32 = New System.Windows.Forms.Button\r
+               Me.Button31 = New System.Windows.Forms.Button\r
+               Me.Button30 = New System.Windows.Forms.Button\r
+               Me.Button29 = New System.Windows.Forms.Button\r
+               Me.Button28 = New System.Windows.Forms.Button\r
+               Me.Button27 = New System.Windows.Forms.Button\r
+               Me.Button26 = New System.Windows.Forms.Button\r
+               Me.Button25 = New System.Windows.Forms.Button\r
+               Me.Button24 = New System.Windows.Forms.Button\r
+               Me.Button23 = New System.Windows.Forms.Button\r
+               Me.Button22 = New System.Windows.Forms.Button\r
+               Me.Button21 = New System.Windows.Forms.Button\r
+               Me.Button20 = New System.Windows.Forms.Button\r
+               Me.Button19 = New System.Windows.Forms.Button\r
+               Me.Button18 = New System.Windows.Forms.Button\r
+               Me.Button17 = New System.Windows.Forms.Button\r
+               Me.Button16 = New System.Windows.Forms.Button\r
+               Me.Button15 = New System.Windows.Forms.Button\r
+               Me.Button14 = New System.Windows.Forms.Button\r
+               Me.Button13 = New System.Windows.Forms.Button\r
+               Me.Button12 = New System.Windows.Forms.Button\r
+               Me.Button11 = New System.Windows.Forms.Button\r
+               Me.Button10 = New System.Windows.Forms.Button\r
+               Me.Button9 = New System.Windows.Forms.Button\r
+               Me.Button8 = New System.Windows.Forms.Button\r
+               Me.Button7 = New System.Windows.Forms.Button\r
+               Me.Button6 = New System.Windows.Forms.Button\r
+               Me.Button5 = New System.Windows.Forms.Button\r
+               Me.Button4 = New System.Windows.Forms.Button\r
+               Me.Button3 = New System.Windows.Forms.Button\r
+               Me.Button2 = New System.Windows.Forms.Button\r
+               Me.Button1 = New System.Windows.Forms.Button\r
+               Me.SuspendLayout()\r
+               '\r
+               'Button78\r
+               '\r
+               Me.Button78.Image = Global.mz80k_kbd.My.Resources.Resources.YEN\r
+               Me.Button78.Location = New System.Drawing.Point(760, 202)\r
+               Me.Button78.Name = "Button78"\r
+               Me.Button78.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button78.TabIndex = 77\r
+               Me.Button78.UseVisualStyleBackColor = True\r
+               '\r
+               'Button77\r
+               '\r
+               Me.Button77.Image = Global.mz80k_kbd.My.Resources.Resources.SEI\r
+               Me.Button77.Location = New System.Drawing.Point(760, 152)\r
+               Me.Button77.Name = "Button77"\r
+               Me.Button77.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button77.TabIndex = 76\r
+               Me.Button77.UseVisualStyleBackColor = True\r
+               '\r
+               'Button76\r
+               '\r
+               Me.Button76.Image = Global.mz80k_kbd.My.Resources.Resources.KIN\r
+               Me.Button76.Location = New System.Drawing.Point(760, 102)\r
+               Me.Button76.Name = "Button76"\r
+               Me.Button76.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button76.TabIndex = 75\r
+               Me.Button76.UseVisualStyleBackColor = True\r
+               '\r
+               'Button75\r
+               '\r
+               Me.Button75.Image = Global.mz80k_kbd.My.Resources.Resources.SUI\r
+               Me.Button75.Location = New System.Drawing.Point(760, 52)\r
+               Me.Button75.Name = "Button75"\r
+               Me.Button75.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button75.TabIndex = 74\r
+               Me.Button75.UseVisualStyleBackColor = True\r
+               '\r
+               'Button74\r
+               '\r
+               Me.Button74.Image = Global.mz80k_kbd.My.Resources.Resources.GETSU\r
+               Me.Button74.Location = New System.Drawing.Point(760, 2)\r
+               Me.Button74.Name = "Button74"\r
+               Me.Button74.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button74.TabIndex = 73\r
+               Me.Button74.UseVisualStyleBackColor = True\r
+               '\r
+               'Button73\r
+               '\r
+               Me.Button73.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH54\r
+               Me.Button73.Location = New System.Drawing.Point(706, 202)\r
+               Me.Button73.Name = "Button73"\r
+               Me.Button73.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button73.TabIndex = 72\r
+               Me.Button73.UseVisualStyleBackColor = True\r
+               '\r
+               'Button72\r
+               '\r
+               Me.Button72.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH53\r
+               Me.Button72.Location = New System.Drawing.Point(656, 202)\r
+               Me.Button72.Name = "Button72"\r
+               Me.Button72.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button72.TabIndex = 71\r
+               Me.Button72.UseVisualStyleBackColor = True\r
+               '\r
+               'Button71\r
+               '\r
+               Me.Button71.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH52\r
+               Me.Button71.Location = New System.Drawing.Point(606, 202)\r
+               Me.Button71.Name = "Button71"\r
+               Me.Button71.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button71.TabIndex = 70\r
+               Me.Button71.UseVisualStyleBackColor = True\r
+               '\r
+               'Button70\r
+               '\r
+               Me.Button70.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH51\r
+               Me.Button70.Location = New System.Drawing.Point(556, 202)\r
+               Me.Button70.Name = "Button70"\r
+               Me.Button70.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button70.TabIndex = 69\r
+               Me.Button70.UseVisualStyleBackColor = True\r
+               '\r
+               'Button69\r
+               '\r
+               Me.Button69.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH44\r
+               Me.Button69.Location = New System.Drawing.Point(706, 152)\r
+               Me.Button69.Name = "Button69"\r
+               Me.Button69.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button69.TabIndex = 68\r
+               Me.Button69.UseVisualStyleBackColor = True\r
+               '\r
+               'Button68\r
+               '\r
+               Me.Button68.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH43\r
+               Me.Button68.Location = New System.Drawing.Point(656, 152)\r
+               Me.Button68.Name = "Button68"\r
+               Me.Button68.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button68.TabIndex = 67\r
+               Me.Button68.UseVisualStyleBackColor = True\r
+               '\r
+               'Button67\r
+               '\r
+               Me.Button67.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH42\r
+               Me.Button67.Location = New System.Drawing.Point(606, 152)\r
+               Me.Button67.Name = "Button67"\r
+               Me.Button67.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button67.TabIndex = 66\r
+               Me.Button67.UseVisualStyleBackColor = True\r
+               '\r
+               'Button66\r
+               '\r
+               Me.Button66.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH41\r
+               Me.Button66.Location = New System.Drawing.Point(556, 152)\r
+               Me.Button66.Name = "Button66"\r
+               Me.Button66.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button66.TabIndex = 65\r
+               Me.Button66.UseVisualStyleBackColor = True\r
+               '\r
+               'Button65\r
+               '\r
+               Me.Button65.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH34\r
+               Me.Button65.Location = New System.Drawing.Point(706, 102)\r
+               Me.Button65.Name = "Button65"\r
+               Me.Button65.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button65.TabIndex = 64\r
+               Me.Button65.UseVisualStyleBackColor = True\r
+               '\r
+               'Button64\r
+               '\r
+               Me.Button64.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH33\r
+               Me.Button64.Location = New System.Drawing.Point(656, 102)\r
+               Me.Button64.Name = "Button64"\r
+               Me.Button64.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button64.TabIndex = 63\r
+               Me.Button64.UseVisualStyleBackColor = True\r
+               '\r
+               'Button63\r
+               '\r
+               Me.Button63.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH32\r
+               Me.Button63.Location = New System.Drawing.Point(606, 102)\r
+               Me.Button63.Name = "Button63"\r
+               Me.Button63.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button63.TabIndex = 62\r
+               Me.Button63.UseVisualStyleBackColor = True\r
+               '\r
+               'Button62\r
+               '\r
+               Me.Button62.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH31\r
+               Me.Button62.Location = New System.Drawing.Point(556, 102)\r
+               Me.Button62.Name = "Button62"\r
+               Me.Button62.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button62.TabIndex = 61\r
+               Me.Button62.UseVisualStyleBackColor = True\r
+               '\r
+               'Button61\r
+               '\r
+               Me.Button61.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH24\r
+               Me.Button61.Location = New System.Drawing.Point(706, 52)\r
+               Me.Button61.Name = "Button61"\r
+               Me.Button61.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button61.TabIndex = 60\r
+               Me.Button61.UseVisualStyleBackColor = True\r
+               '\r
+               'Button60\r
+               '\r
+               Me.Button60.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH23\r
+               Me.Button60.Location = New System.Drawing.Point(656, 52)\r
+               Me.Button60.Name = "Button60"\r
+               Me.Button60.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button60.TabIndex = 59\r
+               Me.Button60.UseVisualStyleBackColor = True\r
+               '\r
+               'Button59\r
+               '\r
+               Me.Button59.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH22\r
+               Me.Button59.Location = New System.Drawing.Point(606, 52)\r
+               Me.Button59.Name = "Button59"\r
+               Me.Button59.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button59.TabIndex = 58\r
+               Me.Button59.UseVisualStyleBackColor = True\r
+               '\r
+               'Button58\r
+               '\r
+               Me.Button58.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH21\r
+               Me.Button58.Location = New System.Drawing.Point(556, 52)\r
+               Me.Button58.Name = "Button58"\r
+               Me.Button58.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button58.TabIndex = 57\r
+               Me.Button58.UseVisualStyleBackColor = True\r
+               '\r
+               'Button57\r
+               '\r
+               Me.Button57.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH14\r
+               Me.Button57.Location = New System.Drawing.Point(706, 2)\r
+               Me.Button57.Name = "Button57"\r
+               Me.Button57.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button57.TabIndex = 56\r
+               Me.Button57.UseVisualStyleBackColor = True\r
+               '\r
+               'Button56\r
+               '\r
+               Me.Button56.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH13\r
+               Me.Button56.Location = New System.Drawing.Point(656, 2)\r
+               Me.Button56.Name = "Button56"\r
+               Me.Button56.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button56.TabIndex = 55\r
+               Me.Button56.UseVisualStyleBackColor = True\r
+               '\r
+               'Button55\r
+               '\r
+               Me.Button55.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH12\r
+               Me.Button55.Location = New System.Drawing.Point(606, 2)\r
+               Me.Button55.Name = "Button55"\r
+               Me.Button55.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button55.TabIndex = 54\r
+               Me.Button55.UseVisualStyleBackColor = True\r
+               '\r
+               'Button54\r
+               '\r
+               Me.Button54.Image = Global.mz80k_kbd.My.Resources.Resources.GRAPH11\r
+               Me.Button54.Location = New System.Drawing.Point(556, 2)\r
+               Me.Button54.Name = "Button54"\r
+               Me.Button54.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button54.TabIndex = 53\r
+               Me.Button54.UseVisualStyleBackColor = True\r
+               '\r
+               'Button53\r
+               '\r
+               Me.Button53.Appearance = System.Windows.Forms.Appearance.Button\r
+               Me.Button53.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT\r
+               Me.Button53.Location = New System.Drawing.Point(502, 202)\r
+               Me.Button53.Name = "Button53"\r
+               Me.Button53.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button53.TabIndex = 52\r
+               Me.Button53.UseVisualStyleBackColor = True\r
+               '\r
+               'Button52\r
+               '\r
+               Me.Button52.Image = Global.mz80k_kbd.My.Resources.Resources.CR\r
+               Me.Button52.Location = New System.Drawing.Point(402, 202)\r
+               Me.Button52.Name = "Button52"\r
+               Me.Button52.Size = New System.Drawing.Size(98, 48)\r
+               Me.Button52.TabIndex = 51\r
+               Me.Button52.UseVisualStyleBackColor = True\r
+               '\r
+               'Button51\r
+               '\r
+               Me.Button51.Image = Global.mz80k_kbd.My.Resources.Resources.BREAK\r
+               Me.Button51.Location = New System.Drawing.Point(352, 202)\r
+               Me.Button51.Name = "Button51"\r
+               Me.Button51.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button51.TabIndex = 50\r
+               Me.Button51.UseVisualStyleBackColor = True\r
+               '\r
+               'Button50\r
+               '\r
+               Me.Button50.Image = Global.mz80k_kbd.My.Resources.Resources.RIGHT\r
+               Me.Button50.Location = New System.Drawing.Point(302, 202)\r
+               Me.Button50.Name = "Button50"\r
+               Me.Button50.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button50.TabIndex = 49\r
+               Me.Button50.UseVisualStyleBackColor = True\r
+               '\r
+               'Button49\r
+               '\r
+               Me.Button49.Image = Global.mz80k_kbd.My.Resources.Resources.DOWN\r
+               Me.Button49.Location = New System.Drawing.Point(252, 202)\r
+               Me.Button49.Name = "Button49"\r
+               Me.Button49.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button49.TabIndex = 48\r
+               Me.Button49.UseVisualStyleBackColor = True\r
+               '\r
+               'Button48\r
+               '\r
+               Me.Button48.Image = Global.mz80k_kbd.My.Resources.Resources.SPACE\r
+               Me.Button48.Location = New System.Drawing.Point(152, 202)\r
+               Me.Button48.Name = "Button48"\r
+               Me.Button48.Size = New System.Drawing.Size(98, 48)\r
+               Me.Button48.TabIndex = 47\r
+               Me.Button48.UseVisualStyleBackColor = True\r
+               '\r
+               'Button47\r
+               '\r
+               Me.Button47.Image = Global.mz80k_kbd.My.Resources.Resources.DELETE\r
+               Me.Button47.Location = New System.Drawing.Point(102, 202)\r
+               Me.Button47.Name = "Button47"\r
+               Me.Button47.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button47.TabIndex = 46\r
+               Me.Button47.UseVisualStyleBackColor = True\r
+               '\r
+               'Button46\r
+               '\r
+               Me.Button46.Image = Global.mz80k_kbd.My.Resources.Resources.HOME\r
+               Me.Button46.Location = New System.Drawing.Point(52, 202)\r
+               Me.Button46.Name = "Button46"\r
+               Me.Button46.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button46.TabIndex = 45\r
+               Me.Button46.UseVisualStyleBackColor = True\r
+               '\r
+               'Button45\r
+               '\r
+               Me.Button45.Appearance = System.Windows.Forms.Appearance.Button\r
+               Me.Button45.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT\r
+               Me.Button45.Location = New System.Drawing.Point(2, 202)\r
+               Me.Button45.Name = "Button45"\r
+               Me.Button45.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button45.TabIndex = 44\r
+               Me.Button45.UseVisualStyleBackColor = True\r
+               '\r
+               'Button44\r
+               '\r
+               Me.Button44.Image = Global.mz80k_kbd.My.Resources.Resources.KANA\r
+               Me.Button44.Location = New System.Drawing.Point(502, 152)\r
+               Me.Button44.Name = "Button44"\r
+               Me.Button44.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button44.TabIndex = 43\r
+               Me.Button44.UseVisualStyleBackColor = True\r
+               '\r
+               'Button43\r
+               '\r
+               Me.Button43.Image = Global.mz80k_kbd.My.Resources.Resources.SLASH\r
+               Me.Button43.Location = New System.Drawing.Point(452, 152)\r
+               Me.Button43.Name = "Button43"\r
+               Me.Button43.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button43.TabIndex = 42\r
+               Me.Button43.UseVisualStyleBackColor = True\r
+               '\r
+               'Button42\r
+               '\r
+               Me.Button42.Image = Global.mz80k_kbd.My.Resources.Resources.PERIOD\r
+               Me.Button42.Location = New System.Drawing.Point(402, 152)\r
+               Me.Button42.Name = "Button42"\r
+               Me.Button42.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button42.TabIndex = 41\r
+               Me.Button42.UseVisualStyleBackColor = True\r
+               '\r
+               'Button41\r
+               '\r
+               Me.Button41.Image = Global.mz80k_kbd.My.Resources.Resources.COMMA\r
+               Me.Button41.Location = New System.Drawing.Point(352, 152)\r
+               Me.Button41.Name = "Button41"\r
+               Me.Button41.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button41.TabIndex = 40\r
+               Me.Button41.UseVisualStyleBackColor = True\r
+               '\r
+               'Button40\r
+               '\r
+               Me.Button40.Image = Global.mz80k_kbd.My.Resources.Resources.M\r
+               Me.Button40.Location = New System.Drawing.Point(302, 152)\r
+               Me.Button40.Name = "Button40"\r
+               Me.Button40.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button40.TabIndex = 39\r
+               Me.Button40.UseVisualStyleBackColor = True\r
+               '\r
+               'Button39\r
+               '\r
+               Me.Button39.Image = Global.mz80k_kbd.My.Resources.Resources.N\r
+               Me.Button39.Location = New System.Drawing.Point(252, 152)\r
+               Me.Button39.Name = "Button39"\r
+               Me.Button39.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button39.TabIndex = 38\r
+               Me.Button39.UseVisualStyleBackColor = True\r
+               '\r
+               'Button38\r
+               '\r
+               Me.Button38.Image = Global.mz80k_kbd.My.Resources.Resources.B\r
+               Me.Button38.Location = New System.Drawing.Point(202, 152)\r
+               Me.Button38.Name = "Button38"\r
+               Me.Button38.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button38.TabIndex = 37\r
+               Me.Button38.UseVisualStyleBackColor = True\r
+               '\r
+               'Button37\r
+               '\r
+               Me.Button37.Image = Global.mz80k_kbd.My.Resources.Resources.V\r
+               Me.Button37.Location = New System.Drawing.Point(152, 152)\r
+               Me.Button37.Name = "Button37"\r
+               Me.Button37.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button37.TabIndex = 36\r
+               Me.Button37.UseVisualStyleBackColor = True\r
+               '\r
+               'Button36\r
+               '\r
+               Me.Button36.Image = Global.mz80k_kbd.My.Resources.Resources.C\r
+               Me.Button36.Location = New System.Drawing.Point(102, 152)\r
+               Me.Button36.Name = "Button36"\r
+               Me.Button36.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button36.TabIndex = 35\r
+               Me.Button36.UseVisualStyleBackColor = True\r
+               '\r
+               'Button35\r
+               '\r
+               Me.Button35.Image = Global.mz80k_kbd.My.Resources.Resources.X\r
+               Me.Button35.Location = New System.Drawing.Point(52, 152)\r
+               Me.Button35.Name = "Button35"\r
+               Me.Button35.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button35.TabIndex = 34\r
+               Me.Button35.UseVisualStyleBackColor = True\r
+               '\r
+               'Button34\r
+               '\r
+               Me.Button34.Image = Global.mz80k_kbd.My.Resources.Resources.Z\r
+               Me.Button34.Location = New System.Drawing.Point(2, 152)\r
+               Me.Button34.Name = "Button34"\r
+               Me.Button34.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button34.TabIndex = 33\r
+               Me.Button34.UseVisualStyleBackColor = True\r
+               '\r
+               'Button33\r
+               '\r
+               Me.Button33.Image = Global.mz80k_kbd.My.Resources.Resources.PLUS\r
+               Me.Button33.Location = New System.Drawing.Point(502, 102)\r
+               Me.Button33.Name = "Button33"\r
+               Me.Button33.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button33.TabIndex = 32\r
+               Me.Button33.UseVisualStyleBackColor = True\r
+               '\r
+               'Button32\r
+               '\r
+               Me.Button32.Image = Global.mz80k_kbd.My.Resources.Resources.SEMICOLON\r
+               Me.Button32.Location = New System.Drawing.Point(452, 102)\r
+               Me.Button32.Name = "Button32"\r
+               Me.Button32.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button32.TabIndex = 31\r
+               Me.Button32.UseVisualStyleBackColor = True\r
+               '\r
+               'Button31\r
+               '\r
+               Me.Button31.Image = Global.mz80k_kbd.My.Resources.Resources.L\r
+               Me.Button31.Location = New System.Drawing.Point(402, 102)\r
+               Me.Button31.Name = "Button31"\r
+               Me.Button31.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button31.TabIndex = 30\r
+               Me.Button31.UseVisualStyleBackColor = True\r
+               '\r
+               'Button30\r
+               '\r
+               Me.Button30.Image = Global.mz80k_kbd.My.Resources.Resources.K\r
+               Me.Button30.Location = New System.Drawing.Point(352, 102)\r
+               Me.Button30.Name = "Button30"\r
+               Me.Button30.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button30.TabIndex = 29\r
+               Me.Button30.UseVisualStyleBackColor = True\r
+               '\r
+               'Button29\r
+               '\r
+               Me.Button29.Image = Global.mz80k_kbd.My.Resources.Resources.J\r
+               Me.Button29.Location = New System.Drawing.Point(302, 102)\r
+               Me.Button29.Name = "Button29"\r
+               Me.Button29.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button29.TabIndex = 28\r
+               Me.Button29.UseVisualStyleBackColor = True\r
+               '\r
+               'Button28\r
+               '\r
+               Me.Button28.Image = Global.mz80k_kbd.My.Resources.Resources.H\r
+               Me.Button28.Location = New System.Drawing.Point(252, 102)\r
+               Me.Button28.Name = "Button28"\r
+               Me.Button28.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button28.TabIndex = 27\r
+               Me.Button28.UseVisualStyleBackColor = True\r
+               '\r
+               'Button27\r
+               '\r
+               Me.Button27.Image = Global.mz80k_kbd.My.Resources.Resources.G\r
+               Me.Button27.Location = New System.Drawing.Point(202, 102)\r
+               Me.Button27.Name = "Button27"\r
+               Me.Button27.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button27.TabIndex = 26\r
+               Me.Button27.UseVisualStyleBackColor = True\r
+               '\r
+               'Button26\r
+               '\r
+               Me.Button26.Image = Global.mz80k_kbd.My.Resources.Resources.F\r
+               Me.Button26.Location = New System.Drawing.Point(152, 102)\r
+               Me.Button26.Name = "Button26"\r
+               Me.Button26.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button26.TabIndex = 25\r
+               Me.Button26.UseVisualStyleBackColor = True\r
+               '\r
+               'Button25\r
+               '\r
+               Me.Button25.Image = Global.mz80k_kbd.My.Resources.Resources.D\r
+               Me.Button25.Location = New System.Drawing.Point(102, 102)\r
+               Me.Button25.Name = "Button25"\r
+               Me.Button25.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button25.TabIndex = 24\r
+               Me.Button25.UseVisualStyleBackColor = True\r
+               '\r
+               'Button24\r
+               '\r
+               Me.Button24.Image = Global.mz80k_kbd.My.Resources.Resources.S\r
+               Me.Button24.Location = New System.Drawing.Point(52, 102)\r
+               Me.Button24.Name = "Button24"\r
+               Me.Button24.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button24.TabIndex = 23\r
+               Me.Button24.UseVisualStyleBackColor = True\r
+               '\r
+               'Button23\r
+               '\r
+               Me.Button23.Image = Global.mz80k_kbd.My.Resources.Resources.A\r
+               Me.Button23.Location = New System.Drawing.Point(2, 102)\r
+               Me.Button23.Name = "Button23"\r
+               Me.Button23.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button23.TabIndex = 22\r
+               Me.Button23.UseVisualStyleBackColor = True\r
+               '\r
+               'Button22\r
+               '\r
+               Me.Button22.Image = Global.mz80k_kbd.My.Resources.Resources.EQUAL\r
+               Me.Button22.Location = New System.Drawing.Point(502, 52)\r
+               Me.Button22.Name = "Button22"\r
+               Me.Button22.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button22.TabIndex = 21\r
+               Me.Button22.UseVisualStyleBackColor = True\r
+               '\r
+               'Button21\r
+               '\r
+               Me.Button21.Image = Global.mz80k_kbd.My.Resources.Resources.P\r
+               Me.Button21.Location = New System.Drawing.Point(452, 52)\r
+               Me.Button21.Name = "Button21"\r
+               Me.Button21.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button21.TabIndex = 20\r
+               Me.Button21.UseVisualStyleBackColor = True\r
+               '\r
+               'Button20\r
+               '\r
+               Me.Button20.Image = Global.mz80k_kbd.My.Resources.Resources.O\r
+               Me.Button20.Location = New System.Drawing.Point(402, 52)\r
+               Me.Button20.Name = "Button20"\r
+               Me.Button20.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button20.TabIndex = 19\r
+               Me.Button20.UseVisualStyleBackColor = True\r
+               '\r
+               'Button19\r
+               '\r
+               Me.Button19.Image = Global.mz80k_kbd.My.Resources.Resources.I\r
+               Me.Button19.Location = New System.Drawing.Point(352, 52)\r
+               Me.Button19.Name = "Button19"\r
+               Me.Button19.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button19.TabIndex = 18\r
+               Me.Button19.UseVisualStyleBackColor = True\r
+               '\r
+               'Button18\r
+               '\r
+               Me.Button18.Image = Global.mz80k_kbd.My.Resources.Resources.U\r
+               Me.Button18.Location = New System.Drawing.Point(302, 52)\r
+               Me.Button18.Name = "Button18"\r
+               Me.Button18.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button18.TabIndex = 17\r
+               Me.Button18.UseVisualStyleBackColor = True\r
+               '\r
+               'Button17\r
+               '\r
+               Me.Button17.Image = Global.mz80k_kbd.My.Resources.Resources.Y\r
+               Me.Button17.Location = New System.Drawing.Point(252, 52)\r
+               Me.Button17.Name = "Button17"\r
+               Me.Button17.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button17.TabIndex = 16\r
+               Me.Button17.UseVisualStyleBackColor = True\r
+               '\r
+               'Button16\r
+               '\r
+               Me.Button16.Image = Global.mz80k_kbd.My.Resources.Resources.T\r
+               Me.Button16.Location = New System.Drawing.Point(202, 52)\r
+               Me.Button16.Name = "Button16"\r
+               Me.Button16.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button16.TabIndex = 15\r
+               Me.Button16.UseVisualStyleBackColor = True\r
+               '\r
+               'Button15\r
+               '\r
+               Me.Button15.Image = Global.mz80k_kbd.My.Resources.Resources.R\r
+               Me.Button15.Location = New System.Drawing.Point(152, 52)\r
+               Me.Button15.Name = "Button15"\r
+               Me.Button15.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button15.TabIndex = 14\r
+               Me.Button15.UseVisualStyleBackColor = True\r
+               '\r
+               'Button14\r
+               '\r
+               Me.Button14.Image = Global.mz80k_kbd.My.Resources.Resources.E\r
+               Me.Button14.Location = New System.Drawing.Point(102, 52)\r
+               Me.Button14.Name = "Button14"\r
+               Me.Button14.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button14.TabIndex = 13\r
+               Me.Button14.UseVisualStyleBackColor = True\r
+               '\r
+               'Button13\r
+               '\r
+               Me.Button13.Image = Global.mz80k_kbd.My.Resources.Resources.W\r
+               Me.Button13.Location = New System.Drawing.Point(52, 52)\r
+               Me.Button13.Name = "Button13"\r
+               Me.Button13.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button13.TabIndex = 12\r
+               Me.Button13.UseVisualStyleBackColor = True\r
+               '\r
+               'Button12\r
+               '\r
+               Me.Button12.Image = Global.mz80k_kbd.My.Resources.Resources.Q\r
+               Me.Button12.Location = New System.Drawing.Point(2, 52)\r
+               Me.Button12.Name = "Button12"\r
+               Me.Button12.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button12.TabIndex = 11\r
+               Me.Button12.UseVisualStyleBackColor = True\r
+               '\r
+               'Button11\r
+               '\r
+               Me.Button11.Image = Global.mz80k_kbd.My.Resources.Resources.MINUS\r
+               Me.Button11.Location = New System.Drawing.Point(502, 2)\r
+               Me.Button11.Name = "Button11"\r
+               Me.Button11.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button11.TabIndex = 10\r
+               Me.Button11.UseVisualStyleBackColor = True\r
+               '\r
+               'Button10\r
+               '\r
+               Me.Button10.Image = Global.mz80k_kbd.My.Resources.Resources._0\r
+               Me.Button10.Location = New System.Drawing.Point(452, 2)\r
+               Me.Button10.Name = "Button10"\r
+               Me.Button10.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button10.TabIndex = 9\r
+               Me.Button10.UseVisualStyleBackColor = True\r
+               '\r
+               'Button9\r
+               '\r
+               Me.Button9.Image = Global.mz80k_kbd.My.Resources.Resources._9\r
+               Me.Button9.Location = New System.Drawing.Point(402, 2)\r
+               Me.Button9.Name = "Button9"\r
+               Me.Button9.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button9.TabIndex = 8\r
+               Me.Button9.UseVisualStyleBackColor = True\r
+               '\r
+               'Button8\r
+               '\r
+               Me.Button8.Image = Global.mz80k_kbd.My.Resources.Resources._8\r
+               Me.Button8.Location = New System.Drawing.Point(352, 2)\r
+               Me.Button8.Name = "Button8"\r
+               Me.Button8.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button8.TabIndex = 7\r
+               Me.Button8.UseVisualStyleBackColor = True\r
+               '\r
+               'Button7\r
+               '\r
+               Me.Button7.Image = Global.mz80k_kbd.My.Resources.Resources._7\r
+               Me.Button7.Location = New System.Drawing.Point(302, 2)\r
+               Me.Button7.Name = "Button7"\r
+               Me.Button7.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button7.TabIndex = 6\r
+               Me.Button7.UseVisualStyleBackColor = True\r
+               '\r
+               'Button6\r
+               '\r
+               Me.Button6.Image = Global.mz80k_kbd.My.Resources.Resources._6\r
+               Me.Button6.Location = New System.Drawing.Point(252, 2)\r
+               Me.Button6.Name = "Button6"\r
+               Me.Button6.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button6.TabIndex = 5\r
+               Me.Button6.UseVisualStyleBackColor = True\r
+               '\r
+               'Button5\r
+               '\r
+               Me.Button5.Image = Global.mz80k_kbd.My.Resources.Resources._5\r
+               Me.Button5.Location = New System.Drawing.Point(202, 2)\r
+               Me.Button5.Name = "Button5"\r
+               Me.Button5.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button5.TabIndex = 4\r
+               Me.Button5.UseVisualStyleBackColor = True\r
+               '\r
+               'Button4\r
+               '\r
+               Me.Button4.Image = Global.mz80k_kbd.My.Resources.Resources._4\r
+               Me.Button4.Location = New System.Drawing.Point(152, 2)\r
+               Me.Button4.Name = "Button4"\r
+               Me.Button4.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button4.TabIndex = 3\r
+               Me.Button4.UseVisualStyleBackColor = True\r
+               '\r
+               'Button3\r
+               '\r
+               Me.Button3.Image = Global.mz80k_kbd.My.Resources.Resources._3\r
+               Me.Button3.Location = New System.Drawing.Point(102, 2)\r
+               Me.Button3.Name = "Button3"\r
+               Me.Button3.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button3.TabIndex = 2\r
+               Me.Button3.UseVisualStyleBackColor = True\r
+               '\r
+               'Button2\r
+               '\r
+               Me.Button2.Image = Global.mz80k_kbd.My.Resources.Resources._2\r
+               Me.Button2.Location = New System.Drawing.Point(52, 2)\r
+               Me.Button2.Name = "Button2"\r
+               Me.Button2.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button2.TabIndex = 1\r
+               Me.Button2.UseVisualStyleBackColor = True\r
+               '\r
+               'Button1\r
+               '\r
+               Me.Button1.Image = Global.mz80k_kbd.My.Resources.Resources._1\r
+               Me.Button1.Location = New System.Drawing.Point(2, 2)\r
+               Me.Button1.Name = "Button1"\r
+               Me.Button1.Size = New System.Drawing.Size(48, 48)\r
+               Me.Button1.TabIndex = 0\r
+               Me.Button1.UseVisualStyleBackColor = True\r
+               '\r
+               'Form1\r
+               '\r
+               Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 12.0!)\r
+               Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font\r
+               Me.ClientSize = New System.Drawing.Size(809, 251)\r
+               Me.Controls.Add(Me.Button78)\r
+               Me.Controls.Add(Me.Button77)\r
+               Me.Controls.Add(Me.Button76)\r
+               Me.Controls.Add(Me.Button75)\r
+               Me.Controls.Add(Me.Button74)\r
+               Me.Controls.Add(Me.Button73)\r
+               Me.Controls.Add(Me.Button72)\r
+               Me.Controls.Add(Me.Button71)\r
+               Me.Controls.Add(Me.Button70)\r
+               Me.Controls.Add(Me.Button69)\r
+               Me.Controls.Add(Me.Button68)\r
+               Me.Controls.Add(Me.Button67)\r
+               Me.Controls.Add(Me.Button66)\r
+               Me.Controls.Add(Me.Button65)\r
+               Me.Controls.Add(Me.Button64)\r
+               Me.Controls.Add(Me.Button63)\r
+               Me.Controls.Add(Me.Button62)\r
+               Me.Controls.Add(Me.Button61)\r
+               Me.Controls.Add(Me.Button60)\r
+               Me.Controls.Add(Me.Button59)\r
+               Me.Controls.Add(Me.Button58)\r
+               Me.Controls.Add(Me.Button57)\r
+               Me.Controls.Add(Me.Button56)\r
+               Me.Controls.Add(Me.Button55)\r
+               Me.Controls.Add(Me.Button54)\r
+               Me.Controls.Add(Me.Button53)\r
+               Me.Controls.Add(Me.Button52)\r
+               Me.Controls.Add(Me.Button51)\r
+               Me.Controls.Add(Me.Button50)\r
+               Me.Controls.Add(Me.Button49)\r
+               Me.Controls.Add(Me.Button48)\r
+               Me.Controls.Add(Me.Button47)\r
+               Me.Controls.Add(Me.Button46)\r
+               Me.Controls.Add(Me.Button45)\r
+               Me.Controls.Add(Me.Button44)\r
+               Me.Controls.Add(Me.Button43)\r
+               Me.Controls.Add(Me.Button42)\r
+               Me.Controls.Add(Me.Button41)\r
+               Me.Controls.Add(Me.Button40)\r
+               Me.Controls.Add(Me.Button39)\r
+               Me.Controls.Add(Me.Button38)\r
+               Me.Controls.Add(Me.Button37)\r
+               Me.Controls.Add(Me.Button36)\r
+               Me.Controls.Add(Me.Button35)\r
+               Me.Controls.Add(Me.Button34)\r
+               Me.Controls.Add(Me.Button33)\r
+               Me.Controls.Add(Me.Button32)\r
+               Me.Controls.Add(Me.Button31)\r
+               Me.Controls.Add(Me.Button30)\r
+               Me.Controls.Add(Me.Button29)\r
+               Me.Controls.Add(Me.Button28)\r
+               Me.Controls.Add(Me.Button27)\r
+               Me.Controls.Add(Me.Button26)\r
+               Me.Controls.Add(Me.Button25)\r
+               Me.Controls.Add(Me.Button24)\r
+               Me.Controls.Add(Me.Button23)\r
+               Me.Controls.Add(Me.Button22)\r
+               Me.Controls.Add(Me.Button21)\r
+               Me.Controls.Add(Me.Button20)\r
+               Me.Controls.Add(Me.Button19)\r
+               Me.Controls.Add(Me.Button18)\r
+               Me.Controls.Add(Me.Button17)\r
+               Me.Controls.Add(Me.Button16)\r
+               Me.Controls.Add(Me.Button15)\r
+               Me.Controls.Add(Me.Button14)\r
+               Me.Controls.Add(Me.Button13)\r
+               Me.Controls.Add(Me.Button12)\r
+               Me.Controls.Add(Me.Button11)\r
+               Me.Controls.Add(Me.Button10)\r
+               Me.Controls.Add(Me.Button9)\r
+               Me.Controls.Add(Me.Button8)\r
+               Me.Controls.Add(Me.Button7)\r
+               Me.Controls.Add(Me.Button6)\r
+               Me.Controls.Add(Me.Button5)\r
+               Me.Controls.Add(Me.Button4)\r
+               Me.Controls.Add(Me.Button3)\r
+               Me.Controls.Add(Me.Button2)\r
+               Me.Controls.Add(Me.Button1)\r
+               Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle\r
+               Me.KeyPreview = True\r
+               Me.MaximizeBox = False\r
+               Me.MinimizeBox = False\r
+               Me.Name = "Form1"\r
+               Me.Text = "MZ-80K Software Keyboard"\r
+               Me.ResumeLayout(False)\r
+\r
+       End Sub\r
+       Friend WithEvents Button1 As System.Windows.Forms.Button\r
+       Friend WithEvents Button2 As System.Windows.Forms.Button\r
+       Friend WithEvents Button3 As System.Windows.Forms.Button\r
+       Friend WithEvents Button4 As System.Windows.Forms.Button\r
+       Friend WithEvents Button5 As System.Windows.Forms.Button\r
+       Friend WithEvents Button6 As System.Windows.Forms.Button\r
+       Friend WithEvents Button7 As System.Windows.Forms.Button\r
+       Friend WithEvents Button8 As System.Windows.Forms.Button\r
+       Friend WithEvents Button9 As System.Windows.Forms.Button\r
+       Friend WithEvents Button10 As System.Windows.Forms.Button\r
+       Friend WithEvents Button11 As System.Windows.Forms.Button\r
+       Friend WithEvents Button12 As System.Windows.Forms.Button\r
+       Friend WithEvents Button13 As System.Windows.Forms.Button\r
+       Friend WithEvents Button14 As System.Windows.Forms.Button\r
+       Friend WithEvents Button15 As System.Windows.Forms.Button\r
+       Friend WithEvents Button16 As System.Windows.Forms.Button\r
+       Friend WithEvents Button17 As System.Windows.Forms.Button\r
+       Friend WithEvents Button18 As System.Windows.Forms.Button\r
+       Friend WithEvents Button19 As System.Windows.Forms.Button\r
+       Friend WithEvents Button20 As System.Windows.Forms.Button\r
+       Friend WithEvents Button21 As System.Windows.Forms.Button\r
+       Friend WithEvents Button22 As System.Windows.Forms.Button\r
+       Friend WithEvents Button23 As System.Windows.Forms.Button\r
+       Friend WithEvents Button24 As System.Windows.Forms.Button\r
+       Friend WithEvents Button25 As System.Windows.Forms.Button\r
+       Friend WithEvents Button26 As System.Windows.Forms.Button\r
+       Friend WithEvents Button27 As System.Windows.Forms.Button\r
+       Friend WithEvents Button28 As System.Windows.Forms.Button\r
+       Friend WithEvents Button29 As System.Windows.Forms.Button\r
+       Friend WithEvents Button30 As System.Windows.Forms.Button\r
+       Friend WithEvents Button31 As System.Windows.Forms.Button\r
+       Friend WithEvents Button32 As System.Windows.Forms.Button\r
+       Friend WithEvents Button33 As System.Windows.Forms.Button\r
+       Friend WithEvents Button34 As System.Windows.Forms.Button\r
+       Friend WithEvents Button35 As System.Windows.Forms.Button\r
+       Friend WithEvents Button36 As System.Windows.Forms.Button\r
+       Friend WithEvents Button37 As System.Windows.Forms.Button\r
+       Friend WithEvents Button38 As System.Windows.Forms.Button\r
+       Friend WithEvents Button39 As System.Windows.Forms.Button\r
+       Friend WithEvents Button40 As System.Windows.Forms.Button\r
+       Friend WithEvents Button41 As System.Windows.Forms.Button\r
+       Friend WithEvents Button42 As System.Windows.Forms.Button\r
+       Friend WithEvents Button43 As System.Windows.Forms.Button\r
+       Friend WithEvents Button44 As System.Windows.Forms.Button\r
+       Friend WithEvents Button45 As System.Windows.Forms.CheckBox\r
+       Friend WithEvents Button46 As System.Windows.Forms.Button\r
+       Friend WithEvents Button47 As System.Windows.Forms.Button\r
+       Friend WithEvents Button48 As System.Windows.Forms.Button\r
+       Friend WithEvents Button49 As System.Windows.Forms.Button\r
+       Friend WithEvents Button50 As System.Windows.Forms.Button\r
+       Friend WithEvents Button51 As System.Windows.Forms.Button\r
+       Friend WithEvents Button52 As System.Windows.Forms.Button\r
+       Friend WithEvents Button53 As System.Windows.Forms.CheckBox\r
+       Friend WithEvents Button54 As System.Windows.Forms.Button\r
+       Friend WithEvents Button55 As System.Windows.Forms.Button\r
+       Friend WithEvents Button56 As System.Windows.Forms.Button\r
+       Friend WithEvents Button57 As System.Windows.Forms.Button\r
+       Friend WithEvents Button58 As System.Windows.Forms.Button\r
+       Friend WithEvents Button59 As System.Windows.Forms.Button\r
+       Friend WithEvents Button60 As System.Windows.Forms.Button\r
+       Friend WithEvents Button61 As System.Windows.Forms.Button\r
+       Friend WithEvents Button62 As System.Windows.Forms.Button\r
+       Friend WithEvents Button63 As System.Windows.Forms.Button\r
+       Friend WithEvents Button64 As System.Windows.Forms.Button\r
+       Friend WithEvents Button65 As System.Windows.Forms.Button\r
+       Friend WithEvents Button66 As System.Windows.Forms.Button\r
+       Friend WithEvents Button67 As System.Windows.Forms.Button\r
+       Friend WithEvents Button68 As System.Windows.Forms.Button\r
+       Friend WithEvents Button69 As System.Windows.Forms.Button\r
+       Friend WithEvents Button70 As System.Windows.Forms.Button\r
+       Friend WithEvents Button71 As System.Windows.Forms.Button\r
+       Friend WithEvents Button72 As System.Windows.Forms.Button\r
+       Friend WithEvents Button73 As System.Windows.Forms.Button\r
+       Friend WithEvents Button74 As System.Windows.Forms.Button\r
+       Friend WithEvents Button75 As System.Windows.Forms.Button\r
+       Friend WithEvents Button76 As System.Windows.Forms.Button\r
+       Friend WithEvents Button77 As System.Windows.Forms.Button\r
+       Friend WithEvents Button78 As System.Windows.Forms.Button\r
+\r
+End Class\r
index 19dc0dd..ff31a6d 100644 (file)
-<?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=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>
+<?xml version="1.0" encoding="utf-8"?>\r
+<root>\r
+  <!-- \r
+    Microsoft ResX Schema \r
+    \r
+    Version 2.0\r
+    \r
+    The primary goals of this format is to allow a simple XML format \r
+    that is mostly human readable. The generation and parsing of the \r
+    various data types are done through the TypeConverter classes \r
+    associated with the data types.\r
+    \r
+    Example:\r
+    \r
+    ... ado.net/XML headers & schema ...\r
+    <resheader name="resmimetype">text/microsoft-resx</resheader>\r
+    <resheader name="version">2.0</resheader>\r
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>\r
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>\r
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>\r
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>\r
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">\r
+        <value>[base64 mime encoded serialized .NET Framework object]</value>\r
+    </data>\r
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">\r
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>\r
+        <comment>This is a comment</comment>\r
+    </data>\r
+                \r
+    There are any number of "resheader" rows that contain simple \r
+    name/value pairs.\r
+    \r
+    Each data row contains a name, and value. The row also contains a \r
+    type or mimetype. Type corresponds to a .NET class that support \r
+    text/value conversion through the TypeConverter architecture. \r
+    Classes that don't support this are serialized and stored with the \r
+    mimetype set.\r
+    \r
+    The mimetype is used for serialized objects, and tells the \r
+    ResXResourceReader how to depersist the object. This is currently not \r
+    extensible. For a given mimetype the value must be set accordingly:\r
+    \r
+    Note - application/x-microsoft.net.object.binary.base64 is the format \r
+    that the ResXResourceWriter will generate, however the reader can \r
+    read any of the formats listed below.\r
+    \r
+    mimetype: application/x-microsoft.net.object.binary.base64\r
+    value   : The object must be serialized with \r
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter\r
+            : and then encoded with base64 encoding.\r
+    \r
+    mimetype: application/x-microsoft.net.object.soap.base64\r
+    value   : The object must be serialized with \r
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter\r
+            : and then encoded with base64 encoding.\r
+\r
+    mimetype: application/x-microsoft.net.object.bytearray.base64\r
+    value   : The object must be serialized into a byte array \r
+            : using a System.ComponentModel.TypeConverter\r
+            : and then encoded with base64 encoding.\r
+    -->\r
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">\r
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />\r
+    <xsd:element name="root" msdata:IsDataSet="true">\r
+      <xsd:complexType>\r
+        <xsd:choice maxOccurs="unbounded">\r
+          <xsd:element name="metadata">\r
+            <xsd:complexType>\r
+              <xsd:sequence>\r
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />\r
+              </xsd:sequence>\r
+              <xsd:attribute name="name" use="required" type="xsd:string" />\r
+              <xsd:attribute name="type" type="xsd:string" />\r
+              <xsd:attribute name="mimetype" type="xsd:string" />\r
+              <xsd:attribute ref="xml:space" />\r
+            </xsd:complexType>\r
+          </xsd:element>\r
+          <xsd:element name="assembly">\r
+            <xsd:complexType>\r
+              <xsd:attribute name="alias" type="xsd:string" />\r
+              <xsd:attribute name="name" type="xsd:string" />\r
+            </xsd:complexType>\r
+          </xsd:element>\r
+          <xsd:element name="data">\r
+            <xsd:complexType>\r
+              <xsd:sequence>\r
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />\r
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />\r
+              </xsd:sequence>\r
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />\r
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />\r
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />\r
+              <xsd:attribute ref="xml:space" />\r
+            </xsd:complexType>\r
+          </xsd:element>\r
+          <xsd:element name="resheader">\r
+            <xsd:complexType>\r
+              <xsd:sequence>\r
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />\r
+              </xsd:sequence>\r
+              <xsd:attribute name="name" type="xsd:string" use="required" />\r
+            </xsd:complexType>\r
+          </xsd:element>\r
+        </xsd:choice>\r
+      </xsd:complexType>\r
+    </xsd:element>\r
+  </xsd:schema>\r
+  <resheader name="resmimetype">\r
+    <value>text/microsoft-resx</value>\r
+  </resheader>\r
+  <resheader name="version">\r
+    <value>2.0</value>\r
+  </resheader>\r
+  <resheader name="reader">\r
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+  </resheader>\r
+  <resheader name="writer">\r
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+  </resheader>\r
 </root>
\ No newline at end of file
index 3f374c0..2f1daa0 100644 (file)
-Option Strict On
-Option Explicit On
-
-Public Class Form1
-       Private Declare Function PostMessage Lib "user32.dll" Alias "PostMessageA" (ByVal hWnd As IntPtr, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As IntPtr) As IntPtr
-       Private Const WM_KEYDOWN As Integer = &H100
-       Private Const WM_KEYUP As Integer = &H101
-       Private mblnSemaphore As Boolean = False
-
-       Private Function mfintGetWindowHandle() As IntPtr
-               For Each objProcess As Diagnostics.Process In Diagnostics.Process.GetProcesses()
-                       If objProcess.MainWindowTitle.StartsWith("SHARP MZ-80K/C - ") Then
-                               Return objProcess.MainWindowHandle
-                       End If
-               Next
-               Return IntPtr.Zero
-       End Function
-
-       Private Sub msubKeyDown(ByVal vintKeyCode As Integer)
-               Dim hWnd As IntPtr = mfintGetWindowHandle()
-               If hWnd <> IntPtr.Zero Then
-                       PostMessage(hWnd, WM_KEYDOWN, vintKeyCode, IntPtr.Zero)
-               End If
-       End Sub
-
-       Private Sub msubKeyUp(ByVal vintKeyCode As Integer)
-               Dim hWnd As IntPtr = mfintGetWindowHandle()
-               If hWnd <> IntPtr.Zero Then
-                       PostMessage(hWnd, WM_KEYUP, vintKeyCode, IntPtr.Zero)
-               End If
-       End Sub
-
-       Private Sub msubKeyHit(ByVal vintKeyCode As Integer)
-               Dim hWnd As IntPtr = mfintGetWindowHandle()
-               If hWnd <> IntPtr.Zero Then
-                       PostMessage(hWnd, WM_KEYDOWN, vintKeyCode, IntPtr.Zero)
-                       Threading.Thread.Sleep(100)
-                       PostMessage(hWnd, WM_KEYUP, vintKeyCode, IntPtr.Zero)
-               End If
-       End Sub
-
-       Private Sub msubUpdateShift(ByVal vblnPrevPressed As Boolean)
-               Dim blnPressed As Boolean = (Button45.Checked OrElse Button53.Checked)
-               If Not vblnPrevPressed AndAlso blnPressed Then
-                       msubKeyDown(&H10)
-               ElseIf vblnPrevPressed AndAlso Not blnPressed Then
-                       msubKeyUp(&H10)
-               End If
-       End Sub
-
-       Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
-               Me.ActiveControl = Nothing
-       End Sub
-
-       Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
-               If e.KeyCode = Keys.ShiftKey Then
-                       Dim blnPrevPressed As Boolean = (Button45.Checked OrElse Button53.Checked)
-                       Try
-                               mblnSemaphore = True
-                               Button45.Checked = True
-                               Button45.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT_PRESSED
-                               Button53.Checked = True
-                               Button53.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT_PRESSED
-                       Catch ex As Exception
-                       Finally
-                               mblnSemaphore = False
-                       End Try
-                       msubUpdateShift(blnPrevPressed)
-               Else
-                       msubKeyDown(e.KeyCode)
-               End If
-       End Sub
-
-       Private Sub Form1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp
-               If e.KeyCode = Keys.ShiftKey Then
-                       Dim blnPrevPressed As Boolean = (Button45.Checked OrElse Button53.Checked)
-                       Try
-                               mblnSemaphore = True
-                               Button45.Checked = False
-                               Button45.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT
-                               Button53.Checked = False
-                               Button53.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT
-                       Catch ex As Exception
-                       Finally
-                               mblnSemaphore = False
-                       End Try
-                       msubUpdateShift(blnPrevPressed)
-               ElseIf e.KeyCode = Keys.Up OrElse e.KeyCode = Keys.Down OrElse e.KeyCode = Keys.Left OrElse e.KeyCode = Keys.Right Then
-                       msubKeyHit(e.KeyCode)
-               Else
-                       msubKeyUp(e.KeyCode)
-               End If
-       End Sub
-
-       Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
-               msubKeyHit(Asc("1"c))
-       End Sub
-
-       Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
-               msubKeyHit(Asc("2"c))
-       End Sub
-
-       Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
-               msubKeyHit(Asc("3"c))
-       End Sub
-
-       Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
-               msubKeyHit(Asc("4"c))
-       End Sub
-
-       Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
-               msubKeyHit(Asc("5"c))
-       End Sub
-
-       Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
-               msubKeyHit(Asc("6"c))
-       End Sub
-
-       Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click
-               msubKeyHit(Asc("7"c))
-       End Sub
-
-       Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click
-               msubKeyHit(Asc("8"c))
-       End Sub
-
-       Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click
-               msubKeyHit(Asc("9"c))
-       End Sub
-
-       Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click
-               msubKeyHit(Asc("0"c))
-       End Sub
-
-       Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click
-               msubKeyHit(&HBD)
-       End Sub
-
-       Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click
-               msubKeyHit(Asc("Q"c))
-       End Sub
-
-       Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click
-               msubKeyHit(Asc("W"c))
-       End Sub
-
-       Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click
-               msubKeyHit(Asc("E"c))
-       End Sub
-
-       Private Sub Button15_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button15.Click
-               msubKeyHit(Asc("R"c))
-       End Sub
-
-       Private Sub Button16_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button16.Click
-               msubKeyHit(Asc("T"c))
-       End Sub
-
-       Private Sub Button17_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button17.Click
-               msubKeyHit(Asc("Y"c))
-       End Sub
-
-       Private Sub Button18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button18.Click
-               msubKeyHit(Asc("U"c))
-       End Sub
-
-       Private Sub Button19_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button19.Click
-               msubKeyHit(Asc("I"c))
-       End Sub
-
-       Private Sub Button20_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button20.Click
-               msubKeyHit(Asc("O"c))
-       End Sub
-
-       Private Sub Button21_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button21.Click
-               msubKeyHit(Asc("P"c))
-       End Sub
-
-       Private Sub Button22_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button22.Click
-               msubKeyHit(&HC0)
-       End Sub
-
-       Private Sub Button23_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button23.Click
-               msubKeyHit(Asc("A"c))
-       End Sub
-
-       Private Sub Button24_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button24.Click
-               msubKeyHit(Asc("S"c))
-       End Sub
-
-       Private Sub Button25_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button25.Click
-               msubKeyHit(Asc("D"c))
-       End Sub
-
-       Private Sub Button26_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button26.Click
-               msubKeyHit(Asc("F"c))
-       End Sub
-
-       Private Sub Button27_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button27.Click
-               msubKeyHit(Asc("G"c))
-       End Sub
-
-       Private Sub Button28_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button28.Click
-               msubKeyHit(Asc("H"c))
-       End Sub
-
-       Private Sub Button29_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button29.Click
-               msubKeyHit(Asc("J"c))
-       End Sub
-
-       Private Sub Button30_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button30.Click
-               msubKeyHit(Asc("K"c))
-       End Sub
-
-       Private Sub Button31_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button31.Click
-               msubKeyHit(Asc("L"c))
-       End Sub
-
-       Private Sub Button32_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button32.Click
-               msubKeyHit(&HBB)
-       End Sub
-
-       Private Sub Button33_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button33.Click
-               msubKeyHit(&HBA)
-       End Sub
-
-       Private Sub Button34_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button34.Click
-               msubKeyHit(Asc("Z"c))
-       End Sub
-
-       Private Sub Button35_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button35.Click
-               msubKeyHit(Asc("X"c))
-       End Sub
-
-       Private Sub Button36_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button36.Click
-               msubKeyHit(Asc("C"c))
-       End Sub
-
-       Private Sub Button37_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button37.Click
-               msubKeyHit(Asc("V"c))
-       End Sub
-
-       Private Sub Button38_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button38.Click
-               msubKeyHit(Asc("B"c))
-       End Sub
-
-       Private Sub Button39_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button39.Click
-               msubKeyHit(Asc("N"c))
-       End Sub
-
-       Private Sub Button40_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button40.Click
-               msubKeyHit(Asc("M"c))
-       End Sub
-
-       Private Sub Button41_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button41.Click
-               msubKeyHit(&HBC)
-       End Sub
-
-       Private Sub Button42_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button42.Click
-               msubKeyHit(&HBE)
-       End Sub
-
-       Private Sub Button43_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button43.Click
-               msubKeyHit(&HBF)
-       End Sub
-
-       Private Sub Button44_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button44.Click
-               msubKeyHit(&H15)
-       End Sub
-
-       Private Sub Button45_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button45.CheckedChanged
-               If mblnSemaphore Then Exit Sub
-               Dim blnPrevPressed As Boolean = (Not Button45.Checked OrElse Button53.Checked)
-               If Button45.Checked Then
-                       Button45.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT_PRESSED
-               Else
-                       Button45.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT
-               End If
-               msubUpdateShift(blnPrevPressed)
-       End Sub
-
-       Private Sub Button46_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button46.Click
-               msubKeyHit(&H24)
-       End Sub
-
-       Private Sub Button47_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button47.Click
-               msubKeyHit(&H2E)
-       End Sub
-
-       Private Sub Button48_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button48.Click
-               msubKeyHit(&H20)
-       End Sub
-
-       Private Sub Button49_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button49.Click
-               msubKeyHit(&H28)
-       End Sub
-
-       Private Sub Button50_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button50.Click
-               msubKeyHit(&H27)
-       End Sub
-
-       Private Sub Button51_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button51.Click
-               msubKeyHit(&H13)
-       End Sub
-
-       Private Sub Button52_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button52.Click
-               msubKeyHit(&HD)
-       End Sub
-
-       Private Sub Button53_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button53.CheckedChanged
-               If mblnSemaphore Then Exit Sub
-               Dim blnPrevPressed As Boolean = (Button45.Checked OrElse Not Button53.Checked)
-               If Button53.Checked Then
-                       Button53.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT_PRESSED
-               Else
-                       Button53.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT
-               End If
-               msubUpdateShift(blnPrevPressed)
-       End Sub
-
-       Private Sub Button54_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button54.Click
-               msubKeyHit(&HDE)
-       End Sub
-
-       Private Sub Button55_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button55.Click
-               msubKeyHit(&H70)
-       End Sub
-
-       Private Sub Button56_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button56.Click
-               msubKeyHit(&H6F)
-       End Sub
-
-       Private Sub Button57_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button57.Click
-               msubKeyHit(&H6A)
-       End Sub
-
-       Private Sub Button58_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button58.Click
-               msubKeyHit(&HDC)
-       End Sub
-
-       Private Sub Button59_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button59.Click
-               msubKeyHit(&H71)
-       End Sub
-
-       Private Sub Button60_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button60.Click
-               msubKeyHit(&H67)
-       End Sub
-
-       Private Sub Button61_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button61.Click
-               msubKeyHit(&H68)
-       End Sub
-
-       Private Sub Button62_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button62.Click
-               msubKeyHit(&HDB)
-       End Sub
-
-       Private Sub Button63_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button63.Click
-               msubKeyHit(&H72)
-       End Sub
-
-       Private Sub Button64_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button64.Click
-               msubKeyHit(&H64)
-       End Sub
-
-       Private Sub Button65_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button65.Click
-               msubKeyHit(&H65)
-       End Sub
-
-       Private Sub Button66_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button66.Click
-               msubKeyHit(&HDD)
-       End Sub
-
-       Private Sub Button67_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button67.Click
-               msubKeyHit(&H73)
-       End Sub
-
-       Private Sub Button68_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button68.Click
-               msubKeyHit(&H61)
-       End Sub
-
-       Private Sub Button69_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button69.Click
-               msubKeyHit(&H62)
-       End Sub
-
-       Private Sub Button70_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button70.Click
-               msubKeyHit(&HE2)
-       End Sub
-
-       Private Sub Button71_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button71.Click
-               msubKeyHit(&H74)
-       End Sub
-
-       Private Sub Button72_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button72.Click
-               msubKeyHit(&H75)
-       End Sub
-
-       Private Sub Button73_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button73.Click
-               msubKeyHit(&H76)
-       End Sub
-
-       Private Sub Button74_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button74.Click
-               msubKeyHit(&H6D)
-       End Sub
-
-       Private Sub Button75_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button75.Click
-               msubKeyHit(&H69)
-       End Sub
-
-       Private Sub Button76_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button76.Click
-               msubKeyHit(&H66)
-       End Sub
-
-       Private Sub Button77_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button77.Click
-               msubKeyHit(&H63)
-       End Sub
-
-       Private Sub Button78_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button78.Click
-               msubKeyHit(&H77)
-       End Sub
-End Class
+Option Strict On\r
+Option Explicit On\r
+\r
+Public Class Form1\r
+       Private Declare Function PostMessage Lib "user32.dll" Alias "PostMessageA" (ByVal hWnd As IntPtr, ByVal wMsg As Integer, ByVal wParam As Integer, ByVal lParam As IntPtr) As IntPtr\r
+       Private Const WM_KEYDOWN As Integer = &H100\r
+       Private Const WM_KEYUP As Integer = &H101\r
+       Private mblnSemaphore As Boolean = False\r
+\r
+       Private Function mfintGetWindowHandle() As IntPtr\r
+               For Each objProcess As Diagnostics.Process In Diagnostics.Process.GetProcesses()\r
+                       If objProcess.MainWindowTitle.StartsWith("SHARP MZ-80K/C - ") Then\r
+                               Return objProcess.MainWindowHandle\r
+                       End If\r
+               Next\r
+               Return IntPtr.Zero\r
+       End Function\r
+\r
+       Private Sub msubKeyDown(ByVal vintKeyCode As Integer)\r
+               Dim hWnd As IntPtr = mfintGetWindowHandle()\r
+               If hWnd <> IntPtr.Zero Then\r
+                       PostMessage(hWnd, WM_KEYDOWN, vintKeyCode, IntPtr.Zero)\r
+               End If\r
+       End Sub\r
+\r
+       Private Sub msubKeyUp(ByVal vintKeyCode As Integer)\r
+               Dim hWnd As IntPtr = mfintGetWindowHandle()\r
+               If hWnd <> IntPtr.Zero Then\r
+                       PostMessage(hWnd, WM_KEYUP, vintKeyCode, IntPtr.Zero)\r
+               End If\r
+       End Sub\r
+\r
+       Private Sub msubKeyHit(ByVal vintKeyCode As Integer)\r
+               Dim hWnd As IntPtr = mfintGetWindowHandle()\r
+               If hWnd <> IntPtr.Zero Then\r
+                       PostMessage(hWnd, WM_KEYDOWN, vintKeyCode, IntPtr.Zero)\r
+                       Threading.Thread.Sleep(100)\r
+                       PostMessage(hWnd, WM_KEYUP, vintKeyCode, IntPtr.Zero)\r
+               End If\r
+       End Sub\r
+\r
+       Private Sub msubUpdateShift(ByVal vblnPrevPressed As Boolean)\r
+               Dim blnPressed As Boolean = (Button45.Checked OrElse Button53.Checked)\r
+               If Not vblnPrevPressed AndAlso blnPressed Then\r
+                       msubKeyDown(&H10)\r
+               ElseIf vblnPrevPressed AndAlso Not blnPressed Then\r
+                       msubKeyUp(&H10)\r
+               End If\r
+       End Sub\r
+\r
+       Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load\r
+               Me.ActiveControl = Nothing\r
+       End Sub\r
+\r
+       Private Sub Form1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown\r
+               If e.KeyCode = Keys.ShiftKey Then\r
+                       Dim blnPrevPressed As Boolean = (Button45.Checked OrElse Button53.Checked)\r
+                       Try\r
+                               mblnSemaphore = True\r
+                               Button45.Checked = True\r
+                               Button45.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT_PRESSED\r
+                               Button53.Checked = True\r
+                               Button53.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT_PRESSED\r
+                       Catch ex As Exception\r
+                       Finally\r
+                               mblnSemaphore = False\r
+                       End Try\r
+                       msubUpdateShift(blnPrevPressed)\r
+               Else\r
+                       msubKeyDown(e.KeyCode)\r
+               End If\r
+       End Sub\r
+\r
+       Private Sub Form1_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles Me.KeyUp\r
+               If e.KeyCode = Keys.ShiftKey Then\r
+                       Dim blnPrevPressed As Boolean = (Button45.Checked OrElse Button53.Checked)\r
+                       Try\r
+                               mblnSemaphore = True\r
+                               Button45.Checked = False\r
+                               Button45.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT\r
+                               Button53.Checked = False\r
+                               Button53.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT\r
+                       Catch ex As Exception\r
+                       Finally\r
+                               mblnSemaphore = False\r
+                       End Try\r
+                       msubUpdateShift(blnPrevPressed)\r
+               ElseIf e.KeyCode = Keys.Up OrElse e.KeyCode = Keys.Down OrElse e.KeyCode = Keys.Left OrElse e.KeyCode = Keys.Right Then\r
+                       msubKeyHit(e.KeyCode)\r
+               Else\r
+                       msubKeyUp(e.KeyCode)\r
+               End If\r
+       End Sub\r
+\r
+       Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click\r
+               msubKeyHit(Asc("1"c))\r
+       End Sub\r
+\r
+       Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click\r
+               msubKeyHit(Asc("2"c))\r
+       End Sub\r
+\r
+       Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click\r
+               msubKeyHit(Asc("3"c))\r
+       End Sub\r
+\r
+       Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click\r
+               msubKeyHit(Asc("4"c))\r
+       End Sub\r
+\r
+       Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click\r
+               msubKeyHit(Asc("5"c))\r
+       End Sub\r
+\r
+       Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click\r
+               msubKeyHit(Asc("6"c))\r
+       End Sub\r
+\r
+       Private Sub Button7_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click\r
+               msubKeyHit(Asc("7"c))\r
+       End Sub\r
+\r
+       Private Sub Button8_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button8.Click\r
+               msubKeyHit(Asc("8"c))\r
+       End Sub\r
+\r
+       Private Sub Button9_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button9.Click\r
+               msubKeyHit(Asc("9"c))\r
+       End Sub\r
+\r
+       Private Sub Button10_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button10.Click\r
+               msubKeyHit(Asc("0"c))\r
+       End Sub\r
+\r
+       Private Sub Button11_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button11.Click\r
+               msubKeyHit(&HBD)\r
+       End Sub\r
+\r
+       Private Sub Button12_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button12.Click\r
+               msubKeyHit(Asc("Q"c))\r
+       End Sub\r
+\r
+       Private Sub Button13_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button13.Click\r
+               msubKeyHit(Asc("W"c))\r
+       End Sub\r
+\r
+       Private Sub Button14_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button14.Click\r
+               msubKeyHit(Asc("E"c))\r
+       End Sub\r
+\r
+       Private Sub Button15_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button15.Click\r
+               msubKeyHit(Asc("R"c))\r
+       End Sub\r
+\r
+       Private Sub Button16_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button16.Click\r
+               msubKeyHit(Asc("T"c))\r
+       End Sub\r
+\r
+       Private Sub Button17_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button17.Click\r
+               msubKeyHit(Asc("Y"c))\r
+       End Sub\r
+\r
+       Private Sub Button18_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button18.Click\r
+               msubKeyHit(Asc("U"c))\r
+       End Sub\r
+\r
+       Private Sub Button19_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button19.Click\r
+               msubKeyHit(Asc("I"c))\r
+       End Sub\r
+\r
+       Private Sub Button20_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button20.Click\r
+               msubKeyHit(Asc("O"c))\r
+       End Sub\r
+\r
+       Private Sub Button21_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button21.Click\r
+               msubKeyHit(Asc("P"c))\r
+       End Sub\r
+\r
+       Private Sub Button22_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button22.Click\r
+               msubKeyHit(&HC0)\r
+       End Sub\r
+\r
+       Private Sub Button23_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button23.Click\r
+               msubKeyHit(Asc("A"c))\r
+       End Sub\r
+\r
+       Private Sub Button24_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button24.Click\r
+               msubKeyHit(Asc("S"c))\r
+       End Sub\r
+\r
+       Private Sub Button25_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button25.Click\r
+               msubKeyHit(Asc("D"c))\r
+       End Sub\r
+\r
+       Private Sub Button26_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button26.Click\r
+               msubKeyHit(Asc("F"c))\r
+       End Sub\r
+\r
+       Private Sub Button27_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button27.Click\r
+               msubKeyHit(Asc("G"c))\r
+       End Sub\r
+\r
+       Private Sub Button28_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button28.Click\r
+               msubKeyHit(Asc("H"c))\r
+       End Sub\r
+\r
+       Private Sub Button29_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button29.Click\r
+               msubKeyHit(Asc("J"c))\r
+       End Sub\r
+\r
+       Private Sub Button30_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button30.Click\r
+               msubKeyHit(Asc("K"c))\r
+       End Sub\r
+\r
+       Private Sub Button31_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button31.Click\r
+               msubKeyHit(Asc("L"c))\r
+       End Sub\r
+\r
+       Private Sub Button32_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button32.Click\r
+               msubKeyHit(&HBB)\r
+       End Sub\r
+\r
+       Private Sub Button33_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button33.Click\r
+               msubKeyHit(&HBA)\r
+       End Sub\r
+\r
+       Private Sub Button34_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button34.Click\r
+               msubKeyHit(Asc("Z"c))\r
+       End Sub\r
+\r
+       Private Sub Button35_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button35.Click\r
+               msubKeyHit(Asc("X"c))\r
+       End Sub\r
+\r
+       Private Sub Button36_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button36.Click\r
+               msubKeyHit(Asc("C"c))\r
+       End Sub\r
+\r
+       Private Sub Button37_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button37.Click\r
+               msubKeyHit(Asc("V"c))\r
+       End Sub\r
+\r
+       Private Sub Button38_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button38.Click\r
+               msubKeyHit(Asc("B"c))\r
+       End Sub\r
+\r
+       Private Sub Button39_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button39.Click\r
+               msubKeyHit(Asc("N"c))\r
+       End Sub\r
+\r
+       Private Sub Button40_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button40.Click\r
+               msubKeyHit(Asc("M"c))\r
+       End Sub\r
+\r
+       Private Sub Button41_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button41.Click\r
+               msubKeyHit(&HBC)\r
+       End Sub\r
+\r
+       Private Sub Button42_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button42.Click\r
+               msubKeyHit(&HBE)\r
+       End Sub\r
+\r
+       Private Sub Button43_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button43.Click\r
+               msubKeyHit(&HBF)\r
+       End Sub\r
+\r
+       Private Sub Button44_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button44.Click\r
+               msubKeyHit(&H15)\r
+       End Sub\r
+\r
+       Private Sub Button45_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button45.CheckedChanged\r
+               If mblnSemaphore Then Exit Sub\r
+               Dim blnPrevPressed As Boolean = (Not Button45.Checked OrElse Button53.Checked)\r
+               If Button45.Checked Then\r
+                       Button45.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT_PRESSED\r
+               Else\r
+                       Button45.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT\r
+               End If\r
+               msubUpdateShift(blnPrevPressed)\r
+       End Sub\r
+\r
+       Private Sub Button46_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button46.Click\r
+               msubKeyHit(&H24)\r
+       End Sub\r
+\r
+       Private Sub Button47_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button47.Click\r
+               msubKeyHit(&H2E)\r
+       End Sub\r
+\r
+       Private Sub Button48_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button48.Click\r
+               msubKeyHit(&H20)\r
+       End Sub\r
+\r
+       Private Sub Button49_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button49.Click\r
+               msubKeyHit(&H28)\r
+       End Sub\r
+\r
+       Private Sub Button50_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button50.Click\r
+               msubKeyHit(&H27)\r
+       End Sub\r
+\r
+       Private Sub Button51_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button51.Click\r
+               msubKeyHit(&H13)\r
+       End Sub\r
+\r
+       Private Sub Button52_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button52.Click\r
+               msubKeyHit(&HD)\r
+       End Sub\r
+\r
+       Private Sub Button53_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button53.CheckedChanged\r
+               If mblnSemaphore Then Exit Sub\r
+               Dim blnPrevPressed As Boolean = (Button45.Checked OrElse Not Button53.Checked)\r
+               If Button53.Checked Then\r
+                       Button53.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT_PRESSED\r
+               Else\r
+                       Button53.Image = Global.mz80k_kbd.My.Resources.Resources.SHIFT\r
+               End If\r
+               msubUpdateShift(blnPrevPressed)\r
+       End Sub\r
+\r
+       Private Sub Button54_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button54.Click\r
+               msubKeyHit(&HDE)\r
+       End Sub\r
+\r
+       Private Sub Button55_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button55.Click\r
+               msubKeyHit(&H70)\r
+       End Sub\r
+\r
+       Private Sub Button56_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button56.Click\r
+               msubKeyHit(&H6F)\r
+       End Sub\r
+\r
+       Private Sub Button57_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button57.Click\r
+               msubKeyHit(&H6A)\r
+       End Sub\r
+\r
+       Private Sub Button58_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button58.Click\r
+               msubKeyHit(&HDC)\r
+       End Sub\r
+\r
+       Private Sub Button59_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button59.Click\r
+               msubKeyHit(&H71)\r
+       End Sub\r
+\r
+       Private Sub Button60_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button60.Click\r
+               msubKeyHit(&H67)\r
+       End Sub\r
+\r
+       Private Sub Button61_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button61.Click\r
+               msubKeyHit(&H68)\r
+       End Sub\r
+\r
+       Private Sub Button62_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button62.Click\r
+               msubKeyHit(&HDB)\r
+       End Sub\r
+\r
+       Private Sub Button63_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button63.Click\r
+               msubKeyHit(&H72)\r
+       End Sub\r
+\r
+       Private Sub Button64_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button64.Click\r
+               msubKeyHit(&H64)\r
+       End Sub\r
+\r
+       Private Sub Button65_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button65.Click\r
+               msubKeyHit(&H65)\r
+       End Sub\r
+\r
+       Private Sub Button66_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button66.Click\r
+               msubKeyHit(&HDD)\r
+       End Sub\r
+\r
+       Private Sub Button67_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button67.Click\r
+               msubKeyHit(&H73)\r
+       End Sub\r
+\r
+       Private Sub Button68_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button68.Click\r
+               msubKeyHit(&H61)\r
+       End Sub\r
+\r
+       Private Sub Button69_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button69.Click\r
+               msubKeyHit(&H62)\r
+       End Sub\r
+\r
+       Private Sub Button70_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button70.Click\r
+               msubKeyHit(&HE2)\r
+       End Sub\r
+\r
+       Private Sub Button71_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button71.Click\r
+               msubKeyHit(&H74)\r
+       End Sub\r
+\r
+       Private Sub Button72_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button72.Click\r
+               msubKeyHit(&H75)\r
+       End Sub\r
+\r
+       Private Sub Button73_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button73.Click\r
+               msubKeyHit(&H76)\r
+       End Sub\r
+\r
+       Private Sub Button74_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button74.Click\r
+               msubKeyHit(&H6D)\r
+       End Sub\r
+\r
+       Private Sub Button75_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button75.Click\r
+               msubKeyHit(&H69)\r
+       End Sub\r
+\r
+       Private Sub Button76_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button76.Click\r
+               msubKeyHit(&H66)\r
+       End Sub\r
+\r
+       Private Sub Button77_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button77.Click\r
+               msubKeyHit(&H63)\r
+       End Sub\r
+\r
+       Private Sub Button78_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button78.Click\r
+               msubKeyHit(&H77)\r
+       End Sub\r
+End Class\r
index aaa6035..caaee72 100644 (file)
@@ -1,38 +1,38 @@
-'------------------------------------------------------------------------------
-' <auto-generated>
-'     This code was generated by a tool.
-'     Runtime Version:2.0.50727.5485
-'
-'     Changes to this file may cause incorrect behavior and will be lost if
-'     the code is regenerated.
-' </auto-generated>
-'------------------------------------------------------------------------------
-
-Option Strict On
-Option Explicit On
-
-
-Namespace My
-       
-       'NOTE: This file is auto-generated; do not modify it directly.  To make changes,
-       ' or if you encounter build errors in this file, go to the Project Designer
-       ' (go to Project Properties or double-click the My Project node in
-       ' Solution Explorer), and make changes on the Application tab.
-       '
-       Partial Friend Class MyApplication
-               
-               <Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _
-               Public Sub New()
-                       MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)
-                       Me.IsSingleInstance = false
-                       Me.EnableVisualStyles = true
-                       Me.SaveMySettingsOnExit = true
-                       Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses
-               End Sub
-               
-               <Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _
-               Protected Overrides Sub OnCreateMainForm()
-                       Me.MainForm = Global.mz80k_kbd.Form1
-               End Sub
-       End Class
-End Namespace
+'------------------------------------------------------------------------------\r
+' <auto-generated>\r
+'     This code was generated by a tool.\r
+'     Runtime Version:2.0.50727.5485\r
+'\r
+'     Changes to this file may cause incorrect behavior and will be lost if\r
+'     the code is regenerated.\r
+' </auto-generated>\r
+'------------------------------------------------------------------------------\r
+\r
+Option Strict On\r
+Option Explicit On\r
+\r
+\r
+Namespace My\r
+       \r
+       'NOTE: This file is auto-generated; do not modify it directly.  To make changes,\r
+       ' or if you encounter build errors in this file, go to the Project Designer\r
+       ' (go to Project Properties or double-click the My Project node in\r
+       ' Solution Explorer), and make changes on the Application tab.\r
+       '\r
+       Partial Friend Class MyApplication\r
+               \r
+               <Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _\r
+               Public Sub New()\r
+                       MyBase.New(Global.Microsoft.VisualBasic.ApplicationServices.AuthenticationMode.Windows)\r
+                       Me.IsSingleInstance = false\r
+                       Me.EnableVisualStyles = true\r
+                       Me.SaveMySettingsOnExit = true\r
+                       Me.ShutDownStyle = Global.Microsoft.VisualBasic.ApplicationServices.ShutdownMode.AfterMainFormCloses\r
+               End Sub\r
+               \r
+               <Global.System.Diagnostics.DebuggerStepThroughAttribute()>  _\r
+               Protected Overrides Sub OnCreateMainForm()\r
+                       Me.MainForm = Global.mz80k_kbd.Form1\r
+               End Sub\r
+       End Class\r
+End Namespace\r
index 66ac60d..7b0c597 100644 (file)
@@ -1,11 +1,11 @@
-<?xml version="1.0" encoding="utf-8"?>
-<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
-  <MySubMain>true</MySubMain>
-  <MainForm>Form1</MainForm>
-  <SingleInstance>false</SingleInstance>
-  <ShutdownMode>0</ShutdownMode>
-  <EnableVisualStyles>true</EnableVisualStyles>
-  <AuthenticationMode>0</AuthenticationMode>
-  <ApplicationType>0</ApplicationType>
-  <SaveMySettingsOnExit>true</SaveMySettingsOnExit>
-</MyApplicationData>
+<?xml version="1.0" encoding="utf-8"?>\r
+<MyApplicationData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">\r
+  <MySubMain>true</MySubMain>\r
+  <MainForm>Form1</MainForm>\r
+  <SingleInstance>false</SingleInstance>\r
+  <ShutdownMode>0</ShutdownMode>\r
+  <EnableVisualStyles>true</EnableVisualStyles>\r
+  <AuthenticationMode>0</AuthenticationMode>\r
+  <ApplicationType>0</ApplicationType>\r
+  <SaveMySettingsOnExit>true</SaveMySettingsOnExit>\r
+</MyApplicationData>\r
index 1dad598..772f286 100644 (file)
@@ -1,35 +1,35 @@
-Imports System
-Imports System.Reflection
-Imports System.Runtime.InteropServices
-
-' General Information about an assembly is controlled through the following 
-' set of attributes. Change these attribute values to modify the information
-' associated with an assembly.
-
-' Review the values of the assembly attributes
-
-<Assembly: AssemblyTitle("mz80k_kbd")> 
-<Assembly: AssemblyDescription("")> 
-<Assembly: AssemblyCompany("")> 
-<Assembly: AssemblyProduct("mz80k_kbd")> 
-<Assembly: AssemblyCopyright("Copyright ©  2015")> 
-<Assembly: AssemblyTrademark("")> 
-
-<Assembly: ComVisible(False)>
-
-'The following GUID is for the ID of the typelib if this project is exposed to COM
-<Assembly: Guid("c0ddeb8f-855a-4cc7-9399-16302a513b0e")> 
-
-' Version information for an assembly consists of the following four values:
-'
-'      Major Version
-'      Minor Version 
-'      Build Number
-'      Revision
-'
-' You can specify all the values or you can default the Build and Revision Numbers 
-' by using the '*' as shown below:
-' <Assembly: AssemblyVersion("1.0.*")> 
-
-<Assembly: AssemblyVersion("1.0.0.0")> 
-<Assembly: AssemblyFileVersion("1.0.0.0")> 
+Imports System\r
+Imports System.Reflection\r
+Imports System.Runtime.InteropServices\r
+\r
+' General Information about an assembly is controlled through the following \r
+' set of attributes. Change these attribute values to modify the information\r
+' associated with an assembly.\r
+\r
+' Review the values of the assembly attributes\r
+\r
+<Assembly: AssemblyTitle("mz80k_kbd")> \r
+<Assembly: AssemblyDescription("")> \r
+<Assembly: AssemblyCompany("")> \r
+<Assembly: AssemblyProduct("mz80k_kbd")> \r
+<Assembly: AssemblyCopyright("Copyright ©  2015")> \r
+<Assembly: AssemblyTrademark("")> \r
+\r
+<Assembly: ComVisible(False)>\r
+\r
+'The following GUID is for the ID of the typelib if this project is exposed to COM\r
+<Assembly: Guid("c0ddeb8f-855a-4cc7-9399-16302a513b0e")> \r
+\r
+' Version information for an assembly consists of the following four values:\r
+'\r
+'      Major Version\r
+'      Minor Version \r
+'      Build Number\r
+'      Revision\r
+'\r
+' You can specify all the values or you can default the Build and Revision Numbers \r
+' by using the '*' as shown below:\r
+' <Assembly: AssemblyVersion("1.0.*")> \r
+\r
+<Assembly: AssemblyVersion("1.0.0.0")> \r
+<Assembly: AssemblyFileVersion("1.0.0.0")> \r
index 41822f6..1fa917f 100644 (file)
-'------------------------------------------------------------------------------
-' <auto-generated>
-'     This code was generated by a tool.
-'     Runtime Version:2.0.50727.5485
-'
-'     Changes to this file may cause incorrect behavior and will be lost if
-'     the code is regenerated.
-' </auto-generated>
-'------------------------------------------------------------------------------
-
-Option Strict On
-Option Explicit On
-
-Imports System
-
-Namespace My.Resources
-       
-       'This class was auto-generated by the StronglyTypedResourceBuilder
-       'class via a tool like ResGen or Visual Studio.
-       'To add or remove a member, edit your .ResX file then rerun ResGen
-       'with the /str option, or rebuild your VS project.
-       '''<summary>
-       '''  A strongly-typed resource class, for looking up localized strings, etc.
-       '''</summary>
-       <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0"),  _
-        Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
-        Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(),  _
-        Global.Microsoft.VisualBasic.HideModuleNameAttribute()>  _
-       Friend Module Resources
-               
-               Private resourceMan As Global.System.Resources.ResourceManager
-               
-               Private resourceCulture As Global.System.Globalization.CultureInfo
-               
-               '''<summary>
-               '''  Returns the cached ResourceManager instance used by this class.
-               '''</summary>
-               <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _
-               Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager
-                       Get
-                               If Object.ReferenceEquals(resourceMan, Nothing) Then
-                                       Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("mz80k_kbd.Resources", GetType(Resources).Assembly)
-                                       resourceMan = temp
-                               End If
-                               Return resourceMan
-                       End Get
-               End Property
-               
-               '''<summary>
-               '''  Overrides the current thread's CurrentUICulture property for all
-               '''  resource lookups using this strongly typed resource class.
-               '''</summary>
-               <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _
-               Friend Property Culture() As Global.System.Globalization.CultureInfo
-                       Get
-                               Return resourceCulture
-                       End Get
-                       Set
-                               resourceCulture = value
-                       End Set
-               End Property
-               
-               Friend ReadOnly Property _0() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("0", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property _1() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("1", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property _2() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("2", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property _3() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("3", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property _4() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("4", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property _5() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("5", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property _6() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("6", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property _7() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("7", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property _8() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("8", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property _9() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("9", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property A() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("A", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property B() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("B", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property BREAK() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("BREAK", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property C() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("C", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property COMMA() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("COMMA", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property CR() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("CR", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property D() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("D", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property DELETE() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("DELETE", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property DOWN() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("DOWN", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property E() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("E", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property EQUAL() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("EQUAL", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property F() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("F", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property G() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("G", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GETSU() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GETSU", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH11() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH11", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH12() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH12", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH13() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH13", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH14() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH14", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH21() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH21", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH22() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH22", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH23() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH23", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH24() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH24", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH31() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH31", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH32() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH32", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH33() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH33", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH34() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH34", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH41() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH41", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH42() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH42", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH43() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH43", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH44() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH44", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH51() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH51", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH52() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH52", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH53() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH53", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property GRAPH54() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("GRAPH54", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property H() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("H", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property HOME() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("HOME", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property I() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("I", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property J() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("J", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property K() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("K", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property KANA() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("KANA", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property KIN() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("KIN", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property L() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("L", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property M() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("M", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property MINUS() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("MINUS", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property N() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("N", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property O() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("O", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property P() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("P", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property PERIOD() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("PERIOD", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property Q() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("Q", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property R() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("R", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property RIGHT() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("RIGHT", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property S() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("S", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property SEI() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("SEI", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property SEMICOLON() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("SEMICOLON", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property SHIFT() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("SHIFT", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property SHIFT_PRESSED() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("SHIFT_PRESSED", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property SLASH() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("SLASH", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property SPACE() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("SPACE", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property SUI() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("SUI", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property T() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("T", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property U() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("U", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property PLUS() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("PLUS", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property V() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("V", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property W() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("W", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property X() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("X", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property Y() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("Y", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property YEN() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("YEN", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-               
-               Friend ReadOnly Property Z() As System.Drawing.Bitmap
-                       Get
-                               Dim obj As Object = ResourceManager.GetObject("Z", resourceCulture)
-                               Return CType(obj,System.Drawing.Bitmap)
-                       End Get
-               End Property
-       End Module
-End Namespace
+'------------------------------------------------------------------------------\r
+' <auto-generated>\r
+'     This code was generated by a tool.\r
+'     Runtime Version:2.0.50727.5485\r
+'\r
+'     Changes to this file may cause incorrect behavior and will be lost if\r
+'     the code is regenerated.\r
+' </auto-generated>\r
+'------------------------------------------------------------------------------\r
+\r
+Option Strict On\r
+Option Explicit On\r
+\r
+Imports System\r
+\r
+Namespace My.Resources\r
+       \r
+       'This class was auto-generated by the StronglyTypedResourceBuilder\r
+       'class via a tool like ResGen or Visual Studio.\r
+       'To add or remove a member, edit your .ResX file then rerun ResGen\r
+       'with the /str option, or rebuild your VS project.\r
+       '''<summary>\r
+       '''  A strongly-typed resource class, for looking up localized strings, etc.\r
+       '''</summary>\r
+       <Global.System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0"),  _\r
+        Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _\r
+        Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(),  _\r
+        Global.Microsoft.VisualBasic.HideModuleNameAttribute()>  _\r
+       Friend Module Resources\r
+               \r
+               Private resourceMan As Global.System.Resources.ResourceManager\r
+               \r
+               Private resourceCulture As Global.System.Globalization.CultureInfo\r
+               \r
+               '''<summary>\r
+               '''  Returns the cached ResourceManager instance used by this class.\r
+               '''</summary>\r
+               <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _\r
+               Friend ReadOnly Property ResourceManager() As Global.System.Resources.ResourceManager\r
+                       Get\r
+                               If Object.ReferenceEquals(resourceMan, Nothing) Then\r
+                                       Dim temp As Global.System.Resources.ResourceManager = New Global.System.Resources.ResourceManager("mz80k_kbd.Resources", GetType(Resources).Assembly)\r
+                                       resourceMan = temp\r
+                               End If\r
+                               Return resourceMan\r
+                       End Get\r
+               End Property\r
+               \r
+               '''<summary>\r
+               '''  Overrides the current thread's CurrentUICulture property for all\r
+               '''  resource lookups using this strongly typed resource class.\r
+               '''</summary>\r
+               <Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _\r
+               Friend Property Culture() As Global.System.Globalization.CultureInfo\r
+                       Get\r
+                               Return resourceCulture\r
+                       End Get\r
+                       Set\r
+                               resourceCulture = value\r
+                       End Set\r
+               End Property\r
+               \r
+               Friend ReadOnly Property _0() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("0", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property _1() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("1", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property _2() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("2", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property _3() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("3", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property _4() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("4", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property _5() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("5", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property _6() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("6", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property _7() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("7", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property _8() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("8", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property _9() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("9", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property A() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("A", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property B() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("B", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property BREAK() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("BREAK", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property C() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("C", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property COMMA() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("COMMA", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property CR() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("CR", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property D() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("D", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property DELETE() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("DELETE", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property DOWN() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("DOWN", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property E() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("E", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property EQUAL() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("EQUAL", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property F() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("F", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property G() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("G", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GETSU() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GETSU", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH11() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH11", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH12() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH12", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH13() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH13", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH14() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH14", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH21() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH21", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH22() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH22", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH23() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH23", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH24() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH24", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH31() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH31", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH32() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH32", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH33() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH33", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH34() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH34", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH41() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH41", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH42() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH42", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH43() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH43", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH44() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH44", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH51() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH51", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH52() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH52", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH53() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH53", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property GRAPH54() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("GRAPH54", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property H() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("H", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property HOME() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("HOME", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property I() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("I", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property J() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("J", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property K() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("K", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property KANA() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("KANA", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property KIN() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("KIN", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property L() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("L", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property M() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("M", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property MINUS() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("MINUS", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property N() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("N", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property O() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("O", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property P() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("P", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property PERIOD() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("PERIOD", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property Q() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("Q", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property R() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("R", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property RIGHT() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("RIGHT", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property S() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("S", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property SEI() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("SEI", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property SEMICOLON() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("SEMICOLON", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property SHIFT() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("SHIFT", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property SHIFT_PRESSED() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("SHIFT_PRESSED", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property SLASH() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("SLASH", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property SPACE() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("SPACE", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property SUI() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("SUI", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property T() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("T", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property U() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("U", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property PLUS() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("PLUS", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property V() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("V", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property W() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("W", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property X() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("X", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property Y() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("Y", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property YEN() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("YEN", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+               \r
+               Friend ReadOnly Property Z() As System.Drawing.Bitmap\r
+                       Get\r
+                               Dim obj As Object = ResourceManager.GetObject("Z", resourceCulture)\r
+                               Return CType(obj,System.Drawing.Bitmap)\r
+                       End Get\r
+               End Property\r
+       End Module\r
+End Namespace\r
index 25e7183..50b02ba 100644 (file)
-<?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=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>
-  <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
-  <data name="PERIOD" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\PERIOD.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="8" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\8.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="W" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\W.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="DOWN" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\DOWN.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH24" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH24.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="6" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\6.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="BREAK" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\BREAK.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="CR" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\CR.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="SEMICOLON" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\SEMICOLON.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="S" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\S.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="9" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\9.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="SEI" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\SEI.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH22" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH22.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="2" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\2.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="J" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\J.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="O" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\O.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="Q" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\Q.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="MINUS" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\MINUS.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="SLASH" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\SLASH.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="HOME" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\HOME.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH21" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH21.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="1" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\1.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="I" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\I.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH54" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH54.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH14" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH14.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="RIGHT" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\RIGHT.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="K" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\K.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="KANA" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\KANA.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="R" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\R.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="YEN" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\YEN.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="0" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\0.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="D" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\D.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="Z" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\Z.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="T" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\T.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH33" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH33.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GETSU" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GETSU.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="KIN" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\KIN.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="C" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\C.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH13" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH13.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="3" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\3.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="SPACE" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\SPACE.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH11" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH11.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="SUI" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\SUI.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="SHIFT" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\SHIFT.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="PLUS" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\PLUS.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH34" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH34.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="F" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\F.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH31" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH31.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="M" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\M.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="V" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\V.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="B" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\B.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH12" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH12.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH51" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH51.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="4" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\4.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH42" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH42.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="N" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\N.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH43" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH43.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="L" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\L.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH23" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH23.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="U" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\U.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="DELETE" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\DELETE.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH32" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH32.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="A" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\A.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="COMMA" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\COMMA.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="EQUAL" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\EQUAL.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="P" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\P.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH53" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH53.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="H" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\H.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="X" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\X.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH44" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH44.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH41" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH41.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="7" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\7.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="E" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\E.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="Y" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\Y.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="5" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\5.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="G" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\G.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="GRAPH52" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\GRAPH52.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
-  <data name="SHIFT_PRESSED" type="System.Resources.ResXFileRef, System.Windows.Forms">
-    <value>..\Resource\SHIFT_PRESSED.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
-  </data>
+<?xml version="1.0" encoding="utf-8"?>\r
+<root>\r
+  <!-- \r
+    Microsoft ResX Schema \r
+    \r
+    Version 2.0\r
+    \r
+    The primary goals of this format is to allow a simple XML format \r
+    that is mostly human readable. The generation and parsing of the \r
+    various data types are done through the TypeConverter classes \r
+    associated with the data types.\r
+    \r
+    Example:\r
+    \r
+    ... ado.net/XML headers & schema ...\r
+    <resheader name="resmimetype">text/microsoft-resx</resheader>\r
+    <resheader name="version">2.0</resheader>\r
+    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>\r
+    <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>\r
+    <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>\r
+    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>\r
+    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">\r
+        <value>[base64 mime encoded serialized .NET Framework object]</value>\r
+    </data>\r
+    <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">\r
+        <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>\r
+        <comment>This is a comment</comment>\r
+    </data>\r
+                \r
+    There are any number of "resheader" rows that contain simple \r
+    name/value pairs.\r
+    \r
+    Each data row contains a name, and value. The row also contains a \r
+    type or mimetype. Type corresponds to a .NET class that support \r
+    text/value conversion through the TypeConverter architecture. \r
+    Classes that don't support this are serialized and stored with the \r
+    mimetype set.\r
+    \r
+    The mimetype is used for serialized objects, and tells the \r
+    ResXResourceReader how to depersist the object. This is currently not \r
+    extensible. For a given mimetype the value must be set accordingly:\r
+    \r
+    Note - application/x-microsoft.net.object.binary.base64 is the format \r
+    that the ResXResourceWriter will generate, however the reader can \r
+    read any of the formats listed below.\r
+    \r
+    mimetype: application/x-microsoft.net.object.binary.base64\r
+    value   : The object must be serialized with \r
+            : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter\r
+            : and then encoded with base64 encoding.\r
+    \r
+    mimetype: application/x-microsoft.net.object.soap.base64\r
+    value   : The object must be serialized with \r
+            : System.Runtime.Serialization.Formatters.Soap.SoapFormatter\r
+            : and then encoded with base64 encoding.\r
+\r
+    mimetype: application/x-microsoft.net.object.bytearray.base64\r
+    value   : The object must be serialized into a byte array \r
+            : using a System.ComponentModel.TypeConverter\r
+            : and then encoded with base64 encoding.\r
+    -->\r
+  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">\r
+    <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />\r
+    <xsd:element name="root" msdata:IsDataSet="true">\r
+      <xsd:complexType>\r
+        <xsd:choice maxOccurs="unbounded">\r
+          <xsd:element name="metadata">\r
+            <xsd:complexType>\r
+              <xsd:sequence>\r
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />\r
+              </xsd:sequence>\r
+              <xsd:attribute name="name" use="required" type="xsd:string" />\r
+              <xsd:attribute name="type" type="xsd:string" />\r
+              <xsd:attribute name="mimetype" type="xsd:string" />\r
+              <xsd:attribute ref="xml:space" />\r
+            </xsd:complexType>\r
+          </xsd:element>\r
+          <xsd:element name="assembly">\r
+            <xsd:complexType>\r
+              <xsd:attribute name="alias" type="xsd:string" />\r
+              <xsd:attribute name="name" type="xsd:string" />\r
+            </xsd:complexType>\r
+          </xsd:element>\r
+          <xsd:element name="data">\r
+            <xsd:complexType>\r
+              <xsd:sequence>\r
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />\r
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />\r
+              </xsd:sequence>\r
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />\r
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />\r
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />\r
+              <xsd:attribute ref="xml:space" />\r
+            </xsd:complexType>\r
+          </xsd:element>\r
+          <xsd:element name="resheader">\r
+            <xsd:complexType>\r
+              <xsd:sequence>\r
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />\r
+              </xsd:sequence>\r
+              <xsd:attribute name="name" type="xsd:string" use="required" />\r
+            </xsd:complexType>\r
+          </xsd:element>\r
+        </xsd:choice>\r
+      </xsd:complexType>\r
+    </xsd:element>\r
+  </xsd:schema>\r
+  <resheader name="resmimetype">\r
+    <value>text/microsoft-resx</value>\r
+  </resheader>\r
+  <resheader name="version">\r
+    <value>2.0</value>\r
+  </resheader>\r
+  <resheader name="reader">\r
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+  </resheader>\r
+  <resheader name="writer">\r
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>\r
+  </resheader>\r
+  <assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />\r
+  <data name="PERIOD" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\PERIOD.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="8" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\8.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="W" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\W.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="DOWN" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\DOWN.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH24" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH24.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="6" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\6.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="BREAK" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\BREAK.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="CR" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\CR.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="SEMICOLON" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\SEMICOLON.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="S" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\S.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="9" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\9.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="SEI" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\SEI.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH22" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH22.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="2" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\2.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="J" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\J.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="O" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\O.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="Q" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\Q.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="MINUS" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\MINUS.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="SLASH" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\SLASH.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="HOME" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\HOME.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH21" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH21.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="1" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\1.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="I" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\I.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH54" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH54.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH14" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH14.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="RIGHT" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\RIGHT.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="K" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\K.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="KANA" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\KANA.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="R" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\R.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="YEN" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\YEN.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="0" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\0.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="D" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\D.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="Z" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\Z.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="T" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\T.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH33" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH33.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GETSU" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GETSU.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="KIN" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\KIN.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="C" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\C.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH13" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH13.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="3" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\3.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="SPACE" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\SPACE.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH11" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH11.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="SUI" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\SUI.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="SHIFT" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\SHIFT.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="PLUS" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\PLUS.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH34" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH34.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="F" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\F.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH31" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH31.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="M" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\M.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="V" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\V.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="B" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\B.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH12" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH12.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH51" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH51.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="4" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\4.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH42" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH42.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="N" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\N.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH43" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH43.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="L" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\L.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH23" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH23.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="U" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\U.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="DELETE" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\DELETE.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH32" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH32.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="A" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\A.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="COMMA" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\COMMA.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="EQUAL" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\EQUAL.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="P" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\P.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH53" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH53.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="H" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\H.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="X" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\X.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH44" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH44.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH41" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH41.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="7" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\7.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="E" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\E.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="Y" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\Y.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="5" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\5.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="G" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\G.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="GRAPH52" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\GRAPH52.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
+  <data name="SHIFT_PRESSED" type="System.Resources.ResXFileRef, System.Windows.Forms">\r
+    <value>..\Resource\SHIFT_PRESSED.PNG;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>\r
+  </data>\r
 </root>
\ No newline at end of file
index 1a0c5de..ca4ff5a 100644 (file)
@@ -1,73 +1,73 @@
-'------------------------------------------------------------------------------
-' <auto-generated>
-'     This code was generated by a tool.
-'     Runtime Version:2.0.50727.5485
-'
-'     Changes to this file may cause incorrect behavior and will be lost if
-'     the code is regenerated.
-' </auto-generated>
-'------------------------------------------------------------------------------
-
-Option Strict On
-Option Explicit On
-
-
-Namespace My
-
-       <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(),  _
-        Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0"),  _
-        Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _
-       Partial Friend NotInheritable Class MySettings
-               Inherits Global.System.Configuration.ApplicationSettingsBase
-               
-               Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)
-               
-#Region "My.Settings Auto-Save Functionality"
-#If _MyType = "WindowsForms" Then
-               Private Shared addedHandler As Boolean
-
-               Private Shared addedHandlerLockObject As New Object
-
-               <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _
-               Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)
-                       If My.Application.SaveMySettingsOnExit Then
-                               My.Settings.Save()
-                       End If
-               End Sub
-#End If
-#End Region
-               
-               Public Shared ReadOnly Property [Default]() As MySettings
-                       Get
-                               
-#If _MyType = "WindowsForms" Then
-                                       If Not addedHandler Then
-                                               SyncLock addedHandlerLockObject
-                                                       If Not addedHandler Then
-                                                               AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings
-                                                               addedHandler = True
-                                                       End If
-                                               End SyncLock
-                                       End If
-#End If
-                               Return defaultInstance
-                       End Get
-               End Property
-       End Class
-End Namespace
-
-Namespace My
-       
-       <Global.Microsoft.VisualBasic.HideModuleNameAttribute(),  _
-        Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _
-        Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()>  _
-       Friend Module MySettingsProperty
-               
-               <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")>  _
-               Friend ReadOnly Property Settings() As Global.mz80k_kbd.My.MySettings
-                       Get
-                               Return Global.mz80k_kbd.My.MySettings.Default
-                       End Get
-               End Property
-       End Module
-End Namespace
+'------------------------------------------------------------------------------\r
+' <auto-generated>\r
+'     This code was generated by a tool.\r
+'     Runtime Version:2.0.50727.5485\r
+'\r
+'     Changes to this file may cause incorrect behavior and will be lost if\r
+'     the code is regenerated.\r
+' </auto-generated>\r
+'------------------------------------------------------------------------------\r
+\r
+Option Strict On\r
+Option Explicit On\r
+\r
+\r
+Namespace My\r
+\r
+       <Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute(),  _\r
+        Global.System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0"),  _\r
+        Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)>  _\r
+       Partial Friend NotInheritable Class MySettings\r
+               Inherits Global.System.Configuration.ApplicationSettingsBase\r
+               \r
+               Private Shared defaultInstance As MySettings = CType(Global.System.Configuration.ApplicationSettingsBase.Synchronized(New MySettings), MySettings)\r
+               \r
+#Region "My.Settings Auto-Save Functionality"\r
+#If _MyType = "WindowsForms" Then\r
+               Private Shared addedHandler As Boolean\r
+\r
+               Private Shared addedHandlerLockObject As New Object\r
+\r
+               <Global.System.Diagnostics.DebuggerNonUserCodeAttribute(), Global.System.ComponentModel.EditorBrowsableAttribute(Global.System.ComponentModel.EditorBrowsableState.Advanced)> _\r
+               Private Shared Sub AutoSaveSettings(ByVal sender As Global.System.Object, ByVal e As Global.System.EventArgs)\r
+                       If My.Application.SaveMySettingsOnExit Then\r
+                               My.Settings.Save()\r
+                       End If\r
+               End Sub\r
+#End If\r
+#End Region\r
+               \r
+               Public Shared ReadOnly Property [Default]() As MySettings\r
+                       Get\r
+                               \r
+#If _MyType = "WindowsForms" Then\r
+                                       If Not addedHandler Then\r
+                                               SyncLock addedHandlerLockObject\r
+                                                       If Not addedHandler Then\r
+                                                               AddHandler My.Application.Shutdown, AddressOf AutoSaveSettings\r
+                                                               addedHandler = True\r
+                                                       End If\r
+                                               End SyncLock\r
+                                       End If\r
+#End If\r
+                               Return defaultInstance\r
+                       End Get\r
+               End Property\r
+       End Class\r
+End Namespace\r
+\r
+Namespace My\r
+       \r
+       <Global.Microsoft.VisualBasic.HideModuleNameAttribute(),  _\r
+        Global.System.Diagnostics.DebuggerNonUserCodeAttribute(),  _\r
+        Global.System.Runtime.CompilerServices.CompilerGeneratedAttribute()>  _\r
+       Friend Module MySettingsProperty\r
+               \r
+               <Global.System.ComponentModel.Design.HelpKeywordAttribute("My.Settings")>  _\r
+               Friend ReadOnly Property Settings() As Global.mz80k_kbd.My.MySettings\r
+                       Get\r
+                               Return Global.mz80k_kbd.My.MySettings.Default\r
+                       End Get\r
+               End Property\r
+       End Module\r
+End Namespace\r
index ab743f1..377f56d 100644 (file)
@@ -1,7 +1,7 @@
-<?xml version='1.0' encoding='utf-8'?>
-<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">
-  <Profiles>
-    <Profile Name="(Default)" />
-  </Profiles>
-  <Settings />
-</SettingsFile>
+<?xml version='1.0' encoding='utf-8'?>\r
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" UseMySettingsClassName="true">\r
+  <Profiles>\r
+    <Profile Name="(Default)" />\r
+  </Profiles>\r
+  <Settings />\r
+</SettingsFile>\r
index e6804d1..0fabc15 100644 (file)
-<?xml version="1.0" encoding="utf-8"?>
-<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
-  <PropertyGroup>
-    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
-    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
-    <ProductVersion>9.0.21022</ProductVersion>
-    <SchemaVersion>2.0</SchemaVersion>
-    <ProjectGuid>{BDEE6120-791D-431D-ACD8-FA10C0D9ECF6}</ProjectGuid>
-    <OutputType>WinExe</OutputType>
-    <StartupObject>mz80k_kbd.My.MyApplication</StartupObject>
-    <RootNamespace>mz80k_kbd</RootNamespace>
-    <AssemblyName>mz80k_kbd</AssemblyName>
-    <FileAlignment>512</FileAlignment>
-    <MyType>WindowsForms</MyType>
-    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
-    <OptionExplicit>On</OptionExplicit>
-    <OptionCompare>Binary</OptionCompare>
-    <OptionStrict>Off</OptionStrict>
-    <OptionInfer>On</OptionInfer>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
-    <DebugSymbols>true</DebugSymbols>
-    <DebugType>full</DebugType>
-    <DefineDebug>true</DefineDebug>
-    <DefineTrace>true</DefineTrace>
-    <OutputPath>bin\Debug\</OutputPath>
-    <DocumentationFile>mz80k_kbd.xml</DocumentationFile>
-    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
-  </PropertyGroup>
-  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
-    <DebugType>pdbonly</DebugType>
-    <DefineDebug>false</DefineDebug>
-    <DefineTrace>true</DefineTrace>
-    <Optimize>true</Optimize>
-    <OutputPath>bin\Release\</OutputPath>
-    <DocumentationFile>mz80k_kbd.xml</DocumentationFile>
-    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>
-  </PropertyGroup>
-  <ItemGroup>
-    <Reference Include="System" />
-    <Reference Include="System.Data" />
-    <Reference Include="System.Deployment" />
-    <Reference Include="System.Drawing" />
-    <Reference Include="System.Windows.Forms" />
-    <Reference Include="System.Xml" />
-    <Reference Include="System.Core">
-      <RequiredTargetFramework>3.5</RequiredTargetFramework>
-    </Reference>
-    <Reference Include="System.Xml.Linq">
-      <RequiredTargetFramework>3.5</RequiredTargetFramework>
-    </Reference>
-    <Reference Include="System.Data.DataSetExtensions">
-      <RequiredTargetFramework>3.5</RequiredTargetFramework>
-    </Reference>
-  </ItemGroup>
-  <ItemGroup>
-    <Import Include="Microsoft.VisualBasic" />
-    <Import Include="System" />
-    <Import Include="System.Collections" />
-    <Import Include="System.Collections.Generic" />
-    <Import Include="System.Data" />
-    <Import Include="System.Drawing" />
-    <Import Include="System.Diagnostics" />
-    <Import Include="System.Windows.Forms" />
-    <Import Include="System.Linq" />
-    <Import Include="System.Xml.Linq" />
-  </ItemGroup>
-  <ItemGroup>
-    <Compile Include="Form1.vb">
-      <SubType>Form</SubType>
-    </Compile>
-    <Compile Include="Form1.Designer.vb">
-      <DependentUpon>Form1.vb</DependentUpon>
-      <SubType>Form</SubType>
-    </Compile>
-    <Compile Include="My Project\AssemblyInfo.vb" />
-    <Compile Include="My Project\Application.Designer.vb">
-      <AutoGen>True</AutoGen>
-      <DependentUpon>Application.myapp</DependentUpon>
-    </Compile>
-    <Compile Include="My Project\Resources.Designer.vb">
-      <AutoGen>True</AutoGen>
-      <DesignTime>True</DesignTime>
-      <DependentUpon>Resources.resx</DependentUpon>
-    </Compile>
-    <Compile Include="My Project\Settings.Designer.vb">
-      <AutoGen>True</AutoGen>
-      <DependentUpon>Settings.settings</DependentUpon>
-      <DesignTimeSharedInput>True</DesignTimeSharedInput>
-    </Compile>
-  </ItemGroup>
-  <ItemGroup>
-    <EmbeddedResource Include="Form1.resx">
-      <DependentUpon>Form1.vb</DependentUpon>
-      <SubType>Designer</SubType>
-    </EmbeddedResource>
-    <EmbeddedResource Include="My Project\Resources.resx">
-      <Generator>VbMyResourcesResXFileCodeGenerator</Generator>
-      <LastGenOutput>Resources.Designer.vb</LastGenOutput>
-      <CustomToolNamespace>My.Resources</CustomToolNamespace>
-      <SubType>Designer</SubType>
-    </EmbeddedResource>
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="My Project\Application.myapp">
-      <Generator>MyApplicationCodeGenerator</Generator>
-      <LastGenOutput>Application.Designer.vb</LastGenOutput>
-    </None>
-    <None Include="My Project\Settings.settings">
-      <Generator>SettingsSingleFileGenerator</Generator>
-      <CustomToolNamespace>My</CustomToolNamespace>
-      <LastGenOutput>Settings.Designer.vb</LastGenOutput>
-    </None>
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\0.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\1.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\2.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\3.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\4.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\5.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\6.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\7.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\8.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\9.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\MINUS.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\Q.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\W.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\E.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\R.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\T.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\Y.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\U.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\I.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\O.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\P.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\EQUAL.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\A.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\S.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\D.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\F.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\G.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\H.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\J.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\K.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\L.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\SEMICOLON.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\PLUS.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\Z.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\X.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\C.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\V.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\B.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\N.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\M.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\COMMA.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\PERIOD.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\SLASH.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\KANA.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\SHIFT.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\HOME.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\DELETE.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\SPACE.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\DOWN.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\RIGHT.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\BREAK.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\CR.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH11.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH12.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH13.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH14.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH21.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH22.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH23.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH24.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH31.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH32.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH33.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH34.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH41.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH42.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH43.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH44.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH51.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH52.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH53.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GRAPH54.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\GETSU.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\SUI.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\KIN.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\SEI.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\YEN.PNG" />
-  </ItemGroup>
-  <ItemGroup>
-    <None Include="Resource\SHIFT_PRESSED.PNG" />
-  </ItemGroup>
-  <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />
-  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
-       Other similar extension points exist, see Microsoft.Common.targets.
-  <Target Name="BeforeBuild">
-  </Target>
-  <Target Name="AfterBuild">
-  </Target>
-  -->
+<?xml version="1.0" encoding="utf-8"?>\r
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">\r
+  <PropertyGroup>\r
+    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>\r
+    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>\r
+    <ProductVersion>9.0.21022</ProductVersion>\r
+    <SchemaVersion>2.0</SchemaVersion>\r
+    <ProjectGuid>{BDEE6120-791D-431D-ACD8-FA10C0D9ECF6}</ProjectGuid>\r
+    <OutputType>WinExe</OutputType>\r
+    <StartupObject>mz80k_kbd.My.MyApplication</StartupObject>\r
+    <RootNamespace>mz80k_kbd</RootNamespace>\r
+    <AssemblyName>mz80k_kbd</AssemblyName>\r
+    <FileAlignment>512</FileAlignment>\r
+    <MyType>WindowsForms</MyType>\r
+    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>\r
+    <OptionExplicit>On</OptionExplicit>\r
+    <OptionCompare>Binary</OptionCompare>\r
+    <OptionStrict>Off</OptionStrict>\r
+    <OptionInfer>On</OptionInfer>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">\r
+    <DebugSymbols>true</DebugSymbols>\r
+    <DebugType>full</DebugType>\r
+    <DefineDebug>true</DefineDebug>\r
+    <DefineTrace>true</DefineTrace>\r
+    <OutputPath>bin\Debug\</OutputPath>\r
+    <DocumentationFile>mz80k_kbd.xml</DocumentationFile>\r
+    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>\r
+  </PropertyGroup>\r
+  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">\r
+    <DebugType>pdbonly</DebugType>\r
+    <DefineDebug>false</DefineDebug>\r
+    <DefineTrace>true</DefineTrace>\r
+    <Optimize>true</Optimize>\r
+    <OutputPath>bin\Release\</OutputPath>\r
+    <DocumentationFile>mz80k_kbd.xml</DocumentationFile>\r
+    <NoWarn>42016,41999,42017,42018,42019,42032,42036,42020,42021,42022</NoWarn>\r
+  </PropertyGroup>\r
+  <ItemGroup>\r
+    <Reference Include="System" />\r
+    <Reference Include="System.Data" />\r
+    <Reference Include="System.Deployment" />\r
+    <Reference Include="System.Drawing" />\r
+    <Reference Include="System.Windows.Forms" />\r
+    <Reference Include="System.Xml" />\r
+    <Reference Include="System.Core">\r
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>\r
+    </Reference>\r
+    <Reference Include="System.Xml.Linq">\r
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>\r
+    </Reference>\r
+    <Reference Include="System.Data.DataSetExtensions">\r
+      <RequiredTargetFramework>3.5</RequiredTargetFramework>\r
+    </Reference>\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <Import Include="Microsoft.VisualBasic" />\r
+    <Import Include="System" />\r
+    <Import Include="System.Collections" />\r
+    <Import Include="System.Collections.Generic" />\r
+    <Import Include="System.Data" />\r
+    <Import Include="System.Drawing" />\r
+    <Import Include="System.Diagnostics" />\r
+    <Import Include="System.Windows.Forms" />\r
+    <Import Include="System.Linq" />\r
+    <Import Include="System.Xml.Linq" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <Compile Include="Form1.vb">\r
+      <SubType>Form</SubType>\r
+    </Compile>\r
+    <Compile Include="Form1.Designer.vb">\r
+      <DependentUpon>Form1.vb</DependentUpon>\r
+      <SubType>Form</SubType>\r
+    </Compile>\r
+    <Compile Include="My Project\AssemblyInfo.vb" />\r
+    <Compile Include="My Project\Application.Designer.vb">\r
+      <AutoGen>True</AutoGen>\r
+      <DependentUpon>Application.myapp</DependentUpon>\r
+    </Compile>\r
+    <Compile Include="My Project\Resources.Designer.vb">\r
+      <AutoGen>True</AutoGen>\r
+      <DesignTime>True</DesignTime>\r
+      <DependentUpon>Resources.resx</DependentUpon>\r
+    </Compile>\r
+    <Compile Include="My Project\Settings.Designer.vb">\r
+      <AutoGen>True</AutoGen>\r
+      <DependentUpon>Settings.settings</DependentUpon>\r
+      <DesignTimeSharedInput>True</DesignTimeSharedInput>\r
+    </Compile>\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <EmbeddedResource Include="Form1.resx">\r
+      <DependentUpon>Form1.vb</DependentUpon>\r
+      <SubType>Designer</SubType>\r
+    </EmbeddedResource>\r
+    <EmbeddedResource Include="My Project\Resources.resx">\r
+      <Generator>VbMyResourcesResXFileCodeGenerator</Generator>\r
+      <LastGenOutput>Resources.Designer.vb</LastGenOutput>\r
+      <CustomToolNamespace>My.Resources</CustomToolNamespace>\r
+      <SubType>Designer</SubType>\r
+    </EmbeddedResource>\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="My Project\Application.myapp">\r
+      <Generator>MyApplicationCodeGenerator</Generator>\r
+      <LastGenOutput>Application.Designer.vb</LastGenOutput>\r
+    </None>\r
+    <None Include="My Project\Settings.settings">\r
+      <Generator>SettingsSingleFileGenerator</Generator>\r
+      <CustomToolNamespace>My</CustomToolNamespace>\r
+      <LastGenOutput>Settings.Designer.vb</LastGenOutput>\r
+    </None>\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\0.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\1.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\2.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\3.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\4.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\5.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\6.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\7.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\8.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\9.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\MINUS.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\Q.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\W.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\E.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\R.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\T.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\Y.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\U.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\I.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\O.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\P.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\EQUAL.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\A.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\S.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\D.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\F.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\G.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\H.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\J.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\K.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\L.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\SEMICOLON.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\PLUS.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\Z.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\X.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\C.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\V.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\B.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\N.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\M.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\COMMA.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\PERIOD.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\SLASH.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\KANA.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\SHIFT.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\HOME.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\DELETE.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\SPACE.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\DOWN.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\RIGHT.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\BREAK.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\CR.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH11.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH12.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH13.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH14.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH21.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH22.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH23.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH24.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH31.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH32.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH33.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH34.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH41.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH42.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH43.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH44.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH51.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH52.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH53.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GRAPH54.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\GETSU.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\SUI.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\KIN.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\SEI.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\YEN.PNG" />\r
+  </ItemGroup>\r
+  <ItemGroup>\r
+    <None Include="Resource\SHIFT_PRESSED.PNG" />\r
+  </ItemGroup>\r
+  <Import Project="$(MSBuildToolsPath)\Microsoft.VisualBasic.targets" />\r
+  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. \r
+       Other similar extension points exist, see Microsoft.Common.targets.\r
+  <Target Name="BeforeBuild">\r
+  </Target>\r
+  <Target Name="AfterBuild">\r
+  </Target>\r
+  -->\r
 </Project>
\ No newline at end of file
index d323522..edc840f 100644 (file)
-
-#include <windows.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-void main()
-{
-       // create dib section (32x32, 16bpp)
-       LPBYTE lpBuf = (LPBYTE)GlobalAlloc(GPTR, sizeof(BITMAPINFO));
-       LPBITMAPINFO lpDib = (LPBITMAPINFO)lpBuf;
-       lpDib->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
-       lpDib->bmiHeader.biWidth = 32;
-       lpDib->bmiHeader.biHeight = 32;
-       lpDib->bmiHeader.biPlanes = 1;
-       lpDib->bmiHeader.biBitCount = 16;
-       lpDib->bmiHeader.biCompression = BI_RGB;
-       lpDib->bmiHeader.biSizeImage = 0;
-       lpDib->bmiHeader.biXPelsPerMeter = 0;
-       lpDib->bmiHeader.biYPelsPerMeter = 0;
-       lpDib->bmiHeader.biClrUsed = 0;
-       lpDib->bmiHeader.biClrImportant = 0;
-       HDC hdc = CreateDC("DISPLAY", NULL, NULL, NULL);
-       LPWORD lpBmp;
-       HBITMAP hBmp = CreateDIBSection(hdc, lpDib, DIB_RGB_COLORS, (PVOID*)&lpBmp, NULL, 0);
-       HDC hdcDib = CreateCompatibleDC(hdc);
-       SelectObject(hdcDib, hBmp);
-       
-       // create font (ms gothic, 16pt)
-       LOGFONT logfont;
-       logfont.lfEscapement = 0;
-       logfont.lfOrientation = 0;
-       logfont.lfWeight = FW_NORMAL;
-       logfont.lfItalic = FALSE;
-       logfont.lfUnderline = FALSE;
-       logfont.lfStrikeOut = FALSE;
-       logfont.lfCharSet = SHIFTJIS_CHARSET;
-       logfont.lfOutPrecision = OUT_TT_PRECIS;
-       logfont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
-       logfont.lfQuality = DEFAULT_QUALITY; 
-       logfont.lfPitchAndFamily = FIXED_PITCH | FF_DONTCARE;
-       strcpy(logfont.lfFaceName, "\82l\82\83S\83V\83b\83N");
-//     strcpy(logfont.lfFaceName, "\82l\82\96¾\92©");
-       logfont.lfHeight = 16;
-       logfont.lfWidth = 8;
-       HFONT hFont = CreateFontIndirect(&logfont);
-       SelectObject(hdcDib, hFont);
-       SetBkMode(hdcDib, TRANSPARENT);
-       SetTextColor(hdcDib, RGB(255, 255, 255));
-       
-       // convert font
-       FILE* fs = fopen("kanji.txt", "rb");
-       if(fs == NULL) {
-               printf("kanji.txt not found.\n");
-               return;
-       }
-
-       FILE* fd = fopen("kanji.rom", "wb");
-       int c1;
-       while((c1 = fgetc(fs)) != EOF) {
-               memset(lpBmp, 0, 32 * 32 * 2);
-
-               if(c1 == 0x0d || c1 == 0x0a) {
-                       fgetc(fs);
-                       continue;
-               }
-               else if((0x81 <= c1 && c1 <= 0x9f) || 0xe0 <= c1) {
-                       // kanji
-                       char string[3];
-                       string[0] = c1;
-                       string[1] = fgetc(fs);
-                       string[2] = '\0';
-                       ExtTextOut(hdcDib, 0, 0, NULL, NULL, string, 2, NULL);
-               }
-               else {
-                       // 1st
-                       char string[2];
-                       string[0] = c1;
-                       string[1] = '\0';
-                       ExtTextOut(hdcDib, 0, 0, NULL, NULL, string, 1, NULL);
-                       
-                       // 2nd
-                       string[0] = fgetc(fs);
-                       ExtTextOut(hdcDib, 8, 0, NULL, NULL, string, 1, NULL);
-               }
-               for(int y = 0; y < 16; y++) {
-                       LPWORD pat = &lpBmp[32 * (31 - y)];
-                       int d;
-                       d  = pat[ 0] ? 0x80 : 0;
-                       d |= pat[ 1] ? 0x40 : 0;
-                       d |= pat[ 2] ? 0x20 : 0;
-                       d |= pat[ 3] ? 0x10 : 0;
-                       d |= pat[ 4] ? 0x08 : 0;
-                       d |= pat[ 5] ? 0x04 : 0;
-                       d |= pat[ 6] ? 0x02 : 0;
-                       d |= pat[ 7] ? 0x01 : 0;
-                       fputc(d, fd);
-                       d  = pat[ 8] ? 0x80 : 0;
-                       d |= pat[ 9] ? 0x40 : 0;
-                       d |= pat[10] ? 0x20 : 0;
-                       d |= pat[11] ? 0x10 : 0;
-                       d |= pat[12] ? 0x08 : 0;
-                       d |= pat[13] ? 0x04 : 0;
-                       d |= pat[14] ? 0x02 : 0;
-                       d |= pat[15] ? 0x01 : 0;
-                       fputc(d, fd);
-               }
-       }
-       fclose(fd);
-       fclose(fs);
-       
-       // release
-       DeleteObject(hFont);
-       DeleteDC(hdcDib);
-       DeleteObject(hBmp);
-       GlobalFree(lpBuf);
-}
-
+\r
+#include <windows.h>\r
+#include <stdio.h>\r
+#include <stdlib.h>\r
+\r
+void main()\r
+{\r
+       // create dib section (32x32, 16bpp)\r
+       LPBYTE lpBuf = (LPBYTE)GlobalAlloc(GPTR, sizeof(BITMAPINFO));\r
+       LPBITMAPINFO lpDib = (LPBITMAPINFO)lpBuf;\r
+       lpDib->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);\r
+       lpDib->bmiHeader.biWidth = 32;\r
+       lpDib->bmiHeader.biHeight = 32;\r
+       lpDib->bmiHeader.biPlanes = 1;\r
+       lpDib->bmiHeader.biBitCount = 16;\r
+       lpDib->bmiHeader.biCompression = BI_RGB;\r
+       lpDib->bmiHeader.biSizeImage = 0;\r
+       lpDib->bmiHeader.biXPelsPerMeter = 0;\r
+       lpDib->bmiHeader.biYPelsPerMeter = 0;\r
+       lpDib->bmiHeader.biClrUsed = 0;\r
+       lpDib->bmiHeader.biClrImportant = 0;\r
+       HDC hdc = CreateDC("DISPLAY", NULL, NULL, NULL);\r
+       LPWORD lpBmp;\r
+       HBITMAP hBmp = CreateDIBSection(hdc, lpDib, DIB_RGB_COLORS, (PVOID*)&lpBmp, NULL, 0);\r
+       HDC hdcDib = CreateCompatibleDC(hdc);\r
+       SelectObject(hdcDib, hBmp);\r
+       \r
+       // create font (ms gothic, 16pt)\r
+       LOGFONT logfont;\r
+       logfont.lfEscapement = 0;\r
+       logfont.lfOrientation = 0;\r
+       logfont.lfWeight = FW_NORMAL;\r
+       logfont.lfItalic = FALSE;\r
+       logfont.lfUnderline = FALSE;\r
+       logfont.lfStrikeOut = FALSE;\r
+       logfont.lfCharSet = SHIFTJIS_CHARSET;\r
+       logfont.lfOutPrecision = OUT_TT_PRECIS;\r
+       logfont.lfClipPrecision = CLIP_DEFAULT_PRECIS;\r
+       logfont.lfQuality = DEFAULT_QUALITY; \r
+       logfont.lfPitchAndFamily = FIXED_PITCH | FF_DONTCARE;\r
+       strcpy(logfont.lfFaceName, "\82l\82\83S\83V\83b\83N");\r
+//     strcpy(logfont.lfFaceName, "\82l\82\96¾\92©");\r
+       logfont.lfHeight = 16;\r
+       logfont.lfWidth = 8;\r
+       HFONT hFont = CreateFontIndirect(&logfont);\r
+       SelectObject(hdcDib, hFont);\r
+       SetBkMode(hdcDib, TRANSPARENT);\r
+       SetTextColor(hdcDib, RGB(255, 255, 255));\r
+       \r
+       // convert font\r
+       FILE* fs = fopen("kanji.txt", "rb");\r
+       if(fs == NULL) {\r
+               printf("kanji.txt not found.\n");\r
+               return;\r
+       }\r
+\r
+       FILE* fd = fopen("kanji.rom", "wb");\r
+       int c1;\r
+       while((c1 = fgetc(fs)) != EOF) {\r
+               memset(lpBmp, 0, 32 * 32 * 2);\r
+\r
+               if(c1 == 0x0d || c1 == 0x0a) {\r
+                       fgetc(fs);\r
+                       continue;\r
+               }\r
+               else if((0x81 <= c1 && c1 <= 0x9f) || 0xe0 <= c1) {\r
+                       // kanji\r
+                       char string[3];\r
+                       string[0] = c1;\r
+                       string[1] = fgetc(fs);\r
+                       string[2] = '\0';\r
+                       ExtTextOut(hdcDib, 0, 0, NULL, NULL, string, 2, NULL);\r
+               }\r
+               else {\r
+                       // 1st\r
+                       char string[2];\r
+                       string[0] = c1;\r
+                       string[1] = '\0';\r
+                       ExtTextOut(hdcDib, 0, 0, NULL, NULL, string, 1, NULL);\r
+                       \r
+                       // 2nd\r
+                       string[0] = fgetc(fs);\r
+                       ExtTextOut(hdcDib, 8, 0, NULL, NULL, string, 1, NULL);\r
+               }\r
+               for(int y = 0; y < 16; y++) {\r
+                       LPWORD pat = &lpBmp[32 * (31 - y)];\r
+                       int d;\r
+                       d  = pat[ 0] ? 0x80 : 0;\r
+                       d |= pat[ 1] ? 0x40 : 0;\r
+                       d |= pat[ 2] ? 0x20 : 0;\r
+                       d |= pat[ 3] ? 0x10 : 0;\r
+                       d |= pat[ 4] ? 0x08 : 0;\r
+                       d |= pat[ 5] ? 0x04 : 0;\r
+                       d |= pat[ 6] ? 0x02 : 0;\r
+                       d |= pat[ 7] ? 0x01 : 0;\r
+                       fputc(d, fd);\r
+                       d  = pat[ 8] ? 0x80 : 0;\r
+                       d |= pat[ 9] ? 0x40 : 0;\r
+                       d |= pat[10] ? 0x20 : 0;\r
+                       d |= pat[11] ? 0x10 : 0;\r
+                       d |= pat[12] ? 0x08 : 0;\r
+                       d |= pat[13] ? 0x04 : 0;\r
+                       d |= pat[14] ? 0x02 : 0;\r
+                       d |= pat[15] ? 0x01 : 0;\r
+                       fputc(d, fd);\r
+               }\r
+       }\r
+       fclose(fd);\r
+       fclose(fs);\r
+       \r
+       // release\r
+       DeleteObject(hFont);\r
+       DeleteDC(hdcDib);\r
+       DeleteObject(hBmp);\r
+       GlobalFree(lpBuf);\r
+}\r
+\r
index 66decd0..5e0f283 100644 (file)
-#include <windows.h>
-#include <stdio.h>
-#include <memory.h>
-
-#define NARROW(p)      (6 <= (p) && (p) <= 14)
-#define WIDE(p)                (16 <= (p) && (p) <= 80)
-
-int fgetc2(FILE* fp)
-{
-       int dat;
-       while((dat = fgetc(fp)) != EOF) {
-               if(dat == 'N' || dat == 'w' || dat == ',')
-                       return dat;
-       }
-       return EOF;
-}
-
-void main(int argc, char **argv)
-{
-       if(argc < 1)
-               return;
-       
-       // get path
-       int dat, l = 0, h = 0, w = 0, n = 0;
-       bool prev = true;
-       FILE *fs, *fd;
-
-       char root[_MAX_PATH], file[_MAX_PATH];
-       char tmp[_MAX_PATH], dest[_MAX_PATH];
-       GetModuleFileName(NULL, root, _MAX_PATH);
-       int p = strlen(root);
-       while(root[p] != '\\')
-               p--;
-       root[p] = '\0';
-
-       strcpy(tmp, argv[1]);
-       p = strlen(tmp);
-       while(p != 0 && tmp[p] != '\\')
-               p--;
-       if(p)
-               strcpy(file, &tmp[p + 1]);
-       else
-               strcpy(file, argv[1]);
-
-       sprintf(tmp, "%s\\tmp.txt", root);
-       sprintf(dest, "%s\\dest.bin", root);
-       
-       if(strcmp(file, "tmp.txt") == 0) {
-               printf("skip wav->bit\n");
-               goto label;
-       }
-       
-       // convert #1 (wav -> bit)
-       fs = fopen(argv[1], "rb");
-       fd = fopen(tmp, "w");
-       
-       while((dat = fgetc(fs)) != EOF) {
-               bool current = dat & 0x80 ? true : false;
-               if(!prev && current) {
-                       if(NARROW(h) && (NARROW(l) || WIDE(l)))
-                               fputc('N', fd);
-                       else if(WIDE(h) && (WIDE(l) || NARROW(l)))
-                               fputc('w', fd);
-                       else
-                               fprintf(fd, "[%d,%d]", h, l);
-                       l = h = 0;
-               }
-               if(current)
-                       h++;
-               else
-                       l++;
-               prev = current;
-       }
-       fclose(fd);
-       fclose(fs);
-       
-label:
-       // convert #2 (bit -> byte)
-       fs = fopen(tmp, "rb");
-       fd = fopen(dest, "wb");
-       
-       while((dat = fgetc2(fs)) != EOF) {
-               if(dat != 'N')
-                       continue;
-               int d = 0;
-               d |= (fgetc2(fs) == 'w') ? 0x01 : 0;
-               d |= (fgetc2(fs) == 'w') ? 0x02 : 0;
-               d |= (fgetc2(fs) == 'w') ? 0x04 : 0;
-               d |= (fgetc2(fs) == 'w') ? 0x08 : 0;
-               d |= (fgetc2(fs) == 'w') ? 0x10 : 0;
-               d |= (fgetc2(fs) == 'w') ? 0x20 : 0;
-               d |= (fgetc2(fs) == 'w') ? 0x40 : 0;
-               d |= (fgetc2(fs) == 'w') ? 0x80 : 0;
-               if(fgetc2(fs) != 'w')
-                       continue;
-               fputc(d, fd);
-       }
-       fclose(fd);
-       fclose(fs);
-}
+#include <windows.h>\r
+#include <stdio.h>\r
+#include <memory.h>\r
+\r
+#define NARROW(p)      (6 <= (p) && (p) <= 14)\r
+#define WIDE(p)                (16 <= (p) && (p) <= 80)\r
+\r
+int fgetc2(FILE* fp)\r
+{\r
+       int dat;\r
+       while((dat = fgetc(fp)) != EOF) {\r
+               if(dat == 'N' || dat == 'w' || dat == ',')\r
+                       return dat;\r
+       }\r
+       return EOF;\r
+}\r
+\r
+void main(int argc, char **argv)\r
+{\r
+       if(argc < 1)\r
+               return;\r
+       \r
+       // get path\r
+       int dat, l = 0, h = 0, w = 0, n = 0;\r
+       bool prev = true;\r
+       FILE *fs, *fd;\r
+\r
+       char root[_MAX_PATH], file[_MAX_PATH];\r
+       char tmp[_MAX_PATH], dest[_MAX_PATH];\r
+       GetModuleFileName(NULL, root, _MAX_PATH);\r
+       int p = strlen(root);\r
+       while(root[p] != '\\')\r
+               p--;\r
+       root[p] = '\0';\r
+\r
+       strcpy(tmp, argv[1]);\r
+       p = strlen(tmp);\r
+       while(p != 0 && tmp[p] != '\\')\r
+               p--;\r
+       if(p)\r
+               strcpy(file, &tmp[p + 1]);\r
+       else\r
+               strcpy(file, argv[1]);\r
+\r
+       sprintf(tmp, "%s\\tmp.txt", root);\r
+       sprintf(dest, "%s\\dest.bin", root);\r
+       \r
+       if(strcmp(file, "tmp.txt") == 0) {\r
+               printf("skip wav->bit\n");\r
+               goto label;\r
+       }\r
+       \r
+       // convert #1 (wav -> bit)\r
+       fs = fopen(argv[1], "rb");\r
+       fd = fopen(tmp, "w");\r
+       \r
+       while((dat = fgetc(fs)) != EOF) {\r
+               bool current = dat & 0x80 ? true : false;\r
+               if(!prev && current) {\r
+                       if(NARROW(h) && (NARROW(l) || WIDE(l)))\r
+                               fputc('N', fd);\r
+                       else if(WIDE(h) && (WIDE(l) || NARROW(l)))\r
+                               fputc('w', fd);\r
+                       else\r
+                               fprintf(fd, "[%d,%d]", h, l);\r
+                       l = h = 0;\r
+               }\r
+               if(current)\r
+                       h++;\r
+               else\r
+                       l++;\r
+               prev = current;\r
+       }\r
+       fclose(fd);\r
+       fclose(fs);\r
+       \r
+label:\r
+       // convert #2 (bit -> byte)\r
+       fs = fopen(tmp, "rb");\r
+       fd = fopen(dest, "wb");\r
+       \r
+       while((dat = fgetc2(fs)) != EOF) {\r
+               if(dat != 'N')\r
+                       continue;\r
+               int d = 0;\r
+               d |= (fgetc2(fs) == 'w') ? 0x01 : 0;\r
+               d |= (fgetc2(fs) == 'w') ? 0x02 : 0;\r
+               d |= (fgetc2(fs) == 'w') ? 0x04 : 0;\r
+               d |= (fgetc2(fs) == 'w') ? 0x08 : 0;\r
+               d |= (fgetc2(fs) == 'w') ? 0x10 : 0;\r
+               d |= (fgetc2(fs) == 'w') ? 0x20 : 0;\r
+               d |= (fgetc2(fs) == 'w') ? 0x40 : 0;\r
+               d |= (fgetc2(fs) == 'w') ? 0x80 : 0;\r
+               if(fgetc2(fs) != 'w')\r
+                       continue;\r
+               fputc(d, fd);\r
+       }\r
+       fclose(fd);\r
+       fclose(fs);\r
+}\r
index 41358fd..d3d97fe 100644 (file)
-
-#include <windows.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <mbstring.h>
-
-void sjis2jis(int *p1, int *p2) {
-       int c = _mbcjmstojis(*p1 * 256 + *p2);
-       *p1 = (c >> 8) & 0xff;
-       *p2 = c & 0xff;
-}
-
-void main()
-{
-       unsigned char buf[0x20000];
-       memset(buf, 0, sizeof(buf));
-       
-       FILE* fp = fopen("kanji.txt", "rb");
-       if(fp == NULL) {
-               printf("kanji.txt not found.\n");
-               return;
-       }
-       
-       // create dib section (32x32, 16bpp)
-       LPBYTE lpBuf = (LPBYTE)GlobalAlloc(GPTR, sizeof(BITMAPINFO));
-       LPBITMAPINFO lpDib = (LPBITMAPINFO)lpBuf;
-       lpDib->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
-       lpDib->bmiHeader.biWidth = 32;
-       lpDib->bmiHeader.biHeight = 32;
-       lpDib->bmiHeader.biPlanes = 1;
-       lpDib->bmiHeader.biBitCount = 16;
-       lpDib->bmiHeader.biCompression = BI_RGB;
-       lpDib->bmiHeader.biSizeImage = 0;
-       lpDib->bmiHeader.biXPelsPerMeter = 0;
-       lpDib->bmiHeader.biYPelsPerMeter = 0;
-       lpDib->bmiHeader.biClrUsed = 0;
-       lpDib->bmiHeader.biClrImportant = 0;
-       HDC hdc = CreateDC("DISPLAY", NULL, NULL, NULL);
-       LPWORD lpBmp;
-       HBITMAP hBmp = CreateDIBSection(hdc, lpDib, DIB_RGB_COLORS, (PVOID*)&lpBmp, NULL, 0);
-       HDC hdcDib = CreateCompatibleDC(hdc);
-       SelectObject(hdcDib, hBmp);
-       
-       // create font (ms gothic, 16pt)
-       LOGFONT logfont;
-       logfont.lfEscapement = 0;
-       logfont.lfOrientation = 0;
-       logfont.lfWeight = FW_NORMAL;
-       logfont.lfItalic = FALSE;
-       logfont.lfUnderline = FALSE;
-       logfont.lfStrikeOut = FALSE;
-       logfont.lfCharSet = SHIFTJIS_CHARSET;
-       logfont.lfOutPrecision = OUT_TT_PRECIS;
-       logfont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
-       logfont.lfQuality = DEFAULT_QUALITY; 
-       logfont.lfPitchAndFamily = FIXED_PITCH | FF_DONTCARE;
-       strcpy(logfont.lfFaceName, "\82l\82\83S\83V\83b\83N");
-//     strcpy(logfont.lfFaceName, "\82l\82\96¾\92©");
-       logfont.lfHeight = 16;
-       logfont.lfWidth = 8;
-       HFONT hFont = CreateFontIndirect(&logfont);
-       SelectObject(hdcDib, hFont);
-       SetBkMode(hdcDib, TRANSPARENT);
-       SetTextColor(hdcDib, RGB(255, 255, 255));
-       
-       int c1, c2, ofs;
-       
-       while((c1 = fgetc(fp)) != EOF) {
-               c2 = fgetc(fp);
-               if(!(c1 == 0x20 && c2 == 0x20) && !(c1 == 0x0d && c2 == 0x0a)) {
-                       // draw font
-                       memset(lpBmp, 0, 32 * 32 * 2);
-                       char string[3];
-                       string[0] = c1;
-                       string[1] = c2;
-                       string[2] = '\0';
-                       ExtTextOut(hdcDib, 0, 0, NULL, NULL, string, 2, NULL);
-                       
-                       // sjis to jis
-                       sjis2jis(&c1, &c2);
-                       printf("%2x %2x\n", c1, c2);
-                       
-                       // rom address
-                       if(0x20 <= c1 && c1 < 0x28) {
-                               //0010 0BBB 0CCD DDDD
-                               //00CC BBBD DDDD RRRR
-                               int b = c1 & 7;
-                               int c = (c2 >> 5) & 3;
-                               int d = c2 & 0x1f;
-                               ofs = (c << 13) | (b << 10) | (d << 5);
-                       }
-                       else {
-                               //0AAB BBBB 0CCD DDDD
-                               //CCBB BBBD DDDD RRRR
-                               int b = c1 & 0x1f;
-                               int c = (c2 >> 5) & 3;
-                               int d = c2 & 0x1f;
-                               ofs = (c << 15) | (b << 10) | (d << 5);
-                       }
-                       for(int y = 0; y < 16; y++) {
-                               LPWORD pat = &lpBmp[32 * (31 - y)];
-                               int d;
-                               d  = pat[ 0] ? 0x01 : 0;
-                               d |= pat[ 1] ? 0x02 : 0;
-                               d |= pat[ 2] ? 0x04 : 0;
-                               d |= pat[ 3] ? 0x08 : 0;
-                               d |= pat[ 4] ? 0x10 : 0;
-                               d |= pat[ 5] ? 0x20 : 0;
-                               d |= pat[ 6] ? 0x40 : 0;
-                               d |= pat[ 7] ? 0x80 : 0;
-                               buf[ofs++] = d;
-                               d  = pat[ 8] ? 0x01 : 0;
-                               d |= pat[ 9] ? 0x02 : 0;
-                               d |= pat[10] ? 0x04 : 0;
-                               d |= pat[11] ? 0x08 : 0;
-                               d |= pat[12] ? 0x10 : 0;
-                               d |= pat[13] ? 0x20 : 0;
-                               d |= pat[14] ? 0x40 : 0;
-                               d |= pat[15] ? 0x80 : 0;
-                               buf[ofs++] = d;
-                       }
-               }
-       }
-       fclose(fp);
-       
-       // output
-       fp = fopen("kanji.rom", "wb");
-       fwrite(buf, sizeof(buf), 1, fp);
-       fclose(fp);
-       
-       // release
-       DeleteObject(hFont);
-       DeleteDC(hdcDib);
-       DeleteObject(hBmp);
-       GlobalFree(lpBuf);
-}
-
+\r
+#include <windows.h>\r
+#include <stdio.h>\r
+#include <stdlib.h>\r
+#include <mbstring.h>\r
+\r
+void sjis2jis(int *p1, int *p2) {\r
+       int c = _mbcjmstojis(*p1 * 256 + *p2);\r
+       *p1 = (c >> 8) & 0xff;\r
+       *p2 = c & 0xff;\r
+}\r
+\r
+void main()\r
+{\r
+       unsigned char buf[0x20000];\r
+       memset(buf, 0, sizeof(buf));\r
+       \r
+       FILE* fp = fopen("kanji.txt", "rb");\r
+       if(fp == NULL) {\r
+               printf("kanji.txt not found.\n");\r
+               return;\r
+       }\r
+       \r
+       // create dib section (32x32, 16bpp)\r
+       LPBYTE lpBuf = (LPBYTE)GlobalAlloc(GPTR, sizeof(BITMAPINFO));\r
+       LPBITMAPINFO lpDib = (LPBITMAPINFO)lpBuf;\r
+       lpDib->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);\r
+       lpDib->bmiHeader.biWidth = 32;\r
+       lpDib->bmiHeader.biHeight = 32;\r
+       lpDib->bmiHeader.biPlanes = 1;\r
+       lpDib->bmiHeader.biBitCount = 16;\r
+       lpDib->bmiHeader.biCompression = BI_RGB;\r
+       lpDib->bmiHeader.biSizeImage = 0;\r
+       lpDib->bmiHeader.biXPelsPerMeter = 0;\r
+       lpDib->bmiHeader.biYPelsPerMeter = 0;\r
+       lpDib->bmiHeader.biClrUsed = 0;\r
+       lpDib->bmiHeader.biClrImportant = 0;\r
+       HDC hdc = CreateDC("DISPLAY", NULL, NULL, NULL);\r
+       LPWORD lpBmp;\r
+       HBITMAP hBmp = CreateDIBSection(hdc, lpDib, DIB_RGB_COLORS, (PVOID*)&lpBmp, NULL, 0);\r
+       HDC hdcDib = CreateCompatibleDC(hdc);\r
+       SelectObject(hdcDib, hBmp);\r
+       \r
+       // create font (ms gothic, 16pt)\r
+       LOGFONT logfont;\r
+       logfont.lfEscapement = 0;\r
+       logfont.lfOrientation = 0;\r
+       logfont.lfWeight = FW_NORMAL;\r
+       logfont.lfItalic = FALSE;\r
+       logfont.lfUnderline = FALSE;\r
+       logfont.lfStrikeOut = FALSE;\r
+       logfont.lfCharSet = SHIFTJIS_CHARSET;\r
+       logfont.lfOutPrecision = OUT_TT_PRECIS;\r
+       logfont.lfClipPrecision = CLIP_DEFAULT_PRECIS;\r
+       logfont.lfQuality = DEFAULT_QUALITY; \r
+       logfont.lfPitchAndFamily = FIXED_PITCH | FF_DONTCARE;\r
+       strcpy(logfont.lfFaceName, "\82l\82\83S\83V\83b\83N");\r
+//     strcpy(logfont.lfFaceName, "\82l\82\96¾\92©");\r
+       logfont.lfHeight = 16;\r
+       logfont.lfWidth = 8;\r
+       HFONT hFont = CreateFontIndirect(&logfont);\r
+       SelectObject(hdcDib, hFont);\r
+       SetBkMode(hdcDib, TRANSPARENT);\r
+       SetTextColor(hdcDib, RGB(255, 255, 255));\r
+       \r
+       int c1, c2, ofs;\r
+       \r
+       while((c1 = fgetc(fp)) != EOF) {\r
+               c2 = fgetc(fp);\r
+               if(!(c1 == 0x20 && c2 == 0x20) && !(c1 == 0x0d && c2 == 0x0a)) {\r
+                       // draw font\r
+                       memset(lpBmp, 0, 32 * 32 * 2);\r
+                       char string[3];\r
+                       string[0] = c1;\r
+                       string[1] = c2;\r
+                       string[2] = '\0';\r
+                       ExtTextOut(hdcDib, 0, 0, NULL, NULL, string, 2, NULL);\r
+                       \r
+                       // sjis to jis\r
+                       sjis2jis(&c1, &c2);\r
+                       printf("%2x %2x\n", c1, c2);\r
+                       \r
+                       // rom address\r
+                       if(0x20 <= c1 && c1 < 0x28) {\r
+                               //0010 0BBB 0CCD DDDD\r
+                               //00CC BBBD DDDD RRRR\r
+                               int b = c1 & 7;\r
+                               int c = (c2 >> 5) & 3;\r
+                               int d = c2 & 0x1f;\r
+                               ofs = (c << 13) | (b << 10) | (d << 5);\r
+                       }\r
+                       else {\r
+                               //0AAB BBBB 0CCD DDDD\r
+                               //CCBB BBBD DDDD RRRR\r
+                               int b = c1 & 0x1f;\r
+                               int c = (c2 >> 5) & 3;\r
+                               int d = c2 & 0x1f;\r
+                               ofs = (c << 15) | (b << 10) | (d << 5);\r
+                       }\r
+                       for(int y = 0; y < 16; y++) {\r
+                               LPWORD pat = &lpBmp[32 * (31 - y)];\r
+                               int d;\r
+                               d  = pat[ 0] ? 0x01 : 0;\r
+                               d |= pat[ 1] ? 0x02 : 0;\r
+                               d |= pat[ 2] ? 0x04 : 0;\r
+                               d |= pat[ 3] ? 0x08 : 0;\r
+                               d |= pat[ 4] ? 0x10 : 0;\r
+                               d |= pat[ 5] ? 0x20 : 0;\r
+                               d |= pat[ 6] ? 0x40 : 0;\r
+                               d |= pat[ 7] ? 0x80 : 0;\r
+                               buf[ofs++] = d;\r
+                               d  = pat[ 8] ? 0x01 : 0;\r
+                               d |= pat[ 9] ? 0x02 : 0;\r
+                               d |= pat[10] ? 0x04 : 0;\r
+                               d |= pat[11] ? 0x08 : 0;\r
+                               d |= pat[12] ? 0x10 : 0;\r
+                               d |= pat[13] ? 0x20 : 0;\r
+                               d |= pat[14] ? 0x40 : 0;\r
+                               d |= pat[15] ? 0x80 : 0;\r
+                               buf[ofs++] = d;\r
+                       }\r
+               }\r
+       }\r
+       fclose(fp);\r
+       \r
+       // output\r
+       fp = fopen("kanji.rom", "wb");\r
+       fwrite(buf, sizeof(buf), 1, fp);\r
+       fclose(fp);\r
+       \r
+       // release\r
+       DeleteObject(hFont);\r
+       DeleteDC(hdcDib);\r
+       DeleteObject(hBmp);\r
+       GlobalFree(lpBuf);\r
+}\r
+\r
index cbf83d6..d545906 100644 (file)
@@ -1,12 +1,12 @@
-- DUMP1.EXE\r
-\r
-       IPL.ROM         64KB\r
-       DICT.ROM        512KB\r
-       KANJI.ROM       256KB\r
-\r
-- DUMP2.EXE\r
-\r
-       ROMDRV.ROM      512KB\r
-\r
-Run on RAM drive and transfer the dumped images with XMODEM/SUM.\r
-Or run on the floppy dirve in the docking station.\r
+- DUMP1.EXE
+
+       IPL.ROM         64KB
+       DICT.ROM        512KB
+       KANJI.ROM       256KB
+
+- DUMP2.EXE
+
+       ROMDRV.ROM      512KB
+
+Run on RAM drive and transfer the dumped images with XMODEM/SUM.
+Or run on the floppy dirve in the docking station.
index afdd509..13ac6a1 100644 (file)
-
-#include <windows.h>
-#include <stdio.h>
-#include <stdlib.h>
-
-#if (defined(_MSC_VER) && (_MSC_VER == 1200)) || defined(_WIN32_WCE)
-#define for if(0);else for
-#endif
-
-static const int table[64][3] = {
-       {0xC5, 0xC5, 0}, {0xC4, 0xC4, 0}, {0xE5, 0xE5, 0}, {0xE3, 0xE3, 0},
-       {0xE4, 0xE4, 0}, {0xE1, 0xE1, 0}, {0xE0, 0xE0, 0}, {0xE2, 0xE2, 0},
-       {0xAA, 0xAA, 0}, {0xEF, 0xEF, 0}, {0xED, 0xED, 0}, {0xEC, 0xEC, 0},
-       {0xEE, 0xEE, 0}, {0xDC, 0xDC, 0}, {0xF9, 0xF9, 0}, {0xFC, 0xFC, 0},
-       {0xFA, 0xFA, 0}, {0xF9, 0xF9, 0}, {0xFB, 0xFB, 0}, {0xC9, 0xC9, 0},
-       {0xEB, 0xEB, 0}, {0xE9, 0xE9, 0}, {0xE9, 0xE9, 0}, {0xE8, 0xE8, 0},
-       {0xEA, 0xEA, 0}, {0xD6, 0xD6, 0}, {0xF6, 0xF6, 0}, {0xF3, 0xF3, 0},
-       {0xF2, 0xF2, 0}, {0xF4, 0xF4, 0}, {0xBA, 0xBA, 0}, {0xD1, 0xD1, 0},
-       {0xF1, 0xF1, 0}, {0xA2, 0xA2, 0}, {0xA1, 0xA1, 0}, {0xBF, 0xBF, 0},
-       {0xFF, 0xFF, 0}, {0xDF, 0xDF, 0}, {0xD8, 0xD8, 0}, {0xF8, 0xF8, 0},
-       {0xA4, 0xA4, 0}, {0xC6, 0xC6, 0}, {0xE6, 0xE6, 0}, {0x46, 0x45, 0},
-       {0x49, 0x4A, 0}, {0x69, 0x6A, 0}, {0x50, 0x74, 0}, {0xA7, 0xA7, 0},
-       {0xC7, 0xC7, 0}, {0xE7, 0xE7, 0}, {0xBD, 0xBD, 0}, {0xBC, 0xBC, 0},
-       {0x66, 0x66, 0}, {0xB0, 0xB0, 0}, {0xB7, 0xB7, 0}, {0xA8, 0xA8, 0},
-       {0xA5, 0xA5, 0}, {0xA2, 0xA2, 0}, {0xA3, 0xA3, 0}, {0xA3, 0xA3, 0},
-       {0xAC, 0xAC, 1}, {0xAC, 0xAC, 0}, {0xAB, 0xAB, 0}, {0xBB, 0xBB, 0},
-};
-
-LPWORD lpBmp;
-HDC hdcDib;
-HFONT hFont[16];
-HFONT hFontNarrow;
-
-void draw(int c1, int c2, int mir, FILE* fo)
-{
-       if(c1 == c2) {
-               for(int i = 14; i >= 7; i--) {
-                       memset(lpBmp, 0, 32 * 32 * 2);
-                       SelectObject(hdcDib, hFont[i]);
-                       char string[2];
-                       string[0] = c1;
-                       string[1] = '\0';
-                       ExtTextOut(hdcDib, 0, 0, NULL, NULL, string, 1, NULL);
-                       int w = 0;
-                       for(int y = 0; y < 18; y++) {
-                               LPWORD pat = &lpBmp[32 * (31 - y)];
-                               for(int x = 14; x < 32; x++) {
-                                       if(pat[x]) {
-                                               w = 1;
-                                               goto exit;
-                                       }
-                               }
-                       }
-exit:
-                       if(!w) break;
-               }
-       }
-       else {
-               memset(lpBmp, 0, 32 * 32 * 2);
-               SelectObject(hdcDib, hFont[7]);
-               char string[2];
-               string[0] = c1;
-               string[1] = '\0';
-               ExtTextOut(hdcDib, 0, 0, NULL, NULL, string, 1, NULL);
-               string[0] = c2;
-               ExtTextOut(hdcDib, 7, 0, NULL, NULL, string, 1, NULL);
-       }
-       if(mir) {
-               WORD tmp[14];
-               for(int y = 0; y < 18; y++) {
-                       LPWORD pat = &lpBmp[32 * (31 - y)];
-                       for(int x = 0; x < 14; x++)
-                               tmp[x] = pat[13 - x];
-                       for(int x = 0; x < 14; x++)
-                               pat[x] = tmp[x];
-               }
-       }
-       for(int y = 0; y < 18; y++) {
-               LPWORD pat = &lpBmp[32 * (31 - y)];
-               int d;
-#if 1
-               d  = pat[ 0] ? 0x40 : 0;
-               d |= pat[ 1] ? 0x20 : 0;
-               d |= pat[ 2] ? 0x10 : 0;
-               d |= pat[ 3] ? 0x08 : 0;
-               d |= pat[ 4] ? 0x04 : 0;
-               d |= pat[ 5] ? 0x02 : 0;
-               d |= pat[ 6] ? 0x01 : 0;
-               fputc(d, fo);
-               d  = pat[ 7] ? 0x80 : 0;
-               d |= pat[ 8] ? 0x40 : 0;
-               d |= pat[ 9] ? 0x20 : 0;
-               d |= pat[10] ? 0x10 : 0;
-               d |= pat[11] ? 0x08 : 0;
-               d |= pat[12] ? 0x04 : 0;
-               d |= pat[13] ? 0x02 : 0;
-               fputc(d, fo);
-#else
-               d  = pat[ 0] ? 0x02 : 0;
-               d |= pat[ 1] ? 0x04 : 0;
-               d |= pat[ 2] ? 0x08 : 0;
-               d |= pat[ 3] ? 0x10 : 0;
-               d |= pat[ 4] ? 0x20 : 0;
-               d |= pat[ 5] ? 0x40 : 0;
-               d |= pat[ 6] ? 0x80 : 0;
-               fputc(d, fo);
-               d  = pat[ 7] ? 0x01 : 0;
-               d |= pat[ 8] ? 0x02 : 0;
-               d |= pat[ 9] ? 0x04 : 0;
-               d |= pat[10] ? 0x08 : 0;
-               d |= pat[11] ? 0x10 : 0;
-               d |= pat[12] ? 0x20 : 0;
-               d |= pat[13] ? 0x40 : 0;
-               fputc(d, fo);
-#endif
-       }
-}
-
-void main(int argc, char *argv[])
-{
-       // create dib section (32x32, 16bpp)
-       LPBYTE lpBuf = (LPBYTE)GlobalAlloc(GPTR, sizeof(BITMAPINFO));
-       LPBITMAPINFO lpDib = (LPBITMAPINFO)lpBuf;
-       lpDib->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
-       lpDib->bmiHeader.biWidth = 32;
-       lpDib->bmiHeader.biHeight = 32;
-       lpDib->bmiHeader.biPlanes = 1;
-       lpDib->bmiHeader.biBitCount = 16;
-       lpDib->bmiHeader.biCompression = BI_RGB;
-       lpDib->bmiHeader.biSizeImage = 0;
-       lpDib->bmiHeader.biXPelsPerMeter = 0;
-       lpDib->bmiHeader.biYPelsPerMeter = 0;
-       lpDib->bmiHeader.biClrUsed = 0;
-       lpDib->bmiHeader.biClrImportant = 0;
-       HDC hdc = CreateDC("DISPLAY", NULL, NULL, NULL);
-       HBITMAP hBmp = CreateDIBSection(hdc, lpDib, DIB_RGB_COLORS, (PVOID*)&lpBmp, NULL, 0);
-       hdcDib = CreateCompatibleDC(hdc);
-       SelectObject(hdcDib, hBmp);
-       
-       // create font (ms gothic, 16pt)
-       LOGFONT logfont;
-       logfont.lfEscapement = 0;
-       logfont.lfOrientation = 0;
-       logfont.lfWeight = FW_NORMAL;
-       logfont.lfItalic = FALSE;
-       logfont.lfUnderline = FALSE;
-       logfont.lfStrikeOut = FALSE;
-       logfont.lfCharSet = DEFAULT_CHARSET;    // EASTEUROPE_CHARSET
-       logfont.lfOutPrecision = OUT_TT_PRECIS;
-       logfont.lfClipPrecision = CLIP_DEFAULT_PRECIS;
-       logfont.lfQuality = DEFAULT_QUALITY; 
-       logfont.lfPitchAndFamily = FIXED_PITCH | FF_DONTCARE;
-       strcpy(logfont.lfFaceName, argv[1]);
-       logfont.lfHeight = 18;
-       for(int i = 7; i <= 14; i++) {
-               logfont.lfWidth = i;
-               hFont[i] = CreateFontIndirect(&logfont);
-       }
-       SetBkMode(hdcDib, TRANSPARENT);
-       SetTextColor(hdcDib, RGB(255, 255, 255));
-       
-       FILE *fo;
-       fo = fopen("out.bin", "wb");
-       for(int i = 0x20; i <= 0x7f; i++)
-               draw(i, i, 0, fo);
-       for(int i = 0; i < 32; i++) {
-               int c1 = table[i][0];
-               int c2 = table[i][1];
-               int mir = table[i][2];
-               draw(c1, c2, mir, fo);
-       }
-       for(int i = 32; i < 64; i++) {
-               int c1 = table[i][0];
-               int c2 = table[i][1];
-               int mir = table[i][2];
-               draw(c1, c2, mir, fo);
-       }
-       fclose(fo);
-       
-       // release
-       for(int i = 7; i <= 14; i++)
-               DeleteObject(hFont[i]);
-       DeleteDC(hdcDib);
-       DeleteObject(hBmp);
-       GlobalFree(lpBuf);
-}
-
+\r
+#include <windows.h>\r
+#include <stdio.h>\r
+#include <stdlib.h>\r
+\r
+#if (defined(_MSC_VER) && (_MSC_VER == 1200)) || defined(_WIN32_WCE)\r
+#define for if(0);else for\r
+#endif\r
+\r
+static const int table[64][3] = {\r
+       {0xC5, 0xC5, 0}, {0xC4, 0xC4, 0}, {0xE5, 0xE5, 0}, {0xE3, 0xE3, 0},\r
+       {0xE4, 0xE4, 0}, {0xE1, 0xE1, 0}, {0xE0, 0xE0, 0}, {0xE2, 0xE2, 0},\r
+       {0xAA, 0xAA, 0}, {0xEF, 0xEF, 0}, {0xED, 0xED, 0}, {0xEC, 0xEC, 0},\r
+       {0xEE, 0xEE, 0}, {0xDC, 0xDC, 0}, {0xF9, 0xF9, 0}, {0xFC, 0xFC, 0},\r
+       {0xFA, 0xFA, 0}, {0xF9, 0xF9, 0}, {0xFB, 0xFB, 0}, {0xC9, 0xC9, 0},\r
+       {0xEB, 0xEB, 0}, {0xE9, 0xE9, 0}, {0xE9, 0xE9, 0}, {0xE8, 0xE8, 0},\r
+       {0xEA, 0xEA, 0}, {0xD6, 0xD6, 0}, {0xF6, 0xF6, 0}, {0xF3, 0xF3, 0},\r
+       {0xF2, 0xF2, 0}, {0xF4, 0xF4, 0}, {0xBA, 0xBA, 0}, {0xD1, 0xD1, 0},\r
+       {0xF1, 0xF1, 0}, {0xA2, 0xA2, 0}, {0xA1, 0xA1, 0}, {0xBF, 0xBF, 0},\r
+       {0xFF, 0xFF, 0}, {0xDF, 0xDF, 0}, {0xD8, 0xD8, 0}, {0xF8, 0xF8, 0},\r
+       {0xA4, 0xA4, 0}, {0xC6, 0xC6, 0}, {0xE6, 0xE6, 0}, {0x46, 0x45, 0},\r
+       {0x49, 0x4A, 0}, {0x69, 0x6A, 0}, {0x50, 0x74, 0}, {0xA7, 0xA7, 0},\r
+       {0xC7, 0xC7, 0}, {0xE7, 0xE7, 0}, {0xBD, 0xBD, 0}, {0xBC, 0xBC, 0},\r
+       {0x66, 0x66, 0}, {0xB0, 0xB0, 0}, {0xB7, 0xB7, 0}, {0xA8, 0xA8, 0},\r
+       {0xA5, 0xA5, 0}, {0xA2, 0xA2, 0}, {0xA3, 0xA3, 0}, {0xA3, 0xA3, 0},\r
+       {0xAC, 0xAC, 1}, {0xAC, 0xAC, 0}, {0xAB, 0xAB, 0}, {0xBB, 0xBB, 0},\r
+};\r
+\r
+LPWORD lpBmp;\r
+HDC hdcDib;\r
+HFONT hFont[16];\r
+HFONT hFontNarrow;\r
+\r
+void draw(int c1, int c2, int mir, FILE* fo)\r
+{\r
+       if(c1 == c2) {\r
+               for(int i = 14; i >= 7; i--) {\r
+                       memset(lpBmp, 0, 32 * 32 * 2);\r
+                       SelectObject(hdcDib, hFont[i]);\r
+                       char string[2];\r
+                       string[0] = c1;\r
+                       string[1] = '\0';\r
+                       ExtTextOut(hdcDib, 0, 0, NULL, NULL, string, 1, NULL);\r
+                       int w = 0;\r
+                       for(int y = 0; y < 18; y++) {\r
+                               LPWORD pat = &lpBmp[32 * (31 - y)];\r
+                               for(int x = 14; x < 32; x++) {\r
+                                       if(pat[x]) {\r
+                                               w = 1;\r
+                                               goto exit;\r
+                                       }\r
+                               }\r
+                       }\r
+exit:\r
+                       if(!w) break;\r
+               }\r
+       }\r
+       else {\r
+               memset(lpBmp, 0, 32 * 32 * 2);\r
+               SelectObject(hdcDib, hFont[7]);\r
+               char string[2];\r
+               string[0] = c1;\r
+               string[1] = '\0';\r
+               ExtTextOut(hdcDib, 0, 0, NULL, NULL, string, 1, NULL);\r
+               string[0] = c2;\r
+               ExtTextOut(hdcDib, 7, 0, NULL, NULL, string, 1, NULL);\r
+       }\r
+       if(mir) {\r
+               WORD tmp[14];\r
+               for(int y = 0; y < 18; y++) {\r
+                       LPWORD pat = &lpBmp[32 * (31 - y)];\r
+                       for(int x = 0; x < 14; x++)\r
+                               tmp[x] = pat[13 - x];\r
+                       for(int x = 0; x < 14; x++)\r
+                               pat[x] = tmp[x];\r
+               }\r
+       }\r
+       for(int y = 0; y < 18; y++) {\r
+               LPWORD pat = &lpBmp[32 * (31 - y)];\r
+               int d;\r
+#if 1\r
+               d  = pat[ 0] ? 0x40 : 0;\r
+               d |= pat[ 1] ? 0x20 : 0;\r
+               d |= pat[ 2] ? 0x10 : 0;\r
+               d |= pat[ 3] ? 0x08 : 0;\r
+               d |= pat[ 4] ? 0x04 : 0;\r
+               d |= pat[ 5] ? 0x02 : 0;\r
+               d |= pat[ 6] ? 0x01 : 0;\r
+               fputc(d, fo);\r
+               d  = pat[ 7] ? 0x80 : 0;\r
+               d |= pat[ 8] ? 0x40 : 0;\r
+               d |= pat[ 9] ? 0x20 : 0;\r
+               d |= pat[10] ? 0x10 : 0;\r
+               d |= pat[11] ? 0x08 : 0;\r
+               d |= pat[12] ? 0x04 : 0;\r
+               d |= pat[13] ? 0x02 : 0;\r
+               fputc(d, fo);\r
+#else\r
+               d  = pat[ 0] ? 0x02 : 0;\r
+               d |= pat[ 1] ? 0x04 : 0;\r
+               d |= pat[ 2] ? 0x08 : 0;\r
+               d |= pat[ 3] ? 0x10 : 0;\r
+               d |= pat[ 4] ? 0x20 : 0;\r
+               d |= pat[ 5] ? 0x40 : 0;\r
+               d |= pat[ 6] ? 0x80 : 0;\r
+               fputc(d, fo);\r
+               d  = pat[ 7] ? 0x01 : 0;\r
+               d |= pat[ 8] ? 0x02 : 0;\r
+               d |= pat[ 9] ? 0x04 : 0;\r
+               d |= pat[10] ? 0x08 : 0;\r
+               d |= pat[11] ? 0x10 : 0;\r
+               d |= pat[12] ? 0x20 : 0;\r
+               d |= pat[13] ? 0x40 : 0;\r
+               fputc(d, fo);\r
+#endif\r
+       }\r
+}\r
+\r
+void main(int argc, char *argv[])\r
+{\r
+       // create dib section (32x32, 16bpp)\r
+       LPBYTE lpBuf = (LPBYTE)GlobalAlloc(GPTR, sizeof(BITMAPINFO));\r
+       LPBITMAPINFO lpDib = (LPBITMAPINFO)lpBuf;\r
+       lpDib->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);\r
+       lpDib->bmiHeader.biWidth = 32;\r
+       lpDib->bmiHeader.biHeight = 32;\r
+       lpDib->bmiHeader.biPlanes = 1;\r
+       lpDib->bmiHeader.biBitCount = 16;\r
+       lpDib->bmiHeader.biCompression = BI_RGB;\r
+       lpDib->bmiHeader.biSizeImage = 0;\r
+       lpDib->bmiHeader.biXPelsPerMeter = 0;\r
+       lpDib->bmiHeader.biYPelsPerMeter = 0;\r
+       lpDib->bmiHeader.biClrUsed = 0;\r
+       lpDib->bmiHeader.biClrImportant = 0;\r
+       HDC hdc = CreateDC("DISPLAY", NULL, NULL, NULL);\r
+       HBITMAP hBmp = CreateDIBSection(hdc, lpDib, DIB_RGB_COLORS, (PVOID*)&lpBmp, NULL, 0);\r
+       hdcDib = CreateCompatibleDC(hdc);\r
+       SelectObject(hdcDib, hBmp);\r
+       \r
+       // create font (ms gothic, 16pt)\r
+       LOGFONT logfont;\r
+       logfont.lfEscapement = 0;\r
+       logfont.lfOrientation = 0;\r
+       logfont.lfWeight = FW_NORMAL;\r
+       logfont.lfItalic = FALSE;\r
+       logfont.lfUnderline = FALSE;\r
+       logfont.lfStrikeOut = FALSE;\r
+       logfont.lfCharSet = DEFAULT_CHARSET;    // EASTEUROPE_CHARSET\r
+       logfont.lfOutPrecision = OUT_TT_PRECIS;\r
+       logfont.lfClipPrecision = CLIP_DEFAULT_PRECIS;\r
+       logfont.lfQuality = DEFAULT_QUALITY; \r
+       logfont.lfPitchAndFamily = FIXED_PITCH | FF_DONTCARE;\r
+       strcpy(logfont.lfFaceName, argv[1]);\r
+       logfont.lfHeight = 18;\r
+       for(int i = 7; i <= 14; i++) {\r
+               logfont.lfWidth = i;\r
+               hFont[i] = CreateFontIndirect(&logfont);\r
+       }\r
+       SetBkMode(hdcDib, TRANSPARENT);\r
+       SetTextColor(hdcDib, RGB(255, 255, 255));\r
+       \r
+       FILE *fo;\r
+       fo = fopen("out.bin", "wb");\r
+       for(int i = 0x20; i <= 0x7f; i++)\r
+               draw(i, i, 0, fo);\r
+       for(int i = 0; i < 32; i++) {\r
+               int c1 = table[i][0];\r
+               int c2 = table[i][1];\r
+               int mir = table[i][2];\r
+               draw(c1, c2, mir, fo);\r
+       }\r
+       for(int i = 32; i < 64; i++) {\r
+               int c1 = table[i][0];\r
+               int c2 = table[i][1];\r
+               int mir = table[i][2];\r
+               draw(c1, c2, mir, fo);\r
+       }\r
+       fclose(fo);\r
+       \r
+       // release\r
+       for(int i = 7; i <= 14; i++)\r
+               DeleteObject(hFont[i]);\r
+       DeleteDC(hdcDib);\r
+       DeleteObject(hBmp);\r
+       GlobalFree(lpBuf);\r
+}\r
+\r
index d7fcce3..c9ac587 100644 (file)
-/* tdlzhuf.c  module to perform lzss-huffman decompression
-   as is used in teledisk.exe
-   Conditionally compiled main to convert *.td0 advanced 
-   compression file back normal compression file.
-   derived from lzhuf.c 1.0 per below 
-
-    This program 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 2 of the License, or
-    (at your option) any later version.
-
-    This program 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 this program; if not, write to the Free Software
-    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-    http://www.gnu.org/licenses/gpl.txt
-
-
-    11/10/02 this was working with struct tdlzhuf * passed to
-    both Decode() and init_Decode() as first arg.  Save this as
-    tdlzhuf1.c and then make this structure locally static and try
-    to switch to unsigned shorts where it matters so works in linux.
-
-Started with program below: 
- * LZHUF.C English version 1.0
- * Based on Japanese version 29-NOV-1988
- * LZSS coded by Haruhiko OKUMURA
- * Adaptive Huffman Coding coded by Haruyasu YOSHIZAKI
- * Edited and translated to English by Kenji RIKITAKE
-
-In summary changes by WTK:
-  wrote a new conditionally compiled main() 
-  remove Encode() modules and arrays
-  make remaing arrays and variables static to hide from external modules
-  add struct tdlzhuf to provide state retension between calls to Decode()
-  change from fgetc(FILE *) to read(int fp) so read
-     a block at a time into an input buffer.  Now the
-     Decode() routine can be called instead of read()
-     by a user, ie from wteledisk.c
-  change size of data elements for Linux, 
-     int -> short
-     unsigned int -> unsigned short
-*/
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <ctype.h>
-#include <windows.h>
-
-/* WTK adds top level control structure to give Decode()
-   a memory between calls
-*/
-#define BUFSZ           512     // new input buffer
-
-static struct tdlzhuf {
-FILE* fp;  // source file handle, opened by caller
-         // next four variables were local in original main()
-         // we need to save these values between calls to Decode()
-unsigned short r,
-               bufcnt,bufndx,bufpos,  // string buffer
-         // the following to allow block reads from input in next_word()
-               ibufcnt,ibufndx; // input buffer counters
-unsigned char  inbuf[BUFSZ];    // input buffer
-} tdctl;
-
-
-
-
-/* LZSS Parameters */
-
-#define N        4096    /* Size of string buffer */
-#define F        60    /* Size of look-ahead buffer */
-#define THRESHOLD    2
-#define NIL        N    /* End of tree's node  */
-
-static unsigned char
-        text_buf[N + F - 1];
-static short    match_position, match_length,
-        lson[N + 1], rson[N + 257], dad[N + 1];
-
-void InitTree(void)  /* Initializing tree */
-{
-    int  i;
-
-    for (i = N + 1; i <= N + 256; i++)
-        rson[i] = NIL;            /* root */
-    for (i = 0; i < N; i++)
-        dad[i] = NIL;            /* node */
-}
-
-void InsertNode(int r)  /* Inserting node to the tree */
-{
-    int  i, p, cmp;
-    unsigned char  *key;
-    unsigned c;
-
-    cmp = 1;
-    key = &text_buf[r];
-    p = N + 1 + key[0];
-    rson[r] = lson[r] = NIL;
-    match_length = 0;
-    for ( ; ; ) {
-        if (cmp >= 0) {
-            if (rson[p] != NIL)
-                p = rson[p];
-            else {
-                rson[p] = r;
-                dad[r] = p;
-                return;
-            }
-        } else {
-            if (lson[p] != NIL)
-                p = lson[p];
-            else {
-                lson[p] = r;
-                dad[r] = p;
-                return;
-            }
-        }
-        for (i = 1; i < F; i++)
-            if ((cmp = key[i] - text_buf[p + i]) != 0)
-                break;
-        if (i > THRESHOLD) {
-            if (i > match_length) {
-                match_position = ((r - p) & (N - 1)) - 1;
-                if ((match_length = i) >= F)
-                    break;
-            }
-            if (i == match_length) {
-                if ((c = ((r - p) & (N - 1)) - 1) < match_position) {
-                    match_position = c;
-                }
-            }
-        }
-    }
-    dad[r] = dad[p];
-    lson[r] = lson[p];
-    rson[r] = rson[p];
-    dad[lson[p]] = r;
-    dad[rson[p]] = r;
-    if (rson[dad[p]] == p)
-        rson[dad[p]] = r;
-    else
-        lson[dad[p]] = r;
-    dad[p] = NIL;  /* remove p */
-}
-
-void DeleteNode(int p)  /* Deleting node from the tree */
-{
-    int  q;
-
-    if (dad[p] == NIL)
-        return;            /* unregistered */
-    if (rson[p] == NIL)
-        q = lson[p];
-    else
-    if (lson[p] == NIL)
-        q = rson[p];
-    else {
-        q = lson[p];
-        if (rson[q] != NIL) {
-            do {
-                q = rson[q];
-            } while (rson[q] != NIL);
-            rson[dad[q]] = lson[q];
-            dad[lson[q]] = dad[q];
-            lson[q] = lson[p];
-            dad[lson[p]] = q;
-        }
-        rson[q] = rson[p];
-        dad[rson[p]] = q;
-    }
-    dad[q] = dad[p];
-    if (rson[dad[p]] == p)
-        rson[dad[p]] = q;
-    else
-        lson[dad[p]] = q;
-    dad[p] = NIL;
-}
-
-/* Huffman coding parameters */
-
-#define N_CHAR      (256 - THRESHOLD + F)
-                /* character code (= 0..N_CHAR-1) */
-#define T         (N_CHAR * 2 - 1)    /* Size of table */
-#define R         (T - 1)            /* root position */
-#define MAX_FREQ    0x8000
-                    /* update when cumulative frequency */
-                    /* reaches to this value */
-
-typedef unsigned char uchar;
-
-/*
- * Tables for encoding/decoding upper 6 bits of
- * sliding dictionary pointer
- */
-
-/* decoder table */
-static uchar d_code[256] = {
-    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
-    0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
-    0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
-    0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02,
-    0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02,
-    0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
-    0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
-    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
-    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
-    0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
-    0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,
-    0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08,
-    0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09,
-    0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A,
-    0x0B, 0x0B, 0x0B, 0x0B, 0x0B, 0x0B, 0x0B, 0x0B,
-    0x0C, 0x0C, 0x0C, 0x0C, 0x0D, 0x0D, 0x0D, 0x0D,
-    0x0E, 0x0E, 0x0E, 0x0E, 0x0F, 0x0F, 0x0F, 0x0F,
-    0x10, 0x10, 0x10, 0x10, 0x11, 0x11, 0x11, 0x11,
-    0x12, 0x12, 0x12, 0x12, 0x13, 0x13, 0x13, 0x13,
-    0x14, 0x14, 0x14, 0x14, 0x15, 0x15, 0x15, 0x15,
-    0x16, 0x16, 0x16, 0x16, 0x17, 0x17, 0x17, 0x17,
-    0x18, 0x18, 0x19, 0x19, 0x1A, 0x1A, 0x1B, 0x1B,
-    0x1C, 0x1C, 0x1D, 0x1D, 0x1E, 0x1E, 0x1F, 0x1F,
-    0x20, 0x20, 0x21, 0x21, 0x22, 0x22, 0x23, 0x23,
-    0x24, 0x24, 0x25, 0x25, 0x26, 0x26, 0x27, 0x27,
-    0x28, 0x28, 0x29, 0x29, 0x2A, 0x2A, 0x2B, 0x2B,
-    0x2C, 0x2C, 0x2D, 0x2D, 0x2E, 0x2E, 0x2F, 0x2F,
-    0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,
-    0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F,
-};
-
-static uchar d_len[256] = {
-    0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
-    0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
-    0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
-    0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,
-    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
-    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
-    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
-    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
-    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
-    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,
-    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
-    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
-    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
-    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
-    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
-    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
-    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
-    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,
-    0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
-    0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
-    0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
-    0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
-    0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
-    0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,
-    0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,
-    0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,
-    0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,
-    0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,
-    0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,
-    0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,
-    0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08,
-    0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08,
-};
-
-static unsigned short freq[T + 1];    /* cumulative freq table */
-
-/*
- * pointing parent nodes.
- * area [T..(T + N_CHAR - 1)] are pointers for leaves
- */
-short prnt[T + N_CHAR];
-
-/* pointing children nodes (son[], son[] + 1)*/
-short son[T];
-
-static unsigned short getbuf = 0;
-static uchar getlen = 0;
-
-/* this is old code duplicated in GetBit() and GetByte()
-    while (getlen <= 8) {
-        if ((i = getc(infile)) < 0) i = 0;
-        getbuf |= i << (8 - getlen);
-        getlen += 8;
-    }
-
-replace this with next_word() routine that handles block read
-*/
-int next_word(FILE* fp)
-{
-    if(tdctl.ibufndx >= tdctl.ibufcnt) {
-        tdctl.ibufndx = tdctl.ibufcnt = 0;
-               memset(tdctl.inbuf, 0, BUFSZ);
-               for(int i = 0; i < BUFSZ; i++) {
-                       int d = fgetc(fp);
-                       if(d == EOF) {
-                               if(i)
-                                       break;
-                               return(-1);
-                       }
-                       tdctl.inbuf[i] = d;
-                       tdctl.ibufcnt = i + 1;
-               }
-    }
-    while (getlen <= 8) { // typically reads a word at a time
-        getbuf |= tdctl.inbuf[tdctl.ibufndx++] << (8 - getlen);
-        getlen += 8;
-    }
-    return(0);
-}
-
-
-int GetBit(FILE* fp)    /* get one bit */
-{
-    short i;
-    if(next_word(fp) < 0)
-        return(-1);
-    i = getbuf;
-    getbuf <<= 1;
-    getlen--;
-    if(i < 0)
-        return(1);
-    else
-        return(0);
-}
-
-int GetByte(FILE* fp)    /* get a byte */
-{
-    unsigned short i;
-    if(next_word(fp) != 0)
-        return(-1);
-    i = getbuf;
-    getbuf <<= 8;
-    getlen -= 8;
-    i = i >> 8;
-    return((int) i);
-}
-
-/* initialize freq tree */
-
-void StartHuff()
-{
-    int i, j;
-
-    for (i = 0; i < N_CHAR; i++) {
-        freq[i] = 1;
-        son[i] = i + T;
-        prnt[i + T] = i;
-    }
-    i = 0; j = N_CHAR;
-    while (j <= R) {
-        freq[j] = freq[i] + freq[i + 1];
-        son[j] = i;
-        prnt[i] = prnt[i + 1] = j;
-        i += 2; j++;
-    }
-    freq[T] = 0xffff;
-    prnt[R] = 0;
-}
-
-
-/* reconstruct freq tree */
-
-void reconst()
-{
-    short i, j, k;
-    unsigned short f, l;
-
-    /* halven cumulative freq for leaf nodes */
-    j = 0;
-    for (i = 0; i < T; i++) {
-        if (son[i] >= T) {
-            freq[j] = (freq[i] + 1) / 2;
-            son[j] = son[i];
-            j++;
-        }
-    }
-    /* make a tree : first, connect children nodes */
-    for (i = 0, j = N_CHAR; j < T; i += 2, j++) {
-        k = i + 1;
-        f = freq[j] = freq[i] + freq[k];
-        for (k = j - 1; f < freq[k]; k--);
-        k++;
-        l = (j - k) * 2;
-        
-        /* movmem() is Turbo-C dependent
-           rewritten to memmove() by Kenji */
-        
-        /* movmem(&freq[k], &freq[k + 1], l); */
-        (void)memmove(&freq[k + 1], &freq[k], l);
-        freq[k] = f;
-        /* movmem(&son[k], &son[k + 1], l); */
-        (void)memmove(&son[k + 1], &son[k], l);
-        son[k] = i;
-    }
-    /* connect parent nodes */
-    for (i = 0; i < T; i++) {
-        if ((k = son[i]) >= T) {
-            prnt[k] = i;
-        } else {
-            prnt[k] = prnt[k + 1] = i;
-        }
-    }
-}
-
-
-/* update freq tree */
-
-void update(int c)
-{
-    int i, j, k, l;
-
-    if (freq[R] == MAX_FREQ) {
-        reconst();
-    }
-    c = prnt[c + T];
-    do {
-        k = ++freq[c];
-
-        /* swap nodes to keep the tree freq-ordered */
-        if (k > freq[l = c + 1]) {
-            while (k > freq[++l]);
-            l--;
-            freq[c] = freq[l];
-            freq[l] = k;
-
-            i = son[c];
-            prnt[i] = l;
-            if (i < T) prnt[i + 1] = l;
-
-            j = son[l];
-            son[l] = i;
-
-            prnt[j] = c;
-            if (j < T) prnt[j + 1] = c;
-            son[c] = j;
-
-            c = l;
-        }
-    } while ((c = prnt[c]) != 0);    /* do it until reaching the root */
-}
-
-
-short DecodeChar(FILE* fp)
-{
-    int ret;
-    unsigned short c;
-
-    c = son[R];
-
-    /*
-     * start searching tree from the root to leaves.
-     * choose node #(son[]) if input bit == 0
-     * else choose #(son[]+1) (input bit == 1)
-     */
-    while (c < T) {
-        if((ret = GetBit(fp)) < 0)
-            return(-1);
-        c += (unsigned) ret;
-        c = son[c];
-    }
-    c -= T;
-    update(c);
-    return c;
-}
-
-short DecodePosition(FILE* fp)
-{
-    short bit;
-    unsigned short i, j, c;
-
-    /* decode upper 6 bits from given table */
-        if((bit=GetByte(fp)) < 0)
-        return(-1);
-    i = (unsigned short) bit;
-    c = (unsigned short)d_code[i] << 6;
-    j = d_len[i];
-
-    /* input lower 6 bits directly */
-    j -= 2;
-    while (j--) {
-                if((bit = GetBit(fp)) < 0)
-                     return(-1);
-        i = (i << 1) + bit;
-    }
-    return(c | i & 0x3f);
-}
-
-/* DeCompression 
-
-split out initialization code to init_Decode()
-
-*/
-
-void init_Decode(FILE* fp)
-{
-    int i;
-    tdctl.ibufcnt= tdctl.ibufndx = 0; // input buffer is empty
-    tdctl.bufcnt = 0;
-    StartHuff();
-    for (i = 0; i < N - F; i++)
-        text_buf[i] = ' ';
-    tdctl.r = N - F;
-    tdctl.fp = fp;
-}
-
-
-int Decode(unsigned char *buf, int len)  /* Decoding/Uncompressing */
-{
-    short c,pos;
-    int  count;  // was an unsigned long, seems unnecessary
-    for (count = 0; count < len; ) {
-            if(tdctl.bufcnt == 0) {
-                if((c = DecodeChar(tdctl.fp)) < 0)
-                    return(count); // fatal error
-                if (c < 256) {
-                    *(buf++) = c;
-                    text_buf[tdctl.r++] = c;
-                    tdctl.r &= (N - 1);
-                    count++;                
-                } 
-                else {
-                    if((pos = DecodePosition(tdctl.fp)) < 0)
-                           return(count); // fatal error
-                    tdctl.bufpos = (tdctl.r - pos - 1) & (N - 1);
-                    tdctl.bufcnt = c - 255 + THRESHOLD;
-                    tdctl.bufndx = 0;
-                 }
-            }
-            else { // still chars from last string
-                while( tdctl.bufndx < tdctl.bufcnt && count < len ) {
-                    c = text_buf[(tdctl.bufpos + tdctl.bufndx) & (N - 1)];
-                    *(buf++) = c;
-                    tdctl.bufndx++;
-                    text_buf[tdctl.r++] = c;
-                    tdctl.r &= (N - 1);
-                    count++;
-                }
-                // reset bufcnt after copy string from text_buf[]
-                if(tdctl.bufndx >= tdctl.bufcnt) 
-                    tdctl.bufndx = tdctl.bufcnt = 0;
-        }
-    }
-    return(count); // count == len, success
-}
-
-unsigned char obuf[BUFSZ];
-
-// convert teledisk -> d88
-
-struct hdr_t {
-       char sig[3];
-       BYTE unkwn;
-       BYTE ver;
-       BYTE dens;
-       BYTE type;
-       BYTE flag;
-       BYTE dos;
-       BYTE sides;
-       WORD crc;
-};
-
-struct cmt_t {
-       WORD crc;
-       WORD len;
-       BYTE ymd[3];
-       BYTE hms[3];
-};
-
-struct trk_t {
-       BYTE nsec, trk, head;
-       BYTE crc;
-};
-
-struct sct_t {
-       BYTE c, h, r, n;
-       BYTE ctrl, crc;
-};
-
-struct d88hdr_t {
-       char title[17];
-       BYTE rsrv[9];
-       BYTE protect;
-       BYTE type;
-       DWORD size;
-       DWORD trkptr[164];
-};
-
-struct d88sct_t {
-       BYTE c, h, r, n;
-       WORD nsec;
-       BYTE dens, del, stat;
-       BYTE rsrv[5];
-       WORD size;
-};
-
-static const int secsize[4] = {128, 256, 512, 1024};
-
-void main(int argc, char *argv[])
-{
-       struct hdr_t hdr;
-       struct cmt_t cmt;
-       struct trk_t trk;
-       struct sct_t sct;
-       struct d88hdr_t d88hdr;
-       struct d88sct_t d88sct;
-       
-       char tpath[_MAX_PATH], dpath[_MAX_PATH];
-       FILE *fp, *fo;
-       
-       if(argc < 2) {
-               printf("\nconvert teledisk .td0 to .d88");
-               printf("\nusage: t2d <in-file> <out-file>");
-               return;
-       }
-       
-       // get dest and tmp path
-       if(argc < 3) {
-               strcpy(dpath, argv[1]);
-               int p = strlen(dpath);
-               if(p >= 4 && !(dpath[p-4]=='.' && (dpath[p-3]=='D' || dpath[p-3]=='d') && dpath[p-2]=='8' && dpath[p-1]=='8')) {
-                       dpath[p - 3] = 'D';
-                       dpath[p - 2] = '8';
-                       dpath[p - 1] = '8';
-               }
-               else
-                       sprintf(dpath, "%s.D88", argv[1]);
-       }
-       else
-               strcpy(dpath, argv[2]);
-       sprintf(tpath, "%s.$$$", argv[1]);
-       
-       // open src and check header
-       if((fp = fopen(argv[1], "rb")) == NULL) {
-               printf("\nfailed to open %s",argv[1]);
-               return;
-       }
-       fread(&hdr, sizeof(hdr_t), 1, fp);
-       if(hdr.sig[0] == 't' && hdr.sig[1] == 'd') {
-               //  if compressed, decompress and reopen
-               if((fo = fopen(tpath, "wb")) == NULL) {
-                       printf("\nfailed to open %s", tpath);
-                       fclose(fp);
-                       return;
-               }
-
-               int rd = 1;
-        init_Decode(fp);
-               do {
-                       if((rd = Decode(obuf,BUFSZ)) > 0)
-                               fwrite(obuf,rd,1,fo);
-               }
-               while(rd > 0);
-               fclose(fo);
-               fclose(fp);
-               
-               if((fp = fopen(tpath, "rb")) == NULL) {
-                       printf("\nfailed to open %s", tpath);
-                       return;
-               }
-       }
-       else if(hdr.sig[0] == 'T' && hdr.sig[1] == 'D') {
-               // not compressed
-       }
-       else {
-               printf("\n%s is not teledisk file", argv[1]);
-               fclose(fp);
-               return;
-       }
-       if(hdr.flag & 0x80) {
-               // skip comment
-               fread(&cmt, sizeof(cmt_t), 1, fp);
-               fseek(fp, cmt.len, SEEK_CUR);
-       }
-
-       // read tracks
-       if((fo = fopen(dpath, "wb")) == NULL) {
-               printf("\nfailde to open %s", dpath);
-               fclose(fp);
-               return;
-       }
-       
-       memset(&d88hdr, 0, sizeof(d88hdr_t));
-       strcpy(d88hdr.title,"TELEDISK");
-       d88hdr.protect = 0; // non-protected
-       d88hdr.type = 0; // 2d
-       fwrite(&d88hdr, sizeof(d88hdr_t), 1, fo);
-       
-       int trkcnt = 0, trkptr = sizeof(d88hdr_t);
-       fread(&trk, sizeof(trk_t), 1, fp);
-       while(trk.nsec != 0xff) {
-               d88hdr.trkptr[trkcnt++] = trkptr;
-               
-               // read sectors in this track
-               for(int i = 0; i < trk.nsec; i++) {
-                       BYTE buf[2048], dst[2048];
-                       memset(buf, 0, sizeof(buf));
-                       memset(dst, 0, sizeof(dst));
-                       
-                       // read sector header
-                       fread(&sct, sizeof(sct_t), 1, fp);
-                       
-                       // create d88 sector header
-                       memset(&d88sct, 0, sizeof(d88sct_t));
-                       d88sct.c = sct.c;
-                       d88sct.h = sct.h;
-                       d88sct.r = sct.r;
-                       d88sct.n = sct.n;
-                       d88sct.nsec = trk.nsec;
-                       d88sct.dens = 0; // \94{\96§\93x
-                       d88sct.del = (sct.ctrl & 4) ? 0x10 : 0;
-                       d88sct.stat = (sct.ctrl & 2) ? 0x10 : 0; // crc?
-                       d88sct.size = secsize[sct.n & 3];
-                       
-                       // create sector image
-                       if(sct.ctrl != 0x10) {
-                               // read sector source
-                               int len = fgetc(fp);
-                               len += fgetc(fp) * 256 - 1;
-                               int flag = fgetc(fp), d = 0;
-                               fread(buf, len, 1, fp);
-                               
-                               // convert
-                               if(flag == 0) {
-                                       memcpy(dst, buf, len);
-//                                     printf("TRK=%d, (C,H,R,N)=(%d,%d,%d,%d), len=%d\n", trkcnt, sct.c, sct.h, sct.r, sct.n, len);
-                               }
-                               else if(flag == 1) {
-                                       int len2 = buf[0] | (buf[1] << 8);
-                                       while(len2--) {
-                                               dst[d++] = buf[2];
-                                               dst[d++] = buf[3];
-                                       }
-//                                     printf("TRK=%d, (C,H,R,N)=(%d,%d,%d,%d), len=%d\n", trkcnt, sct.c, sct.h, sct.r, sct.n, d);
-                               }
-                               else if(flag == 2) {
-                                       for(int s = 0; s < len; ) {
-                                               int type = buf[s++];
-                                               int len2 = buf[s++];
-                                               if(type == 0) {
-                                                       while(len2--)
-                                                               dst[d++] = buf[s++];
-                                               }
-                                               else if(type < 5) {
-                                                       BYTE pat[256];
-                                                       int n = 2;
-                                                       while(type-- > 1)
-                                                               n *= 2;
-                                                       for(int j = 0; j < n; j++)
-                                                               pat[j] = buf[s++];
-                                                       while(len2--) {
-                                                               for(int j = 0; j < n; j++)
-                                                                       dst[d++] = pat[j];
-                                                       }
-                                               }
-                                               else {
-                                                       printf("unknown type %x in (C=%d,H=%d,R=%d,N=%d)\n", type, sct.c, sct.h, sct.r, sct.n);
-                                                       break;
-                                               }
-                                       }
-//                                     printf("TRK=%d, (C,H,R,N)=(%d,%d,%d,%d), len=%d\n", trkcnt, sct.c, sct.h, sct.r, sct.n, d);
-                               }
-                               else {
-                                       printf("unknown flag %x in (C=%d,H=%d,R=%d,N=%d)\n", flag, sct.c, sct.h, sct.r, sct.n);
-                                       break;
-                               }
-                       }
-                       else
-                               d88sct.size = 0;
-                       
-                       // output to d88
-                       fwrite(&d88sct, sizeof(d88sct_t), 1, fo);
-                       fwrite(dst, d88sct.size, 1, fo);
-                       
-                       trkptr += sizeof(d88sct_t) + d88sct.size;
-               }
-               // read next track
-               fread(&trk, sizeof(trk_t), 1, fp);
-       }
-       d88hdr.size = trkptr;
-       fseek(fo, 0, SEEK_SET);
-       fwrite(&d88hdr, sizeof(d88hdr_t), 1, fo);
-       
-       fclose(fo);
-       fclose(fp);
-
-       // delete tmp
-       DeleteFile(tpath);
-}
-
+/* tdlzhuf.c  module to perform lzss-huffman decompression\r
+   as is used in teledisk.exe\r
+   Conditionally compiled main to convert *.td0 advanced \r
+   compression file back normal compression file.\r
+   derived from lzhuf.c 1.0 per below \r
+\r
+    This program is free software; you can redistribute it and/or modify\r
+    it under the terms of the GNU General Public License as published by\r
+    the Free Software Foundation; either version 2 of the License, or\r
+    (at your option) any later version.\r
+\r
+    This program is distributed in the hope that it will be useful,\r
+    but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+    GNU General Public License for more details.\r
+\r
+    You should have received a copy of the GNU General Public License\r
+    along with this program; if not, write to the Free Software\r
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
+    http://www.gnu.org/licenses/gpl.txt\r
+\r
+\r
+    11/10/02 this was working with struct tdlzhuf * passed to\r
+    both Decode() and init_Decode() as first arg.  Save this as\r
+    tdlzhuf1.c and then make this structure locally static and try\r
+    to switch to unsigned shorts where it matters so works in linux.\r
+\r
+Started with program below: \r
+ * LZHUF.C English version 1.0\r
+ * Based on Japanese version 29-NOV-1988\r
+ * LZSS coded by Haruhiko OKUMURA\r
+ * Adaptive Huffman Coding coded by Haruyasu YOSHIZAKI\r
+ * Edited and translated to English by Kenji RIKITAKE\r
+\r
+In summary changes by WTK:\r
+  wrote a new conditionally compiled main() \r
+  remove Encode() modules and arrays\r
+  make remaing arrays and variables static to hide from external modules\r
+  add struct tdlzhuf to provide state retension between calls to Decode()\r
+  change from fgetc(FILE *) to read(int fp) so read\r
+     a block at a time into an input buffer.  Now the\r
+     Decode() routine can be called instead of read()\r
+     by a user, ie from wteledisk.c\r
+  change size of data elements for Linux, \r
+     int -> short\r
+     unsigned int -> unsigned short\r
+*/\r
+\r
+#include <stdio.h>\r
+#include <stdlib.h>\r
+#include <string.h>\r
+#include <ctype.h>\r
+#include <windows.h>\r
+\r
+/* WTK adds top level control structure to give Decode()\r
+   a memory between calls\r
+*/\r
+#define BUFSZ           512     // new input buffer\r
+\r
+static struct tdlzhuf {\r
+FILE* fp;  // source file handle, opened by caller\r
+         // next four variables were local in original main()\r
+         // we need to save these values between calls to Decode()\r
+unsigned short r,\r
+               bufcnt,bufndx,bufpos,  // string buffer\r
+         // the following to allow block reads from input in next_word()\r
+               ibufcnt,ibufndx; // input buffer counters\r
+unsigned char  inbuf[BUFSZ];    // input buffer\r
+} tdctl;\r
+\r
+\r
+\r
+\r
+/* LZSS Parameters */\r
+\r
+#define N        4096    /* Size of string buffer */\r
+#define F        60    /* Size of look-ahead buffer */\r
+#define THRESHOLD    2\r
+#define NIL        N    /* End of tree's node  */\r
+\r
+static unsigned char\r
+        text_buf[N + F - 1];\r
+static short    match_position, match_length,\r
+        lson[N + 1], rson[N + 257], dad[N + 1];\r
+\r
+void InitTree(void)  /* Initializing tree */\r
+{\r
+    int  i;\r
+\r
+    for (i = N + 1; i <= N + 256; i++)\r
+        rson[i] = NIL;            /* root */\r
+    for (i = 0; i < N; i++)\r
+        dad[i] = NIL;            /* node */\r
+}\r
+\r
+void InsertNode(int r)  /* Inserting node to the tree */\r
+{\r
+    int  i, p, cmp;\r
+    unsigned char  *key;\r
+    unsigned c;\r
+\r
+    cmp = 1;\r
+    key = &text_buf[r];\r
+    p = N + 1 + key[0];\r
+    rson[r] = lson[r] = NIL;\r
+    match_length = 0;\r
+    for ( ; ; ) {\r
+        if (cmp >= 0) {\r
+            if (rson[p] != NIL)\r
+                p = rson[p];\r
+            else {\r
+                rson[p] = r;\r
+                dad[r] = p;\r
+                return;\r
+            }\r
+        } else {\r
+            if (lson[p] != NIL)\r
+                p = lson[p];\r
+            else {\r
+                lson[p] = r;\r
+                dad[r] = p;\r
+                return;\r
+            }\r
+        }\r
+        for (i = 1; i < F; i++)\r
+            if ((cmp = key[i] - text_buf[p + i]) != 0)\r
+                break;\r
+        if (i > THRESHOLD) {\r
+            if (i > match_length) {\r
+                match_position = ((r - p) & (N - 1)) - 1;\r
+                if ((match_length = i) >= F)\r
+                    break;\r
+            }\r
+            if (i == match_length) {\r
+                if ((c = ((r - p) & (N - 1)) - 1) < match_position) {\r
+                    match_position = c;\r
+                }\r
+            }\r
+        }\r
+    }\r
+    dad[r] = dad[p];\r
+    lson[r] = lson[p];\r
+    rson[r] = rson[p];\r
+    dad[lson[p]] = r;\r
+    dad[rson[p]] = r;\r
+    if (rson[dad[p]] == p)\r
+        rson[dad[p]] = r;\r
+    else\r
+        lson[dad[p]] = r;\r
+    dad[p] = NIL;  /* remove p */\r
+}\r
+\r
+void DeleteNode(int p)  /* Deleting node from the tree */\r
+{\r
+    int  q;\r
+\r
+    if (dad[p] == NIL)\r
+        return;            /* unregistered */\r
+    if (rson[p] == NIL)\r
+        q = lson[p];\r
+    else\r
+    if (lson[p] == NIL)\r
+        q = rson[p];\r
+    else {\r
+        q = lson[p];\r
+        if (rson[q] != NIL) {\r
+            do {\r
+                q = rson[q];\r
+            } while (rson[q] != NIL);\r
+            rson[dad[q]] = lson[q];\r
+            dad[lson[q]] = dad[q];\r
+            lson[q] = lson[p];\r
+            dad[lson[p]] = q;\r
+        }\r
+        rson[q] = rson[p];\r
+        dad[rson[p]] = q;\r
+    }\r
+    dad[q] = dad[p];\r
+    if (rson[dad[p]] == p)\r
+        rson[dad[p]] = q;\r
+    else\r
+        lson[dad[p]] = q;\r
+    dad[p] = NIL;\r
+}\r
+\r
+/* Huffman coding parameters */\r
+\r
+#define N_CHAR      (256 - THRESHOLD + F)\r
+                /* character code (= 0..N_CHAR-1) */\r
+#define T         (N_CHAR * 2 - 1)    /* Size of table */\r
+#define R         (T - 1)            /* root position */\r
+#define MAX_FREQ    0x8000\r
+                    /* update when cumulative frequency */\r
+                    /* reaches to this value */\r
+\r
+typedef unsigned char uchar;\r
+\r
+/*\r
+ * Tables for encoding/decoding upper 6 bits of\r
+ * sliding dictionary pointer\r
+ */\r
+\r
+/* decoder table */\r
+static uchar d_code[256] = {\r
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
+    0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,\r
+    0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,\r
+    0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,\r
+    0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02,\r
+    0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02, 0x02,\r
+    0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,\r
+    0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,\r
+    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,\r
+    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,\r
+    0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,\r
+    0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,\r
+    0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08,\r
+    0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09, 0x09,\r
+    0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A, 0x0A,\r
+    0x0B, 0x0B, 0x0B, 0x0B, 0x0B, 0x0B, 0x0B, 0x0B,\r
+    0x0C, 0x0C, 0x0C, 0x0C, 0x0D, 0x0D, 0x0D, 0x0D,\r
+    0x0E, 0x0E, 0x0E, 0x0E, 0x0F, 0x0F, 0x0F, 0x0F,\r
+    0x10, 0x10, 0x10, 0x10, 0x11, 0x11, 0x11, 0x11,\r
+    0x12, 0x12, 0x12, 0x12, 0x13, 0x13, 0x13, 0x13,\r
+    0x14, 0x14, 0x14, 0x14, 0x15, 0x15, 0x15, 0x15,\r
+    0x16, 0x16, 0x16, 0x16, 0x17, 0x17, 0x17, 0x17,\r
+    0x18, 0x18, 0x19, 0x19, 0x1A, 0x1A, 0x1B, 0x1B,\r
+    0x1C, 0x1C, 0x1D, 0x1D, 0x1E, 0x1E, 0x1F, 0x1F,\r
+    0x20, 0x20, 0x21, 0x21, 0x22, 0x22, 0x23, 0x23,\r
+    0x24, 0x24, 0x25, 0x25, 0x26, 0x26, 0x27, 0x27,\r
+    0x28, 0x28, 0x29, 0x29, 0x2A, 0x2A, 0x2B, 0x2B,\r
+    0x2C, 0x2C, 0x2D, 0x2D, 0x2E, 0x2E, 0x2F, 0x2F,\r
+    0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37,\r
+    0x38, 0x39, 0x3A, 0x3B, 0x3C, 0x3D, 0x3E, 0x3F,\r
+};\r
+\r
+static uchar d_len[256] = {\r
+    0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,\r
+    0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,\r
+    0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,\r
+    0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03,\r
+    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,\r
+    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,\r
+    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,\r
+    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,\r
+    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,\r
+    0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04, 0x04,\r
+    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,\r
+    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,\r
+    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,\r
+    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,\r
+    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,\r
+    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,\r
+    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,\r
+    0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05, 0x05,\r
+    0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,\r
+    0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,\r
+    0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,\r
+    0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,\r
+    0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,\r
+    0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06, 0x06,\r
+    0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,\r
+    0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,\r
+    0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,\r
+    0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,\r
+    0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,\r
+    0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07, 0x07,\r
+    0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08,\r
+    0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08, 0x08,\r
+};\r
+\r
+static unsigned short freq[T + 1];    /* cumulative freq table */\r
+\r
+/*\r
+ * pointing parent nodes.\r
+ * area [T..(T + N_CHAR - 1)] are pointers for leaves\r
+ */\r
+short prnt[T + N_CHAR];\r
+\r
+/* pointing children nodes (son[], son[] + 1)*/\r
+short son[T];\r
+\r
+static unsigned short getbuf = 0;\r
+static uchar getlen = 0;\r
+\r
+/* this is old code duplicated in GetBit() and GetByte()\r
+    while (getlen <= 8) {\r
+        if ((i = getc(infile)) < 0) i = 0;\r
+        getbuf |= i << (8 - getlen);\r
+        getlen += 8;\r
+    }\r
+\r
+replace this with next_word() routine that handles block read\r
+*/\r
+int next_word(FILE* fp)\r
+{\r
+    if(tdctl.ibufndx >= tdctl.ibufcnt) {\r
+        tdctl.ibufndx = tdctl.ibufcnt = 0;\r
+               memset(tdctl.inbuf, 0, BUFSZ);\r
+               for(int i = 0; i < BUFSZ; i++) {\r
+                       int d = fgetc(fp);\r
+                       if(d == EOF) {\r
+                               if(i)\r
+                                       break;\r
+                               return(-1);\r
+                       }\r
+                       tdctl.inbuf[i] = d;\r
+                       tdctl.ibufcnt = i + 1;\r
+               }\r
+    }\r
+    while (getlen <= 8) { // typically reads a word at a time\r
+        getbuf |= tdctl.inbuf[tdctl.ibufndx++] << (8 - getlen);\r
+        getlen += 8;\r
+    }\r
+    return(0);\r
+}\r
+\r
+\r
+int GetBit(FILE* fp)    /* get one bit */\r
+{\r
+    short i;\r
+    if(next_word(fp) < 0)\r
+        return(-1);\r
+    i = getbuf;\r
+    getbuf <<= 1;\r
+    getlen--;\r
+    if(i < 0)\r
+        return(1);\r
+    else\r
+        return(0);\r
+}\r
+\r
+int GetByte(FILE* fp)    /* get a byte */\r
+{\r
+    unsigned short i;\r
+    if(next_word(fp) != 0)\r
+        return(-1);\r
+    i = getbuf;\r
+    getbuf <<= 8;\r
+    getlen -= 8;\r
+    i = i >> 8;\r
+    return((int) i);\r
+}\r
+\r
+/* initialize freq tree */\r
+\r
+void StartHuff()\r
+{\r
+    int i, j;\r
+\r
+    for (i = 0; i < N_CHAR; i++) {\r
+        freq[i] = 1;\r
+        son[i] = i + T;\r
+        prnt[i + T] = i;\r
+    }\r
+    i = 0; j = N_CHAR;\r
+    while (j <= R) {\r
+        freq[j] = freq[i] + freq[i + 1];\r
+        son[j] = i;\r
+        prnt[i] = prnt[i + 1] = j;\r
+        i += 2; j++;\r
+    }\r
+    freq[T] = 0xffff;\r
+    prnt[R] = 0;\r
+}\r
+\r
+\r
+/* reconstruct freq tree */\r
+\r
+void reconst()\r
+{\r
+    short i, j, k;\r
+    unsigned short f, l;\r
+\r
+    /* halven cumulative freq for leaf nodes */\r
+    j = 0;\r
+    for (i = 0; i < T; i++) {\r
+        if (son[i] >= T) {\r
+            freq[j] = (freq[i] + 1) / 2;\r
+            son[j] = son[i];\r
+            j++;\r
+        }\r
+    }\r
+    /* make a tree : first, connect children nodes */\r
+    for (i = 0, j = N_CHAR; j < T; i += 2, j++) {\r
+        k = i + 1;\r
+        f = freq[j] = freq[i] + freq[k];\r
+        for (k = j - 1; f < freq[k]; k--);\r
+        k++;\r
+        l = (j - k) * 2;\r
+        \r
+        /* movmem() is Turbo-C dependent\r
+           rewritten to memmove() by Kenji */\r
+        \r
+        /* movmem(&freq[k], &freq[k + 1], l); */\r
+        (void)memmove(&freq[k + 1], &freq[k], l);\r
+        freq[k] = f;\r
+        /* movmem(&son[k], &son[k + 1], l); */\r
+        (void)memmove(&son[k + 1], &son[k], l);\r
+        son[k] = i;\r
+    }\r
+    /* connect parent nodes */\r
+    for (i = 0; i < T; i++) {\r
+        if ((k = son[i]) >= T) {\r
+            prnt[k] = i;\r
+        } else {\r
+            prnt[k] = prnt[k + 1] = i;\r
+        }\r
+    }\r
+}\r
+\r
+\r
+/* update freq tree */\r
+\r
+void update(int c)\r
+{\r
+    int i, j, k, l;\r
+\r
+    if (freq[R] == MAX_FREQ) {\r
+        reconst();\r
+    }\r
+    c = prnt[c + T];\r
+    do {\r
+        k = ++freq[c];\r
+\r
+        /* swap nodes to keep the tree freq-ordered */\r
+        if (k > freq[l = c + 1]) {\r
+            while (k > freq[++l]);\r
+            l--;\r
+            freq[c] = freq[l];\r
+            freq[l] = k;\r
+\r
+            i = son[c];\r
+            prnt[i] = l;\r
+            if (i < T) prnt[i + 1] = l;\r
+\r
+            j = son[l];\r
+            son[l] = i;\r
+\r
+            prnt[j] = c;\r
+            if (j < T) prnt[j + 1] = c;\r
+            son[c] = j;\r
+\r
+            c = l;\r
+        }\r
+    } while ((c = prnt[c]) != 0);    /* do it until reaching the root */\r
+}\r
+\r
+\r
+short DecodeChar(FILE* fp)\r
+{\r
+    int ret;\r
+    unsigned short c;\r
+\r
+    c = son[R];\r
+\r
+    /*\r
+     * start searching tree from the root to leaves.\r
+     * choose node #(son[]) if input bit == 0\r
+     * else choose #(son[]+1) (input bit == 1)\r
+     */\r
+    while (c < T) {\r
+        if((ret = GetBit(fp)) < 0)\r
+            return(-1);\r
+        c += (unsigned) ret;\r
+        c = son[c];\r
+    }\r
+    c -= T;\r
+    update(c);\r
+    return c;\r
+}\r
+\r
+short DecodePosition(FILE* fp)\r
+{\r
+    short bit;\r
+    unsigned short i, j, c;\r
+\r
+    /* decode upper 6 bits from given table */\r
+        if((bit=GetByte(fp)) < 0)\r
+        return(-1);\r
+    i = (unsigned short) bit;\r
+    c = (unsigned short)d_code[i] << 6;\r
+    j = d_len[i];\r
+\r
+    /* input lower 6 bits directly */\r
+    j -= 2;\r
+    while (j--) {\r
+                if((bit = GetBit(fp)) < 0)\r
+                     return(-1);\r
+        i = (i << 1) + bit;\r
+    }\r
+    return(c | i & 0x3f);\r
+}\r
+\r
+/* DeCompression \r
+\r
+split out initialization code to init_Decode()\r
+\r
+*/\r
+\r
+void init_Decode(FILE* fp)\r
+{\r
+    int i;\r
+    tdctl.ibufcnt= tdctl.ibufndx = 0; // input buffer is empty\r
+    tdctl.bufcnt = 0;\r
+    StartHuff();\r
+    for (i = 0; i < N - F; i++)\r
+        text_buf[i] = ' ';\r
+    tdctl.r = N - F;\r
+    tdctl.fp = fp;\r
+}\r
+\r
+\r
+int Decode(unsigned char *buf, int len)  /* Decoding/Uncompressing */\r
+{\r
+    short c,pos;\r
+    int  count;  // was an unsigned long, seems unnecessary\r
+    for (count = 0; count < len; ) {\r
+            if(tdctl.bufcnt == 0) {\r
+                if((c = DecodeChar(tdctl.fp)) < 0)\r
+                    return(count); // fatal error\r
+                if (c < 256) {\r
+                    *(buf++) = c;\r
+                    text_buf[tdctl.r++] = c;\r
+                    tdctl.r &= (N - 1);\r
+                    count++;                \r
+                } \r
+                else {\r
+                    if((pos = DecodePosition(tdctl.fp)) < 0)\r
+                           return(count); // fatal error\r
+                    tdctl.bufpos = (tdctl.r - pos - 1) & (N - 1);\r
+                    tdctl.bufcnt = c - 255 + THRESHOLD;\r
+                    tdctl.bufndx = 0;\r
+                 }\r
+            }\r
+            else { // still chars from last string\r
+                while( tdctl.bufndx < tdctl.bufcnt && count < len ) {\r
+                    c = text_buf[(tdctl.bufpos + tdctl.bufndx) & (N - 1)];\r
+                    *(buf++) = c;\r
+                    tdctl.bufndx++;\r
+                    text_buf[tdctl.r++] = c;\r
+                    tdctl.r &= (N - 1);\r
+                    count++;\r
+                }\r
+                // reset bufcnt after copy string from text_buf[]\r
+                if(tdctl.bufndx >= tdctl.bufcnt) \r
+                    tdctl.bufndx = tdctl.bufcnt = 0;\r
+        }\r
+    }\r
+    return(count); // count == len, success\r
+}\r
+\r
+unsigned char obuf[BUFSZ];\r
+\r
+// convert teledisk -> d88\r
+\r
+struct hdr_t {\r
+       char sig[3];\r
+       BYTE unkwn;\r
+       BYTE ver;\r
+       BYTE dens;\r
+       BYTE type;\r
+       BYTE flag;\r
+       BYTE dos;\r
+       BYTE sides;\r
+       WORD crc;\r
+};\r
+\r
+struct cmt_t {\r
+       WORD crc;\r
+       WORD len;\r
+       BYTE ymd[3];\r
+       BYTE hms[3];\r
+};\r
+\r
+struct trk_t {\r
+       BYTE nsec, trk, head;\r
+       BYTE crc;\r
+};\r
+\r
+struct sct_t {\r
+       BYTE c, h, r, n;\r
+       BYTE ctrl, crc;\r
+};\r
+\r
+struct d88hdr_t {\r
+       char title[17];\r
+       BYTE rsrv[9];\r
+       BYTE protect;\r
+       BYTE type;\r
+       DWORD size;\r
+       DWORD trkptr[164];\r
+};\r
+\r
+struct d88sct_t {\r
+       BYTE c, h, r, n;\r
+       WORD nsec;\r
+       BYTE dens, del, stat;\r
+       BYTE rsrv[5];\r
+       WORD size;\r
+};\r
+\r
+static const int secsize[4] = {128, 256, 512, 1024};\r
+\r
+void main(int argc, char *argv[])\r
+{\r
+       struct hdr_t hdr;\r
+       struct cmt_t cmt;\r
+       struct trk_t trk;\r
+       struct sct_t sct;\r
+       struct d88hdr_t d88hdr;\r
+       struct d88sct_t d88sct;\r
+       \r
+       char tpath[_MAX_PATH], dpath[_MAX_PATH];\r
+       FILE *fp, *fo;\r
+       \r
+       if(argc < 2) {\r
+               printf("\nconvert teledisk .td0 to .d88");\r
+               printf("\nusage: t2d <in-file> <out-file>");\r
+               return;\r
+       }\r
+       \r
+       // get dest and tmp path\r
+       if(argc < 3) {\r
+               strcpy(dpath, argv[1]);\r
+               int p = strlen(dpath);\r
+               if(p >= 4 && !(dpath[p-4]=='.' && (dpath[p-3]=='D' || dpath[p-3]=='d') && dpath[p-2]=='8' && dpath[p-1]=='8')) {\r
+                       dpath[p - 3] = 'D';\r
+                       dpath[p - 2] = '8';\r
+                       dpath[p - 1] = '8';\r
+               }\r
+               else\r
+                       sprintf(dpath, "%s.D88", argv[1]);\r
+       }\r
+       else\r
+               strcpy(dpath, argv[2]);\r
+       sprintf(tpath, "%s.$$$", argv[1]);\r
+       \r
+       // open src and check header\r
+       if((fp = fopen(argv[1], "rb")) == NULL) {\r
+               printf("\nfailed to open %s",argv[1]);\r
+               return;\r
+       }\r
+       fread(&hdr, sizeof(hdr_t), 1, fp);\r
+       if(hdr.sig[0] == 't' && hdr.sig[1] == 'd') {\r
+               //  if compressed, decompress and reopen\r
+               if((fo = fopen(tpath, "wb")) == NULL) {\r
+                       printf("\nfailed to open %s", tpath);\r
+                       fclose(fp);\r
+                       return;\r
+               }\r
+\r
+               int rd = 1;\r
+        init_Decode(fp);\r
+               do {\r
+                       if((rd = Decode(obuf,BUFSZ)) > 0)\r
+                               fwrite(obuf,rd,1,fo);\r
+               }\r
+               while(rd > 0);\r
+               fclose(fo);\r
+               fclose(fp);\r
+               \r
+               if((fp = fopen(tpath, "rb")) == NULL) {\r
+                       printf("\nfailed to open %s", tpath);\r
+                       return;\r
+               }\r
+       }\r
+       else if(hdr.sig[0] == 'T' && hdr.sig[1] == 'D') {\r
+               // not compressed\r
+       }\r
+       else {\r
+               printf("\n%s is not teledisk file", argv[1]);\r
+               fclose(fp);\r
+               return;\r
+       }\r
+       if(hdr.flag & 0x80) {\r
+               // skip comment\r
+               fread(&cmt, sizeof(cmt_t), 1, fp);\r
+               fseek(fp, cmt.len, SEEK_CUR);\r
+       }\r
+\r
+       // read tracks\r
+       if((fo = fopen(dpath, "wb")) == NULL) {\r
+               printf("\nfailde to open %s", dpath);\r
+               fclose(fp);\r
+               return;\r
+       }\r
+       \r
+       memset(&d88hdr, 0, sizeof(d88hdr_t));\r
+       strcpy(d88hdr.title,"TELEDISK");\r
+       d88hdr.protect = 0; // non-protected\r
+       d88hdr.type = 0; // 2d\r
+       fwrite(&d88hdr, sizeof(d88hdr_t), 1, fo);\r
+       \r
+       int trkcnt = 0, trkptr = sizeof(d88hdr_t);\r
+       fread(&trk, sizeof(trk_t), 1, fp);\r
+       while(trk.nsec != 0xff) {\r
+               d88hdr.trkptr[trkcnt++] = trkptr;\r
+               \r
+               // read sectors in this track\r
+               for(int i = 0; i < trk.nsec; i++) {\r
+                       BYTE buf[2048], dst[2048];\r
+                       memset(buf, 0, sizeof(buf));\r
+                       memset(dst, 0, sizeof(dst));\r
+                       \r
+                       // read sector header\r
+                       fread(&sct, sizeof(sct_t), 1, fp);\r
+                       \r
+                       // create d88 sector header\r
+                       memset(&d88sct, 0, sizeof(d88sct_t));\r
+                       d88sct.c = sct.c;\r
+                       d88sct.h = sct.h;\r
+                       d88sct.r = sct.r;\r
+                       d88sct.n = sct.n;\r
+                       d88sct.nsec = trk.nsec;\r
+                       d88sct.dens = 0; // \94{\96§\93x\r
+                       d88sct.del = (sct.ctrl & 4) ? 0x10 : 0;\r
+                       d88sct.stat = (sct.ctrl & 2) ? 0x10 : 0; // crc?\r
+                       d88sct.size = secsize[sct.n & 3];\r
+                       \r
+                       // create sector image\r
+                       if(sct.ctrl != 0x10) {\r
+                               // read sector source\r
+                               int len = fgetc(fp);\r
+                               len += fgetc(fp) * 256 - 1;\r
+                               int flag = fgetc(fp), d = 0;\r
+                               fread(buf, len, 1, fp);\r
+                               \r
+                               // convert\r
+                               if(flag == 0) {\r
+                                       memcpy(dst, buf, len);\r
+//                                     printf("TRK=%d, (C,H,R,N)=(%d,%d,%d,%d), len=%d\n", trkcnt, sct.c, sct.h, sct.r, sct.n, len);\r
+                               }\r
+                               else if(flag == 1) {\r
+                                       int len2 = buf[0] | (buf[1] << 8);\r
+                                       while(len2--) {\r
+                                               dst[d++] = buf[2];\r
+                                               dst[d++] = buf[3];\r
+                                       }\r
+//                                     printf("TRK=%d, (C,H,R,N)=(%d,%d,%d,%d), len=%d\n", trkcnt, sct.c, sct.h, sct.r, sct.n, d);\r
+                               }\r
+                               else if(flag == 2) {\r
+                                       for(int s = 0; s < len; ) {\r
+                                               int type = buf[s++];\r
+                                               int len2 = buf[s++];\r
+                                               if(type == 0) {\r
+                                                       while(len2--)\r
+                                                               dst[d++] = buf[s++];\r
+                                               }\r
+                                               else if(type < 5) {\r
+                                                       BYTE pat[256];\r
+                                                       int n = 2;\r
+                                                       while(type-- > 1)\r
+                                                               n *= 2;\r
+                                                       for(int j = 0; j < n; j++)\r
+                                                               pat[j] = buf[s++];\r
+                                                       while(len2--) {\r
+                                                               for(int j = 0; j < n; j++)\r
+                                                                       dst[d++] = pat[j];\r
+                                                       }\r
+                                               }\r
+                                               else {\r
+                                                       printf("unknown type %x in (C=%d,H=%d,R=%d,N=%d)\n", type, sct.c, sct.h, sct.r, sct.n);\r
+                                                       break;\r
+                                               }\r
+                                       }\r
+//                                     printf("TRK=%d, (C,H,R,N)=(%d,%d,%d,%d), len=%d\n", trkcnt, sct.c, sct.h, sct.r, sct.n, d);\r
+                               }\r
+                               else {\r
+                                       printf("unknown flag %x in (C=%d,H=%d,R=%d,N=%d)\n", flag, sct.c, sct.h, sct.r, sct.n);\r
+                                       break;\r
+                               }\r
+                       }\r
+                       else\r
+                               d88sct.size = 0;\r
+                       \r
+                       // output to d88\r
+                       fwrite(&d88sct, sizeof(d88sct_t), 1, fo);\r
+                       fwrite(dst, d88sct.size, 1, fo);\r
+                       \r
+                       trkptr += sizeof(d88sct_t) + d88sct.size;\r
+               }\r
+               // read next track\r
+               fread(&trk, sizeof(trk_t), 1, fp);\r
+       }\r
+       d88hdr.size = trkptr;\r
+       fseek(fo, 0, SEEK_SET);\r
+       fwrite(&d88hdr, sizeof(d88hdr_t), 1, fo);\r
+       \r
+       fclose(fo);\r
+       fclose(fp);\r
+\r
+       // delete tmp\r
+       DeleteFile(tpath);\r
+}\r
+\r
index 336436e..14371dc 100644 (file)
-VERSION 5.00
-Begin VB.Form frmMain 
-   BorderStyle     =   1  '\8cÅ\92è(\8eÀ\90ü)
-   Caption         =   "getrom"
-   ClientHeight    =   4260
-   ClientLeft      =   45
-   ClientTop       =   330
-   ClientWidth     =   6300
-   LinkTopic       =   "Form1"
-   MaxButton       =   0   'False
-   MinButton       =   0   'False
-   ScaleHeight     =   4260
-   ScaleWidth      =   6300
-   StartUpPosition =   3  'Windows \82Ì\8aù\92è\92l
-   Begin VB.CommandButton cmdGet 
-      Caption         =   "Manual"
-      Height          =   375
-      Left            =   4920
-      TabIndex        =   14
-      Top             =   3840
-      Width           =   1335
-   End
-   Begin VB.CommandButton cmdCapture 
-      Caption         =   "Capture"
-      Height          =   375
-      Left            =   4920
-      TabIndex        =   13
-      Top             =   1200
-      Width           =   1335
-   End
-   Begin VB.CommandButton cmdAuto 
-      Caption         =   "Stop Auto"
-      Height          =   375
-      Index           =   1
-      Left            =   4920
-      TabIndex        =   12
-      Top             =   3480
-      Visible         =   0   'False
-      Width           =   1335
-   End
-   Begin VB.CommandButton cmdAuto 
-      Caption         =   "Start Auto"
-      Height          =   375
-      Index           =   0
-      Left            =   4920
-      TabIndex        =   11
-      Top             =   3480
-      Width           =   1335
-   End
-   Begin VB.TextBox txtCntY 
-      Alignment       =   1  '\89E\91µ\82¦
-      Height          =   270
-      Left            =   5280
-      TabIndex        =   9
-      Text            =   "8"
-      Top             =   3120
-      Width           =   975
-   End
-   Begin VB.TextBox txtCntX 
-      Alignment       =   1  '\89E\91µ\82¦
-      Height          =   270
-      Left            =   5280
-      TabIndex        =   8
-      Text            =   "8"
-      Top             =   2880
-      Width           =   975
-   End
-   Begin VB.CommandButton cmdPos 
-      Caption         =   "Auto"
-      Height          =   375
-      Index           =   2
-      Left            =   4920
-      TabIndex        =   7
-      Top             =   2400
-      Width           =   1335
-   End
-   Begin VB.Timer tmrAuto 
-      Enabled         =   0   'False
-      Interval        =   200
-      Left            =   120
-      Top             =   4440
-   End
-   Begin VB.CommandButton cmdSource 
-      Caption         =   "Source"
-      Height          =   375
-      Left            =   4920
-      TabIndex        =   6
-      Top             =   840
-      Width           =   1335
-   End
-   Begin VB.CommandButton cmdPos 
-      Caption         =   "Right Bottom"
-      Height          =   375
-      Index           =   1
-      Left            =   4920
-      TabIndex        =   5
-      Top             =   2040
-      Width           =   1335
-   End
-   Begin VB.CommandButton cmdPos 
-      Caption         =   "Left Top"
-      Height          =   375
-      Index           =   0
-      Left            =   4920
-      TabIndex        =   4
-      Top             =   1680
-      Width           =   1335
-   End
-   Begin VB.PictureBox picCapt 
-      AutoRedraw      =   -1  'True
-      AutoSize        =   -1  'True
-      Height          =   3615
-      Left            =   0
-      ScaleHeight     =   257.376
-      ScaleMode       =   0  'Õ°»Þ°
-      ScaleWidth      =   337.01
-      TabIndex        =   3
-      Top             =   480
-      Width           =   4815
-   End
-   Begin VB.CommandButton cmdDisconnect 
-      Caption         =   "Disconnect"
-      Height          =   375
-      Left            =   4920
-      TabIndex        =   2
-      Top             =   480
-      Width           =   1335
-   End
-   Begin VB.CommandButton cmdConnect 
-      Caption         =   "Connect"
-      Height          =   375
-      Left            =   4920
-      TabIndex        =   1
-      Top             =   120
-      Width           =   1335
-   End
-   Begin VB.ComboBox cboDevice 
-      Height          =   300
-      Left            =   0
-      Style           =   2  'ÄÞÛ¯ÌßÀ޳ݠؽÄ
-      TabIndex        =   0
-      Top             =   120
-      Width           =   4815
-   End
-   Begin VB.Label Label1 
-      Caption         =   "Y"
-      Height          =   255
-      Left            =   5040
-      TabIndex        =   15
-      Top             =   3120
-      Width           =   255
-   End
-   Begin VB.Label lblCntX 
-      Caption         =   "X"
-      Height          =   255
-      Left            =   5040
-      TabIndex        =   10
-      Top             =   2880
-      Width           =   255
-   End
-End
-Attribute VB_Name = "frmMain"
-Attribute VB_GlobalNameSpace = False
-Attribute VB_Creatable = False
-Attribute VB_PredeclaredId = True
-Attribute VB_Exposed = False
-Option Explicit
-
-Private Declare Sub InitializeDLL Lib "vcap.dll" ()
-Private Declare Sub ReleaseDLL Lib "vcap.dll" ()
-Private Declare Function GetDeviceNum Lib "vcap.dll" () As Long
-Private Declare Sub GetDeviceName Lib "vcap.dll" (ByVal Index As Long, ByVal name As String)
-Private Declare Function InitializeDevice Lib "vcap.dll" (ByVal Index As Long) As Long
-Private Declare Sub ReleaseDevice Lib "vcap.dll" ()
-Private Declare Sub ShowVideoFilterProperty Lib "vcap.dll" ()
-Private Declare Function ShowVideoPinProperty Lib "vcap.dll" (ByVal Index As Long) As Long
-Private Declare Sub ShowVideoSourceProperty Lib "vcap.dll" ()
-Private Declare Sub SetTopMost Lib "vcap.dll" (ByVal status As Long)
-Private Declare Sub Capture Lib "vcap.dll" ()
-
-Private mblnConnect As Boolean
-Private mblnPrev As Boolean
-
-Private msngX(0 To 3) As Single
-Private msngY(0 To 3) As Single
-
-Private Sub cmdAuto_Click(Index As Integer)
-    mblnPrev = True
-    tmrAuto.Enabled = IIf(Index, False, True)
-    cmdAuto(0).Visible = Not cmdAuto(0).Visible
-    cmdAuto(1).Visible = Not cmdAuto(1).Visible
-End Sub
-
-Private Sub Form_Load()
-Dim strName As String
-Dim lngDevs As Long
-Dim ii As Long
-
-    Call InitializeDLL
-    lngDevs = GetDeviceNum()
-    
-    cboDevice.Clear
-    For ii = 1 To lngDevs
-        strName = Space(1024)
-        Call GetDeviceName(ii, strName)
-        cboDevice.AddItem Left$(strName, InStr(strName, Chr$(0)) - 1)
-    Next ii
-    cboDevice.ListIndex = 0
-    mblnConnect = False
-    
-    Call msubSetUIF
-
-End Sub
-
-Private Sub Form_Unload(Cancel As Integer)
-    If mblnConnect Then
-        Call ReleaseDevice
-    End If
-    Call ReleaseDLL
-End Sub
-
-Private Sub cmdCapture_Click()
-    If mblnConnect Then
-        Call Capture
-        picCapt.Picture = LoadPicture("c:\capture.bmp")
-    End If
-End Sub
-
-Private Sub cmdConnect_Click()
-Dim lngDevice As Long
-    If Not mblnConnect Then
-        lngDevice = cboDevice.ListIndex + 1
-        If Not InitializeDevice(lngDevice) Then
-            mblnConnect = True
-            Call msubSetUIF
-        End If
-    End If
-End Sub
-
-Private Sub cmdDisconnect_Click()
-    If mblnConnect Then
-        Call ReleaseDevice
-        mblnConnect = False
-        Call msubSetUIF
-    End If
-End Sub
-
-Private Sub cmdGet_Click()
-    Call Capture
-    picCapt.Picture = LoadPicture("c:\capture.bmp")
-    DoEvents
-    
-    Call msubGetScreen
-End Sub
-
-Private Sub cmdPos_Click(Index As Integer)
-    msngX(Index) = msngX(3)
-    msngY(Index) = msngY(3)
-End Sub
-
-Private Sub cmdSource_Click()
-    If mblnConnect Then
-        Call ShowVideoFilterProperty
-        Call ShowVideoSourceProperty
-    End If
-End Sub
-
-Private Sub picCapt_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
-    msngX(3) = X
-    msngY(3) = Y
-End Sub
-
-Private Sub tmrAuto_Timer()
-    If mblnConnect Then
-        Call Capture
-        picCapt.Picture = LoadPicture("c:\capture.bmp")
-        DoEvents
-    
-        If mfblnGetPoint(msngX(2), msngY(2)) Then
-            If Not mblnPrev Then
-                Call msubGetScreen
-            End If
-            mblnPrev = True
-        Else
-            mblnPrev = False
-        End If
-    End If
-End Sub
-
-Private Sub msubSetUIF()
-    cmdConnect.Enabled = Not mblnConnect
-    cmdDisconnect.Enabled = mblnConnect
-    cmdSource.Enabled = mblnConnect
-End Sub
-
-Private Sub msubGetScreen()
-Dim fn As Integer
-Dim lngVal As Long
-Dim lngX As Long
-Dim lngY As Long
-Dim lngCntX As Long
-Dim lngCntY As Long
-Dim sngSX As Single
-Dim sngSY As Single
-Dim sngDX As Single
-Dim sngDY As Single
-       
-    fn = FreeFile
-    Open "c:\capture.log" For Append As #fn
-    
-    lngCntX = Val(txtCntX.Text)
-    lngCntY = Val(txtCntY.Text)
-    
-    sngDX = (msngX(1) - msngX(0)) / (lngCntX + 1)
-    sngDY = (msngY(1) - msngY(0)) / (lngCntY - 1)
-    sngSX = msngX(0) + sngDX
-    sngSY = msngY(0)
-    
-    For lngY = 1 To lngCntY
-        lngVal = 0
-        For lngX = 1 To lngCntX
-            lngVal = lngVal * 2 + IIf(mfblnGetPoint(sngSX + sngDX * (lngX - 1), sngSY + sngDY * (lngY - 1)), 1, 0)
-        Next lngX
-        Print #fn, Right$("00000000" & Hex$(lngVal), 8)
-    Next lngY
-    
-    Close #fn
-
-End Sub
-
-Private Function mfblnGetPoint(X As Single, Y As Single) As Boolean
-Dim lngCol As Long
-    lngCol = picCapt.Point(X, Y)
-    mfblnGetPoint = IIf((lngCol And &HC00000) <> 0 And (lngCol And &HC000) <> 0 And (lngCol And &HC0) <> 0, True, False)
-End Function
+VERSION 5.00\r
+Begin VB.Form frmMain \r
+   BorderStyle     =   1  '\8cÅ\92è(\8eÀ\90ü)\r
+   Caption         =   "getrom"\r
+   ClientHeight    =   4260\r
+   ClientLeft      =   45\r
+   ClientTop       =   330\r
+   ClientWidth     =   6300\r
+   LinkTopic       =   "Form1"\r
+   MaxButton       =   0   'False\r
+   MinButton       =   0   'False\r
+   ScaleHeight     =   4260\r
+   ScaleWidth      =   6300\r
+   StartUpPosition =   3  'Windows \82Ì\8aù\92è\92l\r
+   Begin VB.CommandButton cmdGet \r
+      Caption         =   "Manual"\r
+      Height          =   375\r
+      Left            =   4920\r
+      TabIndex        =   14\r
+      Top             =   3840\r
+      Width           =   1335\r
+   End\r
+   Begin VB.CommandButton cmdCapture \r
+      Caption         =   "Capture"\r
+      Height          =   375\r
+      Left            =   4920\r
+      TabIndex        =   13\r
+      Top             =   1200\r
+      Width           =   1335\r
+   End\r
+   Begin VB.CommandButton cmdAuto \r
+      Caption         =   "Stop Auto"\r
+      Height          =   375\r
+      Index           =   1\r
+      Left            =   4920\r
+      TabIndex        =   12\r
+      Top             =   3480\r
+      Visible         =   0   'False\r
+      Width           =   1335\r
+   End\r
+   Begin VB.CommandButton cmdAuto \r
+      Caption         =   "Start Auto"\r
+      Height          =   375\r
+      Index           =   0\r
+      Left            =   4920\r
+      TabIndex        =   11\r
+      Top             =   3480\r
+      Width           =   1335\r
+   End\r
+   Begin VB.TextBox txtCntY \r
+      Alignment       =   1  '\89E\91µ\82¦\r
+      Height          =   270\r
+      Left            =   5280\r
+      TabIndex        =   9\r
+      Text            =   "8"\r
+      Top             =   3120\r
+      Width           =   975\r
+   End\r
+   Begin VB.TextBox txtCntX \r
+      Alignment       =   1  '\89E\91µ\82¦\r
+      Height          =   270\r
+      Left            =   5280\r
+      TabIndex        =   8\r
+      Text            =   "8"\r
+      Top             =   2880\r
+      Width           =   975\r
+   End\r
+   Begin VB.CommandButton cmdPos \r
+      Caption         =   "Auto"\r
+      Height          =   375\r
+      Index           =   2\r
+      Left            =   4920\r
+      TabIndex        =   7\r
+      Top             =   2400\r
+      Width           =   1335\r
+   End\r
+   Begin VB.Timer tmrAuto \r
+      Enabled         =   0   'False\r
+      Interval        =   200\r
+      Left            =   120\r
+      Top             =   4440\r
+   End\r
+   Begin VB.CommandButton cmdSource \r
+      Caption         =   "Source"\r
+      Height          =   375\r
+      Left            =   4920\r
+      TabIndex        =   6\r
+      Top             =   840\r
+      Width           =   1335\r
+   End\r
+   Begin VB.CommandButton cmdPos \r
+      Caption         =   "Right Bottom"\r
+      Height          =   375\r
+      Index           =   1\r
+      Left            =   4920\r
+      TabIndex        =   5\r
+      Top             =   2040\r
+      Width           =   1335\r
+   End\r
+   Begin VB.CommandButton cmdPos \r
+      Caption         =   "Left Top"\r
+      Height          =   375\r
+      Index           =   0\r
+      Left            =   4920\r
+      TabIndex        =   4\r
+      Top             =   1680\r
+      Width           =   1335\r
+   End\r
+   Begin VB.PictureBox picCapt \r
+      AutoRedraw      =   -1  'True\r
+      AutoSize        =   -1  'True\r
+      Height          =   3615\r
+      Left            =   0\r
+      ScaleHeight     =   257.376\r
+      ScaleMode       =   0  'Õ°»Þ°\r
+      ScaleWidth      =   337.01\r
+      TabIndex        =   3\r
+      Top             =   480\r
+      Width           =   4815\r
+   End\r
+   Begin VB.CommandButton cmdDisconnect \r
+      Caption         =   "Disconnect"\r
+      Height          =   375\r
+      Left            =   4920\r
+      TabIndex        =   2\r
+      Top             =   480\r
+      Width           =   1335\r
+   End\r
+   Begin VB.CommandButton cmdConnect \r
+      Caption         =   "Connect"\r
+      Height          =   375\r
+      Left            =   4920\r
+      TabIndex        =   1\r
+      Top             =   120\r
+      Width           =   1335\r
+   End\r
+   Begin VB.ComboBox cboDevice \r
+      Height          =   300\r
+      Left            =   0\r
+      Style           =   2  'ÄÞÛ¯ÌßÀ޳ݠؽÄ\r
+      TabIndex        =   0\r
+      Top             =   120\r
+      Width           =   4815\r
+   End\r
+   Begin VB.Label Label1 \r
+      Caption         =   "Y"\r
+      Height          =   255\r
+      Left            =   5040\r
+      TabIndex        =   15\r
+      Top             =   3120\r
+      Width           =   255\r
+   End\r
+   Begin VB.Label lblCntX \r
+      Caption         =   "X"\r
+      Height          =   255\r
+      Left            =   5040\r
+      TabIndex        =   10\r
+      Top             =   2880\r
+      Width           =   255\r
+   End\r
+End\r
+Attribute VB_Name = "frmMain"\r
+Attribute VB_GlobalNameSpace = False\r
+Attribute VB_Creatable = False\r
+Attribute VB_PredeclaredId = True\r
+Attribute VB_Exposed = False\r
+Option Explicit\r
+\r
+Private Declare Sub InitializeDLL Lib "vcap.dll" ()\r
+Private Declare Sub ReleaseDLL Lib "vcap.dll" ()\r
+Private Declare Function GetDeviceNum Lib "vcap.dll" () As Long\r
+Private Declare Sub GetDeviceName Lib "vcap.dll" (ByVal Index As Long, ByVal name As String)\r
+Private Declare Function InitializeDevice Lib "vcap.dll" (ByVal Index As Long) As Long\r
+Private Declare Sub ReleaseDevice Lib "vcap.dll" ()\r
+Private Declare Sub ShowVideoFilterProperty Lib "vcap.dll" ()\r
+Private Declare Function ShowVideoPinProperty Lib "vcap.dll" (ByVal Index As Long) As Long\r
+Private Declare Sub ShowVideoSourceProperty Lib "vcap.dll" ()\r
+Private Declare Sub SetTopMost Lib "vcap.dll" (ByVal status As Long)\r
+Private Declare Sub Capture Lib "vcap.dll" ()\r
+\r
+Private mblnConnect As Boolean\r
+Private mblnPrev As Boolean\r
+\r
+Private msngX(0 To 3) As Single\r
+Private msngY(0 To 3) As Single\r
+\r
+Private Sub cmdAuto_Click(Index As Integer)\r
+    mblnPrev = True\r
+    tmrAuto.Enabled = IIf(Index, False, True)\r
+    cmdAuto(0).Visible = Not cmdAuto(0).Visible\r
+    cmdAuto(1).Visible = Not cmdAuto(1).Visible\r
+End Sub\r
+\r
+Private Sub Form_Load()\r
+Dim strName As String\r
+Dim lngDevs As Long\r
+Dim ii As Long\r
+\r
+    Call InitializeDLL\r
+    lngDevs = GetDeviceNum()\r
+    \r
+    cboDevice.Clear\r
+    For ii = 1 To lngDevs\r
+        strName = Space(1024)\r
+        Call GetDeviceName(ii, strName)\r
+        cboDevice.AddItem Left$(strName, InStr(strName, Chr$(0)) - 1)\r
+    Next ii\r
+    cboDevice.ListIndex = 0\r
+    mblnConnect = False\r
+    \r
+    Call msubSetUIF\r
+\r
+End Sub\r
+\r
+Private Sub Form_Unload(Cancel As Integer)\r
+    If mblnConnect Then\r
+        Call ReleaseDevice\r
+    End If\r
+    Call ReleaseDLL\r
+End Sub\r
+\r
+Private Sub cmdCapture_Click()\r
+    If mblnConnect Then\r
+        Call Capture\r
+        picCapt.Picture = LoadPicture("c:\capture.bmp")\r
+    End If\r
+End Sub\r
+\r
+Private Sub cmdConnect_Click()\r
+Dim lngDevice As Long\r
+    If Not mblnConnect Then\r
+        lngDevice = cboDevice.ListIndex + 1\r
+        If Not InitializeDevice(lngDevice) Then\r
+            mblnConnect = True\r
+            Call msubSetUIF\r
+        End If\r
+    End If\r
+End Sub\r
+\r
+Private Sub cmdDisconnect_Click()\r
+    If mblnConnect Then\r
+        Call ReleaseDevice\r
+        mblnConnect = False\r
+        Call msubSetUIF\r
+    End If\r
+End Sub\r
+\r
+Private Sub cmdGet_Click()\r
+    Call Capture\r
+    picCapt.Picture = LoadPicture("c:\capture.bmp")\r
+    DoEvents\r
+    \r
+    Call msubGetScreen\r
+End Sub\r
+\r
+Private Sub cmdPos_Click(Index As Integer)\r
+    msngX(Index) = msngX(3)\r
+    msngY(Index) = msngY(3)\r
+End Sub\r
+\r
+Private Sub cmdSource_Click()\r
+    If mblnConnect Then\r
+        Call ShowVideoFilterProperty\r
+        Call ShowVideoSourceProperty\r
+    End If\r
+End Sub\r
+\r
+Private Sub picCapt_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)\r
+    msngX(3) = X\r
+    msngY(3) = Y\r
+End Sub\r
+\r
+Private Sub tmrAuto_Timer()\r
+    If mblnConnect Then\r
+        Call Capture\r
+        picCapt.Picture = LoadPicture("c:\capture.bmp")\r
+        DoEvents\r
+    \r
+        If mfblnGetPoint(msngX(2), msngY(2)) Then\r
+            If Not mblnPrev Then\r
+                Call msubGetScreen\r
+            End If\r
+            mblnPrev = True\r
+        Else\r
+            mblnPrev = False\r
+        End If\r
+    End If\r
+End Sub\r
+\r
+Private Sub msubSetUIF()\r
+    cmdConnect.Enabled = Not mblnConnect\r
+    cmdDisconnect.Enabled = mblnConnect\r
+    cmdSource.Enabled = mblnConnect\r
+End Sub\r
+\r
+Private Sub msubGetScreen()\r
+Dim fn As Integer\r
+Dim lngVal As Long\r
+Dim lngX As Long\r
+Dim lngY As Long\r
+Dim lngCntX As Long\r
+Dim lngCntY As Long\r
+Dim sngSX As Single\r
+Dim sngSY As Single\r
+Dim sngDX As Single\r
+Dim sngDY As Single\r
+       \r
+    fn = FreeFile\r
+    Open "c:\capture.log" For Append As #fn\r
+    \r
+    lngCntX = Val(txtCntX.Text)\r
+    lngCntY = Val(txtCntY.Text)\r
+    \r
+    sngDX = (msngX(1) - msngX(0)) / (lngCntX + 1)\r
+    sngDY = (msngY(1) - msngY(0)) / (lngCntY - 1)\r
+    sngSX = msngX(0) + sngDX\r
+    sngSY = msngY(0)\r
+    \r
+    For lngY = 1 To lngCntY\r
+        lngVal = 0\r
+        For lngX = 1 To lngCntX\r
+            lngVal = lngVal * 2 + IIf(mfblnGetPoint(sngSX + sngDX * (lngX - 1), sngSY + sngDY * (lngY - 1)), 1, 0)\r
+        Next lngX\r
+        Print #fn, Right$("00000000" & Hex$(lngVal), 8)\r
+    Next lngY\r
+    \r
+    Close #fn\r
+\r
+End Sub\r
+\r
+Private Function mfblnGetPoint(X As Single, Y As Single) As Boolean\r
+Dim lngCol As Long\r
+    lngCol = picCapt.Point(X, Y)\r
+    mfblnGetPoint = IIf((lngCol And &HC00000) <> 0 And (lngCol And &HC000) <> 0 And (lngCol And &HC0) <> 0, True, False)\r
+End Function\r
index 71a7e72..09feec3 100644 (file)
@@ -1,37 +1,37 @@
-Type=Exe
-Form=frmMain.frm
-Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\WINNT\system32\STDOLE2.TLB#OLE Automation
-IconForm="frmMain"
-Startup="frmMain"
-HelpFile=""
-Title="getrom"
-ExeName32="viddumper.exe"
-Command32=""
-Name="viddumper"
-HelpContextID="0"
-CompatibleMode="0"
-MajorVer=1
-MinorVer=0
-RevisionVer=0
-AutoIncrementVer=0
-ServerSupportFiles=0
-VersionCompanyName="FANUC"
-CompilationType=0
-OptimizationType=0
-FavorPentiumPro(tm)=0
-CodeViewDebugInfo=0
-NoAliasing=0
-BoundsCheck=0
-OverflowCheck=0
-FlPointCheck=0
-FDIVCheck=0
-UnroundedFP=0
-StartMode=0
-Unattended=0
-Retained=0
-ThreadPerObject=0
-MaxNumberOfThreads=1
-DebugStartupOption=0
-
-[MS Transaction Server]
-AutoRefresh=1
+Type=Exe\r
+Form=frmMain.frm\r
+Reference=*\G{00020430-0000-0000-C000-000000000046}#2.0#0#C:\WINNT\system32\STDOLE2.TLB#OLE Automation\r
+IconForm="frmMain"\r
+Startup="frmMain"\r
+HelpFile=""\r
+Title="getrom"\r
+ExeName32="viddumper.exe"\r
+Command32=""\r
+Name="viddumper"\r
+HelpContextID="0"\r
+CompatibleMode="0"\r
+MajorVer=1\r
+MinorVer=0\r
+RevisionVer=0\r
+AutoIncrementVer=0\r
+ServerSupportFiles=0\r
+VersionCompanyName="FANUC"\r
+CompilationType=0\r
+OptimizationType=0\r
+FavorPentiumPro(tm)=0\r
+CodeViewDebugInfo=0\r
+NoAliasing=0\r
+BoundsCheck=0\r
+OverflowCheck=0\r
+FlPointCheck=0\r
+FDIVCheck=0\r
+UnroundedFP=0\r
+StartMode=0\r
+Unattended=0\r
+Retained=0\r
+ThreadPerObject=0\r
+MaxNumberOfThreads=1\r
+DebugStartupOption=0\r
+\r
+[MS Transaction Server]\r
+AutoRefresh=1\r
index 8506a52..21f853e 100644 (file)
@@ -1 +1 @@
-frmMain = 55, 62, 707, 554, , 361, 192, 1013, 684, C
+frmMain = 55, 62, 707, 554, , 361, 192, 1013, 684, C\r