1
0

22 lines
642 B
C#

using Z80;
class Test {
// not sure what i was thinking when i wrote this
static void Main(string[] args)
{
Disasm disasm = new Disasm();
byte[] x = new byte[3000];
for (uint i = 0; i < 3000; i++)
{
x[i] = (byte) (i % 256);
}
disasm.Bytes = x;
var watch = System.Diagnostics.Stopwatch.StartNew();
System.Console.WriteLine(disasm.Bytes.Length);
System.Console.WriteLine(disasm.Disassemble());
watch.Stop();
var elapsedMs = watch.ElapsedMilliseconds;
System.Console.WriteLine("Time elapsed: " + elapsedMs + "ms.");
}
}