Exemplo n.º 1
0
 public static byte ToByte(this OpCodeId value)
 {
     return((byte)value);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Same as WriteByteToMemory(this Memory mem, ushort address, byte data), with the only difference
 /// that the address parameter is sent by ref, and increased 1 byte.
 /// </summary>
 /// <param name="mem"></param>
 /// <param name="address"></param>
 /// <param name="instruction"></param>
 public static void WriteByte(this Memory mem, ref ushort address, OpCodeId instruction)
 {
     WriteByte(mem, ref address, (byte)instruction);
 }
Exemplo n.º 3
0
 public static string ToHex(this OpCodeId value)
 {
     return($"0x{value:X2}");
 }