Exemplo n.º 1
0
 /// <summary>
 /// Write a block of data with the provided MemoryBank.
 /// </summary>
 /// <param name="bank">  MemoryBank to write block to </param>
 /// <param name="data">  data to write in a byte array </param>
 /// <param name="addr">  address to start the write </param>
 public static void bankWriteBlock(MemoryBank bank, byte[] data, int addr)
 {
     try
     {
         bank.write(addr, data, 0, data.Length);
         Debug.WriteLine("");
         Debug.WriteLine("wrote block length " + data.Length + " at addr " + addr);
     }
     catch (Exception e)
     {
         Debug.WriteLine(e);
     }
 }