remove C64Util since the methods weren't being used, at least one was highly dubious, and they would be better served being in a common library if deemed needed
This commit is contained in:
parent
7b2b1c325b
commit
6cfd112791
|
@ -209,7 +209,6 @@
|
|||
<Compile Include="Computers\Commodore64\C64.Motherboard.cs" />
|
||||
<Compile Include="Computers\Commodore64\C64.MotherboardInterface.cs" />
|
||||
<Compile Include="Computers\Commodore64\C64Format.cs" />
|
||||
<Compile Include="Computers\Commodore64\C64Util.cs" />
|
||||
<Compile Include="Computers\Commodore64\Cartridge\Mapper0000.cs" />
|
||||
<Compile Include="Computers\Commodore64\C64.Input.cs" />
|
||||
<Compile Include="Computers\Commodore64\Cartridge\Mapper0001.cs" />
|
||||
|
|
|
@ -1,37 +0,0 @@
|
|||
using System.Text;
|
||||
|
||||
namespace BizHawk.Emulation.Cores.Computers.Commodore64
|
||||
{
|
||||
public static class C64Util
|
||||
{
|
||||
public static string ToBinary(int n, int charsmin)
|
||||
{
|
||||
var result = new StringBuilder("");
|
||||
|
||||
while (n > 0 || charsmin > 0)
|
||||
{
|
||||
result.Insert(0, (n & 0x1) != 0 ? "1" : "0");
|
||||
n >>= 1;
|
||||
if (charsmin > 0)
|
||||
charsmin--;
|
||||
}
|
||||
|
||||
return result.ToString();
|
||||
}
|
||||
|
||||
public static string ToHex(int n, int charsmin)
|
||||
{
|
||||
var result = new StringBuilder("");
|
||||
|
||||
while (n > 0 || charsmin > 0)
|
||||
{
|
||||
result.Insert(0, "0123456789ABCDEF".Substring(n & 0xF, 1));
|
||||
n >>= 4;
|
||||
if (charsmin > 0)
|
||||
charsmin--;
|
||||
}
|
||||
|
||||
return result.ToString();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue