public static byte ToByte(this OpCodeId value) { return((byte)value); }
/// <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); }
public static string ToHex(this OpCodeId value) { return($"0x{value:X2}"); }